Commit a54dadc0 authored by Moe Ahmadi's avatar Moe Ahmadi Committed by Commit Bot

[IOS][UKM] Fixes chrome://ukm on iOS

Fixes the page by adding the iOS WebUI messaging script to the html.

Also modifies the JavaScript to update page content after HTML has been
completely loaded, for more robustness.

Bug: 883408
Change-Id: I43d1be5077af6d42e357bfb3a5bbcb28eb5c0d60
Reviewed-on: https://chromium-review.googlesource.com/1225300Reviewed-by: default avatarRobert Kaplow <rkaplow@chromium.org>
Commit-Queue: Moe Ahmadi <mahmadi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#591126}
parent 60bb0d36
......@@ -7,6 +7,10 @@
<script src="chrome://resources/js/cr.js"></script>
<script src="chrome://resources/js/promise_resolver.js"></script>
<script src="chrome://resources/js/util.js"></script>
<if expr="is_ios">
<!-- TODO(crbug.com/487000): Remove this once injected by web. -->
<script src="chrome://resources/js/ios/web_ui.js"></script>
</if>
<title>UKM Debug page</title>
<h1>UKM Debug page</h1>
<div>
......
......@@ -75,4 +75,4 @@ function updateUkmData() {
});
}
updateUkmData();
document.addEventListener('DOMContentLoaded', updateUkmData);
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