[fetch-later] Fix incorrect quota behavior in same-origin iframes This CL incorporate [recent spec changes][1] to solve various issue: - Fix fetchLater requests made in same-origin iframes not respecting pending fetchLater requests from its parent and neighbor iframes. - No longer perform complicated quota calculation in fetchLater algorithms to prevent from taking up [inflightKeepaliveBytes][2]. This is left as an open spec question to solve in the future. As a result, what this CL really changes: - Update `GetAvailableDeferredQuota()` to take source frame instead of control frame, and update related implementation. - Update DeferredLoader's `invoke_state_` to match current spec. [1]: https://github.com/whatwg/fetch/pull/1647/commits/139351f9c3ea17128c34ab30ac707d344a4d611d [2]: https://fetch.spec.whatwg.org/#ref-for-request-keepalive-flag%E2%91%A1 NO_IFTTT=changes reflected in tools/metrics/histograms/metadata/blink/enums.xml Bug: 40276121 Change-Id: Ie41ffdf7558860ff34901c547578ebf81189f3a9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6193934 Reviewed-by: Adam Rice <ricea@chromium.org> Commit-Queue: Ming-Ying Chung <mych@chromium.org> Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org> Cr-Commit-Position: refs/heads/main@{#1412755}
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.