Closed
Bug 1260359
Opened 9 years ago
Closed 9 years ago
[e10s] Detached devtools window title is not updated when navigating
Categories
(DevTools :: General, defect, P2)
Tracking
(e10s+, firefox45 unaffected, firefox46 affected, firefox47 affected, firefox48 verified)
VERIFIED
FIXED
Firefox 48
Tracking | Status | |
---|---|---|
e10s | + | --- |
firefox45 | --- | unaffected |
firefox46 | --- | affected |
firefox47 | --- | affected |
firefox48 | --- | verified |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
Details
Attachments
(1 file)
STRs:
- open https://developer.mozilla.org/en-US/
- open devtools as a detached window
- (here devtools window title should be "Inspector - Mozilla Developer Network")
- navigate to https://bugzilla.mozilla.org/
Expected:
- detached devtools window title should be "Inspector - Bugzilla Main Page"
Actual:
- detached devtools window title is still "Inspector - Mozilla Developer Network"
Assignee | ||
Updated•9 years ago
|
status-firefox45:
--- → unaffected
status-firefox46:
--- → affected
status-firefox47:
--- → affected
status-firefox48:
--- → affected
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 1•9 years ago
|
||
Actually related to e10s.
The name getter in target.js is accessing this._tab.linkedBrowser.contentDocument which may not work when e10s is enabled.
tracking-e10s:
--- → ?
Summary: Detached devtools window title is not updated when navigating → [e10s] Detached devtools window title is not updated when navigating
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Priority: -- → P2
Assignee | ||
Comment 2•9 years ago
|
||
The devtools host window updates its title when its target navigates.
This was done using a contentDocument CPOW, and thus failing on e10s.
The url and title are now updated in TabTarget.form upon tab navigation.
Updated existing test to cover the case of pages with a title.
Review commit: https://reviewboard.mozilla.org/r/42989/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/42989/
Attachment #8735859 -
Flags: review?(jryans)
Assignee | ||
Comment 3•9 years ago
|
||
Updated•9 years ago
|
Comment on attachment 8735859 [details]
MozReview Request: Bug 1260359 - fix devtools detached toolbox title update in e10s;r=jryans
https://reviewboard.mozilla.org/r/42989/#review39633
Looks good, thanks for working on it!
::: devtools/client/framework/target.js:476
(Diff revision 1)
> + this._form.url = aPacket.url;
> + this._form.title = aPacket.title;
It's a little strange to mutate the form here, since previously I thought of the form as data we received as a complete protocol packet... but in the end this is probably okay. We can always change if it becomes confusing.
Attachment #8735859 -
Flags: review?(jryans) → review+
Assignee | ||
Comment 5•9 years ago
|
||
Comment on attachment 8735859 [details]
MozReview Request: Bug 1260359 - fix devtools detached toolbox title update in e10s;r=jryans
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/42989/diff/1-2/
Assignee | ||
Comment 6•9 years ago
|
||
Comment on attachment 8735859 [details]
MozReview Request: Bug 1260359 - fix devtools detached toolbox title update in e10s;r=jryans
Thanks for the review! I had another look at the fix based on your comment. I think we should avoid updating form here, as you said.
It seems weird for me to have outdated information in this object, but it is definitely not the role of target.js to update this object.
Instead here I read the url & title from the form when receiving the payload, save them as properties on TabTarget directly, and update them when navigating.
Let me know if you prefer to go with this one.
Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=e6b152fb6072
Attachment #8735859 -
Flags: review+ → review?(jryans)
Comment on attachment 8735859 [details]
MozReview Request: Bug 1260359 - fix devtools detached toolbox title update in e10s;r=jryans
https://reviewboard.mozilla.org/r/42989/#review39837
Cool, let's go with this one then. Thanks!
Attachment #8735859 -
Flags: review?(jryans) → review+
Comment 9•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 48
Comment 10•9 years ago
|
||
Affected: Win7_64, Nightly 48, 32bit, ID 20160320030409
Fixed on: Win7_64, Nightly 48, 32bit, ID 20160401030216
Status: RESOLVED → VERIFIED
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•