Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/ui.js

Issue 29333312: Issue 3486 - Issue reporter: don`t access content window to reload the page (Closed)
Patch Set: Created Jan. 7, 2016, 7:15 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« chrome/content/ui/sendReport.js ('K') | « chrome/content/ui/sendReport.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« chrome/content/ui/sendReport.js ('K') | « chrome/content/ui/sendReport.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld