Closed
Bug 1395276
Opened 8 years ago
Closed 8 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•8 years ago
|
||
Attachment #8902830 -
Flags: review?(jimb)
Assignee | ||
Comment 2•8 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•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Attachment #8902837 -
Flags: review?(jimb) → review?(nchevobbe)
Comment 4•8 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•8 years ago
|
||
Jim, can you review this, please, so that bug 1394559 can be fixed?
Flags: needinfo?(jimb)
Comment 6•8 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•8 years ago
|
Flags: needinfo?(jimb)
Assignee | ||
Updated•8 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•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•