Closed
Bug 1140435
Opened 9 years ago
Closed 9 years ago
Allow JS code to provide an async stack when calling a function
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: Paolo, Assigned: Paolo)
References
Details
Attachments
(3 files)
6.41 KB,
patch
|
Paolo
:
review+
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
9.24 KB,
patch
|
Paolo
:
review+
|
Details | Diff | Splinter Review |
97.42 KB,
text/plain
|
Details |
See bug 1083359 for all the details.
Comment 1•9 years ago
|
||
Hmm, I guess this is one of those followup bugs I asked about. ;) What are the DOM bits that need doing here?
Assignee | ||
Comment 2•9 years ago
|
||
Carrying over r+ from bug 1083359 comment 74.
Assignee | ||
Comment 3•9 years ago
|
||
Carrying over r+ from bug 1083359 comment 75.
Attachment #8573991 -
Flags: review+
Assignee | ||
Comment 4•9 years ago
|
||
These patches are rebased on top of bug 1122238. Boris, I think copying the new structure of the accessors was straightforward, but if you want to take a look feel free to.
Flags: needinfo?(bzbarsky)
Comment 5•9 years ago
|
||
Comment on attachment 8573989 [details] [diff] [review] Part 1 - Add the asyncCause and asyncCaller properties to nsIStackFrame You need to add mAsyncCaller to the NS_IMPL_CYCLE_COLLECTION for StackFrame, right?
Flags: needinfo?(paolo.mozmail)
Comment 6•9 years ago
|
||
Comment on attachment 8573989 [details] [diff] [review] Part 1 - Add the asyncCause and asyncCaller properties to nsIStackFrame Apart from the CC bit, this looks good.
Flags: needinfo?(bzbarsky)
Attachment #8573989 -
Flags: review+
Comment 7•9 years ago
|
||
Comment on attachment 8573991 [details] [diff] [review] Part 2 - Allow JS code to provide an async stack when calling a function >+ JS_ReportError(cx, "Invalid argument"); No real need for that, since XPConnect will do the right thing with NS_ERROR_INVALID_ARG. This looks great.
Assignee | ||
Comment 8•9 years ago
|
||
Thanks, patches updated! If I leave the following JS_ReportError, would the more specific message be propagated? JS_ReportError(cx, "Must use a native JavaScript stack frame"); return NS_ERROR_INVALID_ARG;
Flags: needinfo?(paolo.mozmail)
Assignee | ||
Comment 9•9 years ago
|
||
Tryserver build with updated patches: https://treeherder.mozilla.org/#/jobs?repo=try&revision=18a89cb5764c
Comment 10•9 years ago
|
||
> If I leave the following JS_ReportError, would the more specific message be propagated?
Yes, it should be.
Assignee | ||
Comment 11•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/750120b03c83 https://hg.mozilla.org/integration/fx-team/rev/bdacb3e22b54
Comment 12•9 years ago
|
||
Phil, something happened on the last fx-team -> mc merge because nothing got marked as fixed (from https://hg.mozilla.org/mozilla-central/rev/65d1053d7959 to https://hg.mozilla.org/mozilla-central/rev/bdacb3e22b54)
Flags: needinfo?(philringnalda)
Comment 13•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/750120b03c83 https://hg.mozilla.org/mozilla-central/rev/bdacb3e22b54
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Comment 14•9 years ago
|
||
I'd guess what happened was "I completely forgot to run mcMerge on it," thanks for noticing.
Flags: needinfo?(philringnalda)
Comment 15•9 years ago
|
||
Hello, It's seem (with git bisect) your second patch completely break boot on ZTE OPEN C :(
Assignee | ||
Comment 16•9 years ago
|
||
(In reply to dattaz from comment #15) > It's seem (with git bisect) your second patch completely break boot on ZTE > OPEN C :( Can you file a separate bug on this issue? It should be investigated by someone familiar with Firefox OS.
Comment 18•9 years ago
|
||
done : https://bugzilla.mozilla.org/show_bug.cgi?id=1144622
Flags: needinfo?(taz)
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•