Closed
Bug 1349690
Opened 9 years ago
Closed 9 years ago
Improve dangling-exception logging in AutoJSAPI::InitInternal to deal better with exceptions from a different origin
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla55
| Tracking | Status | |
|---|---|---|
| firefox55 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(1 file)
Right now if "exnObj" is a security wrapper we will have a useless assertion.
| Assignee | ||
Comment 1•9 years ago
|
||
MozReview-Commit-ID: IpvRcBC2d6k
Attachment #8850159 -
Flags: review?(bobbyholley)
Comment 2•9 years ago
|
||
Comment on attachment 8850159 [details] [diff] [review]
Improve dangling-exception logging in AutoJSAPI::InitInternal to deal better with exceptions from a different origin
Review of attachment 8850159 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/base/ScriptSettings.cpp
@@ +375,5 @@
> JS_ClearPendingException(aCx);
> if (exn.isObject()) {
> JS::Rooted<JSObject*> exnObj(aCx, &exn.toObject());
>
> + // Make sure we can actually read things from it.
Make a note here that this is only safe because it's being used in debug-only printf code. Otherwise we'd risk potentially leaking sensitive string information.
Attachment #8850159 -
Flags: review?(bobbyholley) → review+
Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/3ccb231829a9
Improve dangling-exception logging in AutoJSAPI::InitInternal to deal better with exceptions from a different origin. r=bholley
Comment 4•9 years ago
|
||
backed this out in https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=1e0598886d349e919fbe71ab3534574e13d40468&filter-classifiedState=unclassified&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception because of bustage https://treeherder.mozilla.org/logviewer.html#?job_id=85840526&repo=mozilla-inbound
Flags: needinfo?(bzbarsky)
Backout by cbook@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/85658d613c77
Backed out changeset 3ccb231829a9
Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/d8d6b8f76ca5
Improve dangling-exception logging in AutoJSAPI::InitInternal to deal better with exceptions from a different origin. r=bholley
Comment 8•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•