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)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 14

People

(Reporter: bholley, Assigned: bholley)

References

Details

Attachments

(1 file)

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.
Attaching a patch. Flagging msucan for review.
Attachment #615569 - Flags: review?(mihai.sucan)
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+
Target Milestone: --- → Firefox 14
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: