Closed Bug 1302862 Opened 8 years ago Closed 8 years ago

Open the panel when the sources have loaded

Categories

(DevTools :: Debugger, defect, P2)

defect

Tracking

(firefox52 fixed)

RESOLVED FIXED
Firefox 52
Tracking Status
firefox52 --- fixed

People

(Reporter: jlast, Assigned: jlong)

References

Details

Attachments

(1 file, 1 obsolete file)

We currently "open" the panel immediately. This means that outside tools like the console, don't know when the sources have loaded.

We should instead wait on the sources loading before declaring the panel opened.
Assignee: nobody → jlaster
Priority: -- → P2
Attached patch init-page.patch (obsolete) — Splinter Review
Attachment #8791387 - Flags: review?(jlong)
Comment on attachment 8791387 [details] [diff] [review]
init-page.patch

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

This looks good. Need to actually make sure this is going to behave how we're thinking, and I'll comment more in the github issue about it.

We'll need to land another bundle update first before pushing this, as this will break the current debugger.

::: devtools/client/debugger/new/panel.js
@@ +22,4 @@
>          threadClient: this.toolbox.threadClient,
>          tabTarget: this.toolbox.target
> +      }).then(() => {
> +        return this;

We convert this to use Task, but I don't care either way.
Attachment #8791387 - Flags: review?(jlong) → review+
Blocks: 1294139
Summary: Open the panel when the sources ave loaded → Open the panel when the sources have loaded
Taking this as I'm going to land all this work and I cleaned it up with `Task`.
Assignee: jlaster → jlong
Attached patch 1302862.patchSplinter Review
This most likely won't land until tomorrow because I'll need to do another try run after we land a bundle update, as this needs the tweak to `bootstrap` to return a promise.
Attachment #8791387 - Attachment is obsolete: true
Attachment #8792661 - Flags: review?(bgrinstead)
Attachment #8792661 - Flags: feedback?(jlaster)
Comment on attachment 8792661 [details] [diff] [review]
1302862.patch

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

It's ok from a DAMP end since this isn't regressing user-perceivable startup time
Attachment #8792661 - Flags: review?(bgrinstead) → review+
Joel, just a heads up that this bug will likely regress the 'debugger open' time in damp but it's shifting when the open event fires to make a couple things easier - it doesn't actually change user-perceived startup time
Flags: needinfo?(jmaher)
thanks :bgrins!  I will keep an eye out for it!
Flags: needinfo?(jmaher)
Pushed by jlong@mozilla.com:
https://hg.mozilla.org/integration/fx-team/rev/c2b240d60d5b
Initialize the debugger after the sources have loaded r=bgrins,jlast
https://hg.mozilla.org/mozilla-central/rev/c2b240d60d5b
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 52
Attachment #8792661 - Flags: feedback?(jlaster) → feedback+
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: