Open Bug 1703975 Opened 8 months ago Updated 29 days ago

Avoid FOUC with proton infobars

Categories

(Firefox :: Messaging System, defect, P3)

defect

Tracking

()

People

(Reporter: mstriemer, Unassigned)

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
You need to log in before you can comment on or make changes to this bug.