commit | f1ccaff48fb89c3156c629f5fe9cf33a56c07566 | [log] [tgz] |
---|---|---|
author | zhoupeng <zhoupeng.1996@bytedance.com> | Mon Aug 05 19:49:48 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Aug 05 19:49:48 2024 |
tree | 6cafee487920ce79132444764a8e38eee211edf9 | |
parent | b7352adf77b07bc0173b45b4cfe934940c44eca5 [diff] |
Set the <base> element's base URL to document's base URL when href scheme is data or javascript According to the spec: https://html.spec.whatwg.org/multipage/semantics.html#the-base-element > If any of the following are true: > - urlRecord is failure; > - urlRecord's scheme is "data" or "javascript"; or > - running Is base allowed for Document? on urlRecord and document > returns "Blocked" > then set element's frozen base URL to document's fallback base URL > and return. Before this patch, we not update `base_element_url_` when `href` scheme is `data:`, so some test cases in base-data.html and base-javascript.html will failed. Bug: 40780283 Change-Id: I64f64b53072f171dbeb54b4d2070cd5f2352d828 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5754948 Reviewed-by: Joey Arhar <jarhar@chromium.org> Commit-Queue: Joey Arhar <jarhar@chromium.org> Reviewed-by: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#1337425}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.