Closed
Bug 1140435
Opened 10 years ago
Closed 10 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)
(deleted),
patch
|
Paolo
:
review+
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Paolo
:
review+
|
Details | Diff | Splinter Review |
(deleted),
text/plain
|
Details |
See bug 1083359 for all the details.
Comment 1•10 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•10 years ago
|
||
Carrying over r+ from bug 1083359 comment 74.
Assignee | ||
Comment 3•10 years ago
|
||
Carrying over r+ from bug 1083359 comment 75.
Attachment #8573991 -
Flags: review+
Assignee | ||
Comment 4•10 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•10 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•10 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•10 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•10 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•10 years ago
|
||
Tryserver build with updated patches:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=18a89cb5764c
Comment 10•10 years ago
|
||
> If I leave the following JS_ReportError, would the more specific message be propagated?
Yes, it should be.
Assignee | ||
Comment 11•10 years ago
|
||
Comment 12•10 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•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/750120b03c83
https://hg.mozilla.org/mozilla-central/rev/bdacb3e22b54
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Comment 14•10 years ago
|
||
I'd guess what happened was "I completely forgot to run mcMerge on it," thanks for noticing.
Flags: needinfo?(philringnalda)
Comment 15•10 years ago
|
||
Hello,
It's seem (with git bisect) your second patch completely break boot on ZTE OPEN C :(
Assignee | ||
Comment 16•10 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•10 years ago
|
||
Flags: needinfo?(taz)
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•