Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support subframe navigation to urn:uuid URLs in Subresource Web Bundles #25784

Closed
wants to merge 1 commit into from

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Sep 25, 2020

Design doc: https://bit.ly/3kLkMRJ#heading=h.aay60dv2vzua

This CL changes BeginNavigation IPC to take an additional parameter,
URNLoaderParams. Currently its only member is a
URLLoaderClientEndpoints, which is used to load a urn:uuid resource from
a Web Bundle.

In the renderer side, FrameLoader::StartNavigation calls
SubresourceWebBundle::MaybeCreateWebBundleBackedNavigationInfo() and it
creates a URLLoaderClientEndpoints if the request URL is a urn:uuid URL
in the bundle.

In the browser process side, if URNLoaderParams is available
NavigationURLLoaderImpl creates a UrnURLLoaderFactory with the
endpoints, and sets it as the handler for urn: scheme.

At the moment, browser process doesn't care which bundle the urn:uuid
resource came from. In followup CLs, we will add information about
WebBundle URL to URNLoaderParams, so that cache isolation can be done
taking the WebBundle's origin into account.

This CL makes CanAccessDataForOrigin allow urn: lock URLs when using
CanAccessDataForOrigin to validate precursor of an opaque origin, as we
do for data: URLs.

Bug: 1082020
Change-Id: Ia209f71bcd6855df29581d87595010acd609e8ee
Reviewed-on: https://chromium-review.googlesource.com/2409741
WPT-Export-Revision: a8cb7c29e60b3a29c61d8761ab56769d6f40ba13

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-2409741 branch 5 times, most recently from d0f64b0 to 80de287 Compare October 2, 2020 05:54
Design doc: https://bit.ly/3kLkMRJ#heading=h.aay60dv2vzua

This CL changes BeginNavigation IPC to take an additional parameter,
URNLoaderParams. Currently its only member is a
URLLoaderClientEndpoints, which is used to load a urn:uuid resource from
a Web Bundle.

In the renderer side, FrameLoader::StartNavigation calls
SubresourceWebBundle::MaybeCreateWebBundleBackedNavigationInfo() and it
creates a URLLoaderClientEndpoints if the request URL is a urn:uuid URL
in the bundle.

In the browser process side, if URNLoaderParams is available
NavigationURLLoaderImpl creates a UrnURLLoaderFactory with the
endpoints, and sets it as the handler for urn: scheme.

At the moment, browser process doesn't care which bundle the urn:uuid
resource came from. In followup CLs, we will add information about
WebBundle URL to URNLoaderParams, so that cache isolation can be done
taking the WebBundle's origin into account.

This CL makes CanAccessDataForOrigin allow urn: lock URLs when using
CanAccessDataForOrigin to validate precursor of an opaque origin, as we
do for data: URLs.

Bug: 1082020
Change-Id: Ia209f71bcd6855df29581d87595010acd609e8ee
@KyleJu
Copy link
Contributor

KyleJu commented Apr 10, 2024

Close this PR because the Chromium CL cannot be found.

@KyleJu KyleJu closed this Apr 10, 2024
@KyleJu KyleJu deleted the chromium-export-cl-2409741 branch April 10, 2024 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants