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)
Core
CSS Parsing and Computation
Tracking
()
NEW
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.
| Reporter | ||
Comment 1•8 years ago
|
||
I should attempt to reland the extra visited reftests from bug 1328509 once this mechanism exists.
| Reporter | ||
Comment 2•8 years ago
|
||
:emilio has another test that would be great to support in https://reviewboard.mozilla.org/r/147588/diff/1#index_header.
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 ?
Updated•8 years ago
|
Priority: -- → P3
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•