| Index: lib/ui.js |
| =================================================================== |
| --- a/lib/ui.js |
| +++ b/lib/ui.js |
| @@ -791,17 +791,20 @@ let UI = exports.UI = |
| if (wnd) |
| wnd.focus(); |
| else |
| { |
| let uri = this.getCurrentLocation(window); |
| if (uri) |
| { |
| let {getBrowser} = require("appSupport"); |
| - window.openDialog("chrome://adblockplus/content/ui/sendReport.xul", "_blank", "chrome,centerscreen,resizable=no", getBrowser(window).contentWindow, uri); |
| + let browser = getBrowser(window); |
| + if ("selectedBrowser" in browser) |
| + browser = browser.selectedBrowser; |
| + window.openDialog("chrome://adblockplus/content/ui/sendReport.xul", "_blank", "chrome,centerscreen,resizable=no", browser.contentWindow, uri, browser); |
| } |
| } |
| }, |
| /** |
| * Opens our contribution page. |
| */ |
| openContributePage: function(/**Window*/ window) |