Created attachment 654338 [details]
User Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Firefox/17.0
Build ID: 20120822030558
Steps to reproduce:
I installed the attached minimal test xpi which tries to load a view-source URL in a new window
In FF beta and aurora I get:
Error: Exposing chrome JS objects to content without __exposedProps__ is insecure and deprecated. See https://developer.mozilla.org/en/XPConnect_wrappers for more information.
Source File: view-source:http://getfoxyproxy.org/downloads.html
And in a nightly I get:
"handleEvent"' when calling method: [nsIDOMEventListener::handleEvent]"
nsresult: "0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)" location:
"<unknown>" data: no]
There should be no error messages.
The issue occurs as well if one tries to load a local files (e.g. PAC files).
1) Open Scratchpad in Firefox 16.
2) Set the Environment to Browser (you need to set the devtools.chrome.enabled preference to true).
3) Run this code:
open("view-source:" + "http://getfoxyproxy.org/downloads.html", "", "scrollbars,resizable,chrome,dialog=no,width=450,height=425");
This should show the error, though the source viewer displays with no apparent problems.
Running the same code in the Content environment, or removing the 'chrome' feature in the open call removes the error.
Yeah I'm looking at this. Gimme a few more.
This is bug 774633 :-(
The patches in that bug fix this bug. Now they if only we could get them reviewed. ;-)
Bug 774633 is fixed now, and the STR in Comment 3 doesn't trigger an error using:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20130505 Firefox/23.0
So I guess this bug can be resolved?
sounds good to me.
*** This bug has been marked as a duplicate of bug 774633 ***