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)

57 Branch
Unspecified
macOS
defect

Tracking

(firefox56 unaffected, firefox57+ verified, firefox58 verified)

VERIFIED FIXED
Firefox 58
Iteration:
57.3 - Sep 19
Tracking Status
firefox56 --- unaffected
firefox57 + verified
firefox58 --- verified

People

(Reporter: tristan.fraipont, Assigned: spohl)

Details

Attachments

(2 files, 2 obsolete files)

(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).
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
Ever confirmed: true
Priority: -- → P2
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)
Attached patch Patch (obsolete) — Splinter Review
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)
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, ...
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)
Attached patch Patch (obsolete) — Splinter Review
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)
Attached patch PatchSplinter Review
s/true/YES/ for BOOL argument.
Attachment #8916301 - Attachment is obsolete: true
Attachment #8916301 - Flags: review?(mstange)
Attachment #8916302 - Flags: review?(mstange)
Attachment #8916302 - Flags: review?(mstange) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/8bd41749e385016da8d8e333a2796ecba0e22c73
Bug 1403432: Show window titles when the inspector is launched in windowed mode. r=mstange
\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?
https://hg.mozilla.org/mozilla-central/rev/8bd41749e385
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
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?
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+
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
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
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+
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: