| Index: popupBlocker.js |
| =================================================================== |
| --- a/popupBlocker.js |
| +++ b/popupBlocker.js |
| @@ -21,10 +21,11 @@ |
| chrome.webNavigation.onCreatedNavigationTarget.addListener(function(details) |
| { |
| - if (isFrameWhitelisted(details.sourceTabId, details.sourceFrameId)) |
| + var sourceTab = new Tab({id: details.sourceTabId}); |
| + if (isFrameWhitelisted(sourceTab, details.sourceFrameId)) |
| return; |
| - var openerUrl = getFrameUrl(details.sourceTabId, details.sourceFrameId); |
| + var openerUrl = getFrameUrl(sourceTab, details.sourceFrameId); |
| if (!openerUrl) |
| { |
| // We don't know the opener tab |