DescriptionDevTools: matched styles respect :visited/:link pseudo classes
Method StyleResolver::pseudoCSSRulesForElement is used from both WebPlatform
(via window.getMatchedCSSRules) and inspector in its styles sidebar pane.
Due to security reasons, this method "lies" about css rules applied for
visited and unvisited links so that it is impossible to sniff user history.
This patch makes inspector to adjust method results so that it knows which
rules are actually applied and which are not.
FYI: The previous version of this patch is https://codereview.chromium.org/228673002/
It was reverted due to regression of :host rules, thus this patch adds
a test to verify them.
BUG=356999
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174963
Patch Set 1 #
Total comments: 1
Patch Set 2 : address @apavlov comments #Patch Set 3 : correct matching for shadow rules #
Total comments: 4
Patch Set 4 : address comments #
Messages
Total messages: 13 (0 generated)
|