Reland "[Layered API] Implement Layered API infrastructure behind a flag"
This is a reland of bde742c2 This reland contains fixes for: - Issue 839236 (by adding a dependency in core/script/BUILD.gn), and - A unit test failure that caused revert https://chromium-review.googlesource.com/1042065 (by adding skip_minify flag as the minifier inserted unexpected newlines to scripts) TBR=kinuko@chromium.org,kouhei@chromium.org Original change's description: > [Layered API] Implement Layered API infrastructure behind a flag > > This CL > 1. Maps std:x|y URLs to std:x (according to the draft spec [1]), > 2. Then maps to std-internal://x/index.js (not spec'ed [2]) > in GetInternalURL(), > 3. Then retrieves and serves the script contents for std-internal: > URLs in GetSourceText() using ui::ResourceBundle() > from blink_resources.pak. > > The source JavaScript files for Layered APIs are placed under > third_party/blink/renderer/core/script/resources/layered_api > and bundled into blink_resources.pak. > > This CL introduces std: and std-internal: schemes that are used in Blink side > (std: is user-facing while std-internal: is mostly invisible for users) > but not outside Blink. > > [1] Spec: > https://github.com/drufball/layered-apis/blob/master/spec.md > [2] Implementation design doc: > https://docs.google.com/document/d/1V-WaCZQbBcQJRSYSYBb8Y6p0DOdDpiNDSmD41ui_73s/edit > > Bug: 829084 > Change-Id: I61fc0a2f17d937db6e859303ab8a84e4b2b87850 > Reviewed-on: https://chromium-review.googlesource.com/1013321 > Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org> > Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> > Reviewed-by: Kouhei Ueno <kouhei@chromium.org> > Cr-Commit-Position: refs/heads/master@{#555524} Bug: 829084, 839236 Change-Id: I37ed111cf924b52f5998c1e6a2b6dd7d1965c813 Reviewed-on: https://chromium-review.googlesource.com/1042616 Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org> Reviewed-by:Nico Weber <thakis@chromium.org> Cr-Commit-Position: refs/heads/master@{#555961}
Showing
Please register or sign in to comment