Skip to content

Commit

Permalink
Add comment pointing to RemoteContext doc.
Browse files Browse the repository at this point in the history
Add a comment that points to the RemoteContext README. Also removed
execute() line as it is already called in constructor.

Change-Id: Idac381041f4499c5fdb431ac4971ba1f2ad5ceb5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3975550
Commit-Queue: Hao Liu <haoliuk@chromium.org>
Reviewed-by: Annie Sullivan <sullivan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1063015}
  • Loading branch information
haoliuk authored and chromium-wpt-export-bot committed Oct 24, 2022
1 parent 28f7d6c commit b0abf2e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 9 additions & 1 deletion navigation-timing/prefetch-transfer-size-executor.html
Expand Up @@ -8,7 +8,15 @@
<script src="/common/utils.js"></script>
<script src="/common/dispatcher/dispatcher.js"></script>
</head>

<!--
This test uses RemoteContext and Executor to execute JavaScript in another
page opened by this test page. This is because we need to simulate
navigating away from current page in this test. It will cause all Javascript
code on the test page to be lost if we do it in the test page. We can't do it
in an iframe because currently the prefetch behaves differently in an iframe
in this particular test case. For detailed information about RemoteContext and
Executor, see /common/dispatcher/README.md.
-->
<body>
<script>
const addLink = (url) => {
Expand Down
1 change: 0 additions & 1 deletion navigation-timing/resources/blank_page_prefetch.html
Expand Up @@ -20,7 +20,6 @@
const params = new URLSearchParams(window.location.search);
const uuid = params.get("uuid");
const executor = new Executor(uuid);
executor.execute();
</script>

</body>
Expand Down

0 comments on commit b0abf2e

Please sign in to comment.