Closed Bug 1151154 Opened 9 years ago Closed 9 years ago

Stop faking resumption packets on tabNavigation events

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(firefox40 fixed)

RESOLVED FIXED
Firefox 40
Tracking Status
firefox40 --- fixed

People

(Reporter: shu, Assigned: shu)

References

Details

Attachments

(1 file)

So we do this terrible thing in the debugger frontend that fakes resumption packets on tab navigation events, both at the start *and* at the end of navigation.

The end event, as handled by _navigate in the webbrowser actor, can generate a fake resumption packet that races with the paused event from a breakpoint hit on page reload.

STR for this is kind of complicated and came up while debugging Shumway.

Nick help me come up with the fix since I don't know the promise machinery.
Attachment #8588255 - Flags: review?(past)
Filed bug 1151156 for the backout of the fake resumption packet when Gecko 40 hits b2g stable.
Comment on attachment 8588255 [details] [diff] [review]
Don't fake resumption packets on tab navigation events in the frontend debugger.

Review of attachment 8588255 [details] [diff] [review]:
-----------------------------------------------------------------

This makes me happy!

::: toolkit/devtools/client/dbg-client.jsm
@@ +987,5 @@
>          typeof this._clients.get(aPacket.from)._onThreadState == "function") {
>        this._clients.get(aPacket.from)._onThreadState(aPacket);
>      }
> +
> +    // TODO: Remove once Gecko 40 is on b2g-stable.

Nit: add a mention of bug 1151156 in the comment.
Attachment #8588255 - Flags: review?(past) → review+
https://hg.mozilla.org/mozilla-central/rev/4bc1143f4486
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 40
Assignee: nobody → shu
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: