Closed Bug 1704458 Opened 3 years ago Closed 3 years ago

Toolbox title isn't updated when navigating with server side target switching enabled

Categories

(DevTools :: Framework, defect, P3)

defect

Tracking

(Fission Milestone:M7a, firefox90 fixed)

RESOLVED FIXED
90 Branch
Fission Milestone M7a
Tracking Status
firefox90 --- fixed

People

(Reporter: ochameau, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

(Whiteboard: dt-fission-m3-mvp)

Attachments

(2 files, 1 obsolete file)

When enabling devtools.target-switching.server.enabled while having the toolbox shown in a window, its title isn't updating on navigation. That's because we rely on will-navigate and navigate, which don't fire in case of server side target switching.

We should instead rely on onTargetAvailable and/or DOCUMENT_EVENT, which both fires reliably.

The Bugbug bot thinks this bug should belong to the 'DevTools::Framework' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: General → Framework

We should be able to do Bug 1691576 at the same time as this one

See Also: → 1691576
Fission Milestone: --- → M7a
Whiteboard: dt-fission-m3-triage → dt-fission-m3-mvp
Severity: -- → S3
Priority: -- → P3
Blocks: 1632141

Let's have this bug to focus on updating targetFront's title/url attributes out of DOCUMENT_EVENT.
And bug 1691576 to focus on making toolbox.js to update toolbox's title out of DOCUMENT_EVENT.

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED

This will be consumed by the toolbox to not update detached window title when
the user triggered a frame switching (i.e. selected a document in the frame switcher
menu in the toolbar).

Depends on D104540

Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b7181701f11c
[devtools] Pass isFrameSwitching in DOCUMENT_EVENT resources. r=jdescottes.
https://hg.mozilla.org/integration/autoland/rev/c1954aab8ab2
[devtools] Update targetFront url and title on DOCUMENT_EVENT resource. r=ochameau,jdescottes.
Flags: needinfo?(nchevobbe)

browser_ext_devtools_panels_elements_sidebar.js failures does only show up with my patch queue, I'll investigate

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
Attachment #9220551 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: