Closed
Bug 846316
Opened 12 years ago
Closed 9 years ago
The instanceof operator raises exceptions when used in a sandbox with wantXrays=true
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: arantius, Unassigned)
References
Details
Attachments
(1 file)
(deleted),
text/javascript
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0
Build ID: 20130215130331
Steps to reproduce:
Get this upstream bug report:
https://github.com/greasemonkey/greasemonkey/issues/1716
Reproduce like so:
1. devtools.chrome.enabled = true
2. Open Scratchpad.
3. Environment > Browser
4. Run the attached script.
Actual results:
I got an "ok" alert from the wantXrays=false sandbox, then an "err" alert from the wantXrays=true sandbox, running the same code.
Expected results:
The instanceof operator should have worked regardless of xrays.
Updated•12 years ago
|
Attachment #719472 -
Attachment mime type: application/octet-stream → text/plain
Updated•12 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 2•12 years ago
|
||
This bug is not (completely) fixed. While bug 822399 fixed this for "Event" other objects still break.
Try the original test case with "Blob" substituted for "Event". With Firefox nightly as of 50d25e083421 I see the same failure as from the original description.
Also fails: File.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Comment 3•12 years ago
|
||
Sure, those will be fixed too when they are converted to WebIDL.
Updated•11 years ago
|
Attachment #719472 -
Attachment mime type: text/plain → application/javascript
Updated•11 years ago
|
Attachment #719472 -
Attachment mime type: application/javascript → text/javascript
Comment 4•9 years ago
|
||
Is this still an issue on latest Firefox versions? e.g. Firefox 43 or Nightly 46
Flags: needinfo?(arantius)
Reporter | ||
Comment 5•9 years ago
|
||
On most pages, no, resolved.
On Bugzilla pages (which seem to define a different object named Event), I get a different error, when wantXrays=false. Which might be expected.
Flags: needinfo?(arantius)
Comment 6•9 years ago
|
||
Thank you for your prompt response. If the initial issue is resolved, I will mark this as Resolved Worksforme.
Regarding the Bugzilla pages that trow a different error (with wantXrays=false), I think you should open a new bug report if you think the behavior is not the expected one or you could reopen this one if you consider it more useful.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago → 9 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•