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

Unified Diff: lib/ui.js

Issue 29333320: Issue 3486 - Issue reporter: remove content window access (Closed)
Patch Set: Created Jan. 7, 2016, 7:32 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
« no previous file with comments | « 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
@@ -794,17 +794,17 @@ let UI = exports.UI =
{
let uri = this.getCurrentLocation(window);
if (uri)
{
let {getBrowser} = require("appSupport");
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);
+ window.openDialog("chrome://adblockplus/content/ui/sendReport.xul", "_blank", "chrome,centerscreen,resizable=no", browser.outerWindowID, uri, browser);
}
}
},
/**
* Opens our contribution page.
*/
openContributePage: function(/**Window*/ window)
« no previous file with comments | « chrome/content/ui/sendReport.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld