Closed Bug 1922250 Opened 5 months ago Closed 4 months ago

Black borders around the browser Window on startup (Bug 1893918 has returned)

Categories

(Core :: Widget: Win32, defect)

defect

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox-esr128 --- unaffected
firefox131 --- unaffected
firefox132 --- unaffected
firefox133 + fixed

People

(Reporter: mayankleoboy1, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(7 files)

Start Firefox

AR: As the browser opens, there is a flash of black border around the window.
ER: Not so.

Bisection:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=7e482cc8bf9e5adfe593baa0ced722d05dbf34a7&tochange=9fd8ea4ffcea09d84de86001d2da9d2e04660cad

Strong suspect: bug 1911763

Attached file about:support
See Also: → 1893918
Summary: Black borders around the browser Window on startup → Black borders around the browser Window on startup (Bug 1893918 has returned)

I'm surprised nobody using windows noticed and filed a bug.

Logfile with "Windows" preset.
I started the browser and then enabled the logging. Then I pressed "Ctrl + N" to create a new Window (that had the black border)

Set release status flags based on info from the regressing bug 1911763

:emilio, since you are the author of the regressor, bug 1911763, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

The bug is marked as tracked for firefox133 (nightly). However, the bug still isn't assigned.

:gcp, could you please find an assignee for this tracked bug? Given that it is a regression and we know the cause, we could also simply backout the regressor. If you disagree with the tracking decision, please talk with the release managers.

For more information, please visit BugBot documentation.

Flags: needinfo?(gpascutto)

I plan to look, yeah...

Assignee: nobody → emilio
Flags: needinfo?(gpascutto)

If we get a paint message in-between we set the attributes and we call Show(),
we might still incorrectly clear the NC area, even though we're still
displaying the blank window.

While debugging this I realized mShowingSkeletonUI is a bit of a misnomer,
see the comment there...

Drive-by. These get set in nsWindow::Create but probably best to avoid
uninitialized memory.

Flags: needinfo?(emilio)
Attachment #9429606 - Attachment description: Bug 1922250 - Do not start painting if we get a paint message while still showing the blank window. r=#win-reviewers → Bug 1922250 - Do not force-clear the nc-area after consuming the skeleton UI window. r=#win-reviewers

This maps better to the code we have in nsWindow, and fixes a couple
bugs which caused maximized skeleton UI-consuming windows to be
mispositioned with the following patches.

We're not resizing the window, so we shouldn't change mBounds.

These are all super-hacky btw, ideally we expose some code to
sessionrestore to do the right thing, then remove this.

But for now this would do.

Keywords: leave-open
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1bf4bf1a74b1 Initialize some fields in nsWindow.h. r=win-reviewers,rkraesig
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c7ebee651e07 Align skeleton ui with nsWindow more closely. r=win-reviewers,rkraesig https://hg.mozilla.org/integration/autoland/rev/9af0852c057c Make skeleton UI special cases not modify mBounds incorrectly. r=win-reviewers,rkraesig
Pushed by tszentpeteri@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f4e18a092cba Make sure mBounds is correct after consuming maximized skeleton UI. r=fix. CLOSED TREE

No worries, thanks!

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/97dce070567f Align skeleton ui with nsWindow more closely. r=win-reviewers,rkraesig
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/61ba9f82e228 Make skeleton UI special cases not modify mBounds incorrectly. r=win-reviewers,rkraesig https://hg.mozilla.org/integration/autoland/rev/ae53bce6521b Do not force-clear the nc-area after consuming the skeleton UI window. r=win-reviewers,rkraesig
Flags: needinfo?(emilio)
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
See Also: → 1927460
Flags: qe-verify+

I am still able to reproduce the issue on Firefox 133.0b9 and Firefox Nightly 134.0a1 (2024-11-17), using Windows 11, as described in Comment 0. I am also able to reproduce it with the builds from Comment 21.
@Emilio, should we reopen this or we can continue to track it in bug 1927460? Thanks in advance!

Flags: needinfo?(emilio)

To be clear, can you reproduce it on a non clean profile? That should be fixed afaict. What you're seeing is likely bug 1927460.

Flags: needinfo?(emilio) → needinfo?(bhidecuti)

I am unable to reproduce the issue with older profiles, but if I create a new profile, generate some navigation data, and then quit/reopen the browser, I am seeing the black border a few times (5 or 6 times). After that, the issue is no longer reproducing. Please see the screen recording (the file was to large to attach it): https://drive.google.com/file/d/1IOnMp9j13hJk75XpDEpfaAUwiBSxehUh/view?usp=sharing

Flags: needinfo?(bhidecuti) → needinfo?(emilio)

Ok, I think using the restart button might not use the PreSkeletonUI, so that is bug 1927460 indeed. Let's track it there, it's good to have such an easy repro, thanks!

Flags: needinfo?(emilio)

Thank you for the confirmation as well!
Removing the "qe-verify+" flag.

Flags: qe-verify+
Regressions: 1933912
Regressions: 1934238
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: