Filter highlight pseudo element properties.
The css-pseudo specification lists which properties applies to which pseudo elements. For ::marker and ::first-letter we were already using the CascadeFilter. This CL uses the filter for highlight pseudo elements like ::selection and ::target-text, which share the same set of properties which apply. This means we stop retrieving resources for CSS properties which don't apply to these pseudo elements. Additionally, block all resource fetching for the ::target-text element since resource fetching can be used by an external stylesheet in combination with a text fragment url to detect text content on a page. Bug: 1136817 Change-Id: I8b19db8535882e6b20f6319cd2a9f5219e7c9538 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2489657 Commit-Queue: Rune Lillesveen <futhark@chromium.org> Reviewed-by:Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#821283}
Showing
Please register or sign in to comment