Commit 9741ff8e authored by dpapad's avatar dpapad Committed by Commit Bot

MD Extensions: Specify <base href=...> in final bundled HTML file.

With this change, the user is correctly forwarded to chrome://extensions, if an
invalid URL is entered, for example chrome://extensions/foo/bar.html.

Bug: 828174
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I18598c6b3367bcb972efda64bf56cdd1496f2ed7
Reviewed-on: https://chromium-review.googlesource.com/991083Reviewed-by: default avatarHector Carmona <hcarmona@chromium.org>
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547587}
parent cce37ea2
...@@ -9,6 +9,7 @@ optimize_webui("build") { ...@@ -9,6 +9,7 @@ optimize_webui("build") {
host = "extensions" host = "extensions"
html_in_files = [ "extensions.html" ] html_in_files = [ "extensions.html" ]
html_out_files = [ "vulcanized.html" ] html_out_files = [ "vulcanized.html" ]
insert_in_head = "<base href=\"chrome://extensions\">"
input = rebase_path("$target_gen_dir/$unpak_folder", root_build_dir) input = rebase_path("$target_gen_dir/$unpak_folder", root_build_dir)
js_out_files = [ "crisper.js" ] js_out_files = [ "crisper.js" ]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment