Closed Bug 405394 Opened 17 years ago Closed 6 years ago

Greasemonkey -- "security manager vetoed" when accessing HTMLEmbedElement.wrappedJSObject.<anything>

Categories

(Core :: XPConnect, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: boogs, Unassigned)

Details

Attachments

(1 file)

A Greasemonkey script author sent me an example of a script that stopped working in FF3 and I narrowed it down to a simple repro. The attached script works in FF2 on http://homestarrunner.com/ (it alerts 'true'). In FF3.0a8 it fails with:

Error: Security Manager vetoed action
Source File: file:///c:/Documents%20and%20Settings/aa/p1/gm_scripts/testembed/testembed.user.js
Line: 8

In the js console.
Attachment #290182 - Attachment mime type: application/x-javascript → text/javascript
Poor jst, doomed to a lifetime of being cc'ed on anything with "embed" and "xpcwrapper" in it.
Component: Extension Compatibility → XPConnect
Product: Firefox → Core
QA Contact: extension.compatibility → xpconnect
Version: unspecified → Trunk
Does anyone have a link to a greasemonkey xpi that works with current trunk?
Not sure if this bug has been resolved or not as it was reported late last year, but I have a similar issue with my Greasemonkey script and Adblock Plus:-

http://userscripts.org/forums/1/topics/2615

Also, I tested the user script attachment above with similar results to my own script. Alert pops up normally with Adblock Plus disabled (specifically the tabs on flash and java option), but when enabled I receive no alert and the "security manager vetoed" error in javascript console.
Duplicate of bug 441087?
It doesn't look like it -- that bug was about exceptions accessing XPCNativeWrapped objects while this one is about working on .wrappedJSObjects (which happen to be XPCSafeJSObjectWrappers).
I could reproduce the same issue after I updated to Firefox 3.0.5 
(Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5)
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: