Open Bug 1367186 Opened 8 years ago Updated 3 years ago

Add an internal mechanism to know when visited styles are applied

Categories

(Core :: CSS Parsing and Computation, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: jryans, Unassigned)

Details

In various tests for :visited styles, we currently use fragile things like `setTimeout` or waiting in a loop in hopes that a link is eventually visited and the visited style is applied. We should add some kind of internal event or observer notification that can be used to know that visited styles are applied to improve the stability of these tests.
I should attempt to reland the extra visited reftests from bug 1328509 once this mechanism exists.
There's the risk that the mechanism for the notification creates a timing attack, though. I'm curious why there were tests that didn't land. Were they following the rules in https://searchfox.org/mozilla-central/source/layout/style/test/test_visited_reftests.html#19-24 ?
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.