Closed
Bug 595597
Opened 15 years ago
Closed 15 years ago
nsIContentPolicy needs aTargetContext
Categories
(Firefox :: General, enhancement)
Firefox
General
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: erikvvold, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.0 Safari/534.7
Build Identifier:
Greasemonkey uses nsIContentPolicy to determine if content should load or not, see http://github.com/greasemonkey/greasemonkey/issues#issue/1184
The issue is that when a user opens a .user.js by right clicking on a link and pressing "open in a new tab" the new tab opens, the content is rejected, the tab is left blank, and the install window appears. So we need a ref to the window that the content was going to load in, in order to close it if it's != aContext (see https://developer.mozilla.org/en/NsIContentPolicy ) the window where the request initiated.
Reproducible: Always
Idk how, but somehow I think I made a mistake, and the aContext is in fact the new tab, so aTargetContext is not needed for my use case.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•