Closed
Bug 1395276
Opened 7 years ago
Closed 7 years ago
$ and $$ console commands throw system principal errors
Categories
(DevTools :: Console, defect)
DevTools
Console
Tracking
(firefox58 fixed)
RESOLVED
FIXED
Firefox 58
Tracking | Status | |
---|---|---|
firefox58 | --- | fixed |
People
(Reporter: Oriol, Assigned: Oriol)
References
Details
Attachments
(1 file, 1 obsolete file)
3.86 KB,
patch
|
jimb
:
review+
|
Details | Diff | Splinter Review |
Go to http://example.com Enter this code in the web console: try{ $$(':foo') }catch(err){ err } Result: Object { } Expected: DOMException { } That's because the error object that is thrown belongs to a system principal, so http://example.com is not allowed to access it.
Assignee | ||
Comment 1•7 years ago
|
||
Attachment #8902830 -
Flags: review?(jimb)
Assignee | ||
Comment 2•7 years ago
|
||
Argh, I always forget the space after `catch`.
Attachment #8902830 -
Attachment is obsolete: true
Attachment #8902830 -
Flags: review?(jimb)
Attachment #8902837 -
Flags: review?(jimb)
Assignee | ||
Comment 3•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=6a7fed6e6fe13e77c75d34fbf9eca8848a911774
Assignee | ||
Updated•7 years ago
|
Attachment #8902837 -
Flags: review?(jimb) → review?(nchevobbe)
Comment 4•7 years ago
|
||
Comment on attachment 8902837 [details] [diff] [review] console-queryselector-error.patch Passing it to Jim, I don't feel confident enough to review these changes.
Attachment #8902837 -
Flags: review?(nchevobbe) → review?(jimb)
Assignee | ||
Comment 5•7 years ago
|
||
Jim, can you review this, please, so that bug 1394559 can be fixed?
Flags: needinfo?(jimb)
Comment 6•7 years ago
|
||
Comment on attachment 8902837 [details] [diff] [review] console-queryselector-error.patch Review of attachment 8902837 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me. Thanks, and sorry for the delay.
Attachment #8902837 -
Flags: review?(jimb) → review+
Updated•7 years ago
|
Flags: needinfo?(jimb)
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/112fa91b456f Make $ and $$ console commands throw errors created in the debuggee global. r=jimb
Keywords: checkin-needed
Comment 8•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/112fa91b456f
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•