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.
BUG=356999
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171074
Patch Set 1 #
Total comments: 6
Patch Set 2 : add shadow dom testcase #Patch Set 3 : do not skip non-matched rules for pseudo elements matches #
Total comments: 1
Patch Set 4 : rebaseline test #Patch Set 5 : do not regress tree-boundary crossing rules #Patch Set 6 : add test to verify :host rules #
Messages
Total messages: 14 (0 generated)
|