Closed
Bug 746021
Opened 13 years ago
Closed 13 years ago
browser_webconsole_bug_603750_websocket.js breaks with compartment-per-global
Categories
(DevTools :: Console, defect)
DevTools
Console
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 14
People
(Reporter: bholley, Assigned: bholley)
References
Details
Attachments
(1 file)
1023 bytes,
patch
|
msucan
:
review+
|
Details | Diff | Splinter Review |
We assert that the window IDs for two WebSockets errors are the same:
http://mxr.mozilla.org/mozilla-central/source/browser/devtools/webconsole/test/browser_webconsole_bug_603750_websocket.js#33
However, the sockets are created in different scopes:
http://mxr.mozilla.org/mozilla-central/source/browser/devtools/webconsole/test/test-bug-603750-websocket.js
This means that the code that throws is running against a different global in the iframe case for compartment-per-global. It's not clear to me why we assert this, so I'm removing it.
Assignee | ||
Comment 1•13 years ago
|
||
Attaching a patch. Flagging msucan for review.
Assignee | ||
Updated•13 years ago
|
Attachment #615569 -
Flags: review?(mihai.sucan)
Assignee | ||
Comment 2•13 years ago
|
||
For context, the window id is coming from here:
http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsWebSocket.cpp#1571
which uses:
http://mxr.mozilla.org/mozilla-central/source/dom/base/nsJSUtils.cpp#170
Comment 3•13 years ago
|
||
Comment on attachment 615569 [details] [diff] [review]
Don't assert that the window ids are the same when they shouldn't be. v1
Review of attachment 615569 [details] [diff] [review]:
-----------------------------------------------------------------
This looks good. Thank you!
Attachment #615569 -
Flags: review?(mihai.sucan) → review+
Assignee | ||
Comment 4•13 years ago
|
||
Target Milestone: --- → Firefox 14
Comment 5•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•