commit | eae372c09940a9b140b7b127cbe20b52704aa03e | [log] [tgz] |
---|---|---|
author | Fredrik Söderquist <fs@opera.com> | Wed Aug 30 12:23:58 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Aug 30 12:23:58 2017 |
tree | bd7a82cdc6803a45fb0dd96b436fcb0be9ec6072 | |
parent | 8bc1a4a71c95fcb98eab9b65526b40f8a88c7bec [diff] |
Don't rely on the cached 'local' flag when resolving <use> target Since the document URL can change between a <use> 'href' is set, and the actual element reference is resolved (looked up by id), the notion of being "local" to the document can change during this window as well. To avoid this, we need to re-evaluate the "is local" state before resolving the element reference. This appears to match what other UAs are doing (but they could/do differ in other ways.) Keep the cached "is local" state and use where applicable to avoid the full URL compare. Bug: 749855 Change-Id: Ibbe9b1fb7e37f86b57f775d288203fbd9b3d5f4e Reviewed-on: https://chromium-review.googlesource.com/641459 Commit-Queue: Fredrik Söderquist <fs@opera.com> Reviewed-by: Stephen Chenney <schenney@chromium.org> Reviewed-by: Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#498433}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .