commit | 13d9122c6083b2fd3802492f3f51e4b92fc9cfc3 | [log] [tgz] |
---|---|---|
author | Asami Doi <asamidoi@chromium.org> | Tue Jun 22 08:32:14 2021 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jun 22 08:32:14 2021 |
tree | ef1394ed2c189cd06d5f76e7e51515925bd85314 | |
parent | fb00e555a356da38d3c5c9683b462b592780aae3 [diff] |
ServiceWorker: add a test case for a top-level WindowClient This CL adds a test case to windowclient-navigate.https.html to check if navigate() succeeds on the top-level window. The existing test cases only check navigate() on an iframe. The test case added is: ``` navigateTest({ description: 'navigate on a top-level window client', destUrl: 'blank.html?navigate', srcUrl: 'resources/loaded.html', scope: 'resources/loaded.html', expected: normalizeURL(SCOPE) + '?navigate', frameType: 'top-level' }); ``` Also this CL refactors and modernizes the test. Bug: N/A Change-Id: I19833ec5ccf276dca509695bd4225cd6bc5bdc74 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2967492 Reviewed-by: Hiroki Nakagawa <nhiroki@chromium.org> Commit-Queue: Asami Doi <asamidoi@chromium.org> Cr-Commit-Position: refs/heads/master@{#894573}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.