-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support uuid-in-package: URLs in Subresource WebBundles
This allows subresource and subframe loading from WebBundles with uuid-in-package: scheme URLs. We have been using urn:uuid: for this purpose, but since urn: scheme can be handled by custom protocol handler, there was a possibility of conflict. Explainer change: WICG/webpackage#677 The semantics is the same as currently we have for urn:uuid. Temporarily, we support both uuid-in-package: and urn:uuid: resources so that this will not break currently running origin trial. We will remove the urn:uuid: support before shipping this feature. Bug: 1257045 Change-Id: Ie86d3a3207fdaa6a4b0b4337cac2f1c6457e132b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3104651 Reviewed-by: Daniel Cheng <[email protected]> Reviewed-by: Alex Moshchuk <[email protected]> Reviewed-by: Takashi Toyoshima <[email protected]> Reviewed-by: Hayato Ito <[email protected]> Commit-Queue: Kunihiko Sakamoto <[email protected]> Cr-Commit-Position: refs/heads/main@{#931822}
- Loading branch information
Showing
7 changed files
with
218 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"log": { | ||
"entries": [ | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"url": "uuid-in-package:020111b3-437a-4c5c-ae07-adb6bbffb720", | ||
"headers": [] | ||
}, | ||
"response": { | ||
"status": 200, | ||
"headers": [ | ||
{ | ||
"name": "Content-type", | ||
"value": "application/javascript" | ||
} | ||
], | ||
"content": { | ||
"text": "window.report_result('OK');" | ||
} | ||
} | ||
}, | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"url": "uuid-in-package:429fcc4e-0696-4bad-b099-ee9175f023ae", | ||
"headers": [] | ||
}, | ||
"response": { | ||
"status": 200, | ||
"headers": [ | ||
{ | ||
"name": "Content-type", | ||
"value": "text/html" | ||
} | ||
], | ||
"content": { | ||
"text": "<script>\nwindow.addEventListener('message', (e) =>{e.source.postMessage(eval(e.data), e.origin);});\n</script>" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.