Closed Bug 1703975 Opened 4 years ago Closed 2 years ago

Avoid FOUC with proton infobars

Categories

(Firefox :: Messaging System, defect, P3)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: mstriemer, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

(Whiteboard: [proton-infobars])

The proton infobars load common.css and message-bar.css in their shadow DOM. Since this load can happen after the element has been added to the DOM, we could get a flash of unstyled content (FOUC).

This is particularly noticeable in browser_registerProtocolHandler_notification.js where the test immediately triggers an infobar and checks that it has an icon set. This test was updated to wait for the styles to load [1] but we should instead look into avoiding the FOUC and remove the TestUtils.waitForCondition() there.

[1] https://phabricator.services.mozilla.com/D111308

Priority: -- → P3

https://phabricator.services.mozilla.com/D111358 also disabled this test in verify mode.

Severity: -- → S3

NI @mstriemer for feedback if this issue still exists or safe to close

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(mstriemer)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.