Closed
Bug 1403432
Opened 7 years ago
Closed 7 years ago
windowed mode doesn't display current page's title/url as it used to
Categories
(DevTools :: General, defect, P2)
Tracking
(firefox56 unaffected, firefox57+ verified, firefox58 verified)
Tracking | Status | |
---|---|---|
firefox56 | --- | unaffected |
firefox57 | + | verified |
firefox58 | --- | verified |
People
(Reporter: tristan.fraipont, Assigned: spohl)
Details
Attachments
(2 files, 2 obsolete files)
103.30 KB,
image/png
|
Details | |
927 bytes,
patch
|
mstange
:
review+
ritu
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
(Not sure if it really needs a bug report but since you plan to land 57 quite soon...) When inspector is in windowed mode, the top bar used to show the inspected page's title/url. In 57 (both Beta channel and Developper Edition) it doesn't anymore. Seems to be already fixed in 58 (Nightly).
Comment 1•7 years ago
|
||
Thanks for filing. I was able to reproduce. This is indeed a regression. I'll try to look for a regression range.
Severity: minor → normal
Status: UNCONFIRMED → NEW
status-firefox57:
--- → fix-optional
Ever confirmed: true
Priority: -- → P2
Comment 2•7 years ago
|
||
Here's what I found so far: Last good revision: 4193c11e97aeab5a258d5499bf4a4d9177b27380 First bad revision: 938750d859b85600b84013bd6dea63db1c32d135 Pushlog: https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=4193c11e97aeab5a258d5499bf4a4d9177b27380&tochange=938750d859b85600b84013bd6dea63db1c32d135 So this could have been caused by bug 1401297 or bug 1398582. @Stephen: Hey, do you know if either of these bugs could be causing this?
Flags: needinfo?(spohl.mozilla.bugs)
Assignee | ||
Comment 3•7 years ago
|
||
We always tracked whether or not we wanted to show the window title internally via nsCocoaWindow's mDrawTitle and it was actually set to false, but before the 10.13 regression fixes, we never used to call NSWindow's setTitleVisibility:. This means that as long as we would not cover the native titlebar by drawing into the titlebar, the window title was visible even though mDrawTitle was false. As part of the visual regression fixes on macOS 10.13, we started calling NSWindow's setTitleVisibility: correctly. Although mstange's floating titlebar fix eventually made that patch unnecessary, it's still the right thing to do and the inspector window should simply set the "drawtitle" attribute to "true". This allows us to track the state correctly via mDrawTitle and we display the window titles again.
Assignee: nobody → spohl.mozilla.bugs
Status: NEW → ASSIGNED
Flags: needinfo?(spohl.mozilla.bugs)
Attachment #8916297 -
Flags: review?(mstange)
Assignee | ||
Updated•7 years ago
|
status-firefox58:
--- → affected
tracking-firefox57:
--- → ?
Comment 4•7 years ago
|
||
The inspector is not a drawsContentsIntoWindowFrame window (it doesn't set the chromemargin attribute). Wouldn't it be better if Widget just always treated windows with separate titlebars as windows that want their title to be displayed? Otherwise we'll have to fix a lot more windows, e.g. the bookmarks manager, the page info window, ...
Assignee | ||
Comment 5•7 years ago
|
||
Comment on attachment 8916297 [details] [diff] [review] Patch Yes, I've been thinking about this solution too and meant to ask you about it only to forget about it when I posted my patch. Will address. Thanks!
Attachment #8916297 -
Flags: review?(mstange)
Assignee | ||
Comment 6•7 years ago
|
||
As suggested. The one unfortunate thing now is that we ignore the choice made in nsXULWindow::SyncAttributesToWidget about whether or not we want to draw window titles. So if we don't draw into the window frame, we can't disable the window titles. This is how things behaved previously on macOS, but it's worth pointing out.
Attachment #8916297 -
Attachment is obsolete: true
Attachment #8916301 -
Flags: review?(mstange)
Assignee | ||
Comment 7•7 years ago
|
||
s/true/YES/ for BOOL argument.
Attachment #8916301 -
Attachment is obsolete: true
Attachment #8916301 -
Flags: review?(mstange)
Attachment #8916302 -
Flags: review?(mstange)
Updated•7 years ago
|
Attachment #8916302 -
Flags: review?(mstange) → review+
Assignee | ||
Comment 8•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/8bd41749e385016da8d8e333a2796ecba0e22c73 Bug 1403432: Show window titles when the inspector is launched in windowed mode. r=mstange
Comment 9•7 years ago
|
||
\o/ Thanks Stephen and Markus for this fix! Do you think this could be uplifted to 57 (where the problem exists)? If so, can you please open the request?
Comment 10•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8bd41749e385
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
Assignee | ||
Comment 11•7 years ago
|
||
Comment on attachment 8916302 [details] [diff] [review] Patch Approval Request Comment [Feature/Bug causing the regression]: Regression from macOS 10.13 compatibility fixes (tracked in meta bug 1391790). [User impact if declined]: Windows with native titlebars (such as the inspector window) will fail to display window titles. [Is this code covered by automated tests?]: No [Has the fix been verified in Nightly?]: Yes [Needs manual test from QE? If yes, steps to reproduce]: Yes. 1. Open Inspector (Option-Cmd-C) 2. Click on the icon to "Show in separate window" at the top right of the Inspector panel. 3. Verify that the Inspector window shows the page title in the titlebar. [List of other uplifts needed for the feature/fix]: None. [Is the change risky?]: No. [Why is the change risky/not risky?]: This is a very small patch that simply restores the known good behavior from before, i.e. Firefox 56 and below. [String changes made/needed]: None.
Attachment #8916302 -
Flags: approval-mozilla-beta?
status-firefox56:
--- → unaffected
Comment on attachment 8916302 [details] [diff] [review] Patch New problem with OSX 10.13 compatibility, Beta57+
Attachment #8916302 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 13•7 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-beta/rev/b0466dd6b31a
Updated•7 years ago
|
Flags: qe-verify+
Summary: windowed mode doesn't display current page's title/url as it used to → [10.13] windowed mode doesn't display current page's title/url as it used to
Assignee | ||
Comment 14•7 years ago
|
||
Fyi: This bug affects macOS version 10.10 or above and is not specific to 10.13.
Summary: [10.13] windowed mode doesn't display current page's title/url as it used to → windowed mode doesn't display current page's title/url as it used to
Comment 15•7 years ago
|
||
I managed to reproduce the bug using beta 57.0b3 on Mac OS X 10.11 and macOS 10.12. I retested everything using beta 57.0b8 and latest Nightly 58 on the same platforms, but the bug is not reproducing. Windowed mode now displays a title/url.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•