commit | 6956ee0f197e14b01d70d9cec63ea2cfc421e65e | [log] [tgz] |
---|---|---|
author | Joey Arhar <jarhar@chromium.org> | Wed Jan 24 20:19:40 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jan 24 20:19:40 2024 |
tree | 946646cdeef905468b5a0e9e6c3cb8be7df0f6a9 | |
parent | 04fa180dc7aea16a905f79c715dc2ee5cc6f742b [diff] |
Improve XML namespace error handling A change in libxml which I will merge after this patch regressed some of our tests. This patch implements fixes to make the libxml change work without actually applying the libxml change. Merging this first behind a flag without the libxml change will allow us to safely release the new behavior. I will merge the libxml changes after the next branch point. These changes were recommended by the libxml maintainer here: https://gitlab.gnome.org/GNOME/libxml2/-/issues/653 The first fix is to null terminate the strings in g_shared_xhtml_entity_result. The second fix is to explicitly emit errors when attributes are parsed which use a namespace that doesn't exist. We have a test for this and before the libxml commit we had some odd behavior which would end up saying that the xml was malformed which isn't actually the case. Change-Id: I1602bf252f6ab9188ed8548abfe1386fc2141116 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5174719 Commit-Queue: Joey Arhar <jarhar@chromium.org> Reviewed-by: David Baron <dbaron@chromium.org> Cr-Commit-Position: refs/heads/main@{#1251632}
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.