-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[m103] DevTools: omit loaderId in Page.navigate response when navigat…
…ing same document ... because that's how the client is supposed to tell same-document navigation. Reporting loaderId also doesn't make sense in this case because actual renderer side loader id is going to be different (i.e. remain from the actual navigation that caused the document to be loaded). This was originally regressed by https://crrev.com/c/3640544 (cherry picked from commit 76d3945) Bug: 1325782, 1324138 Change-Id: I4c528a55991b236394c68735b3c6319e350d1559 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3649348 Reviewed-by: Alex Rudenko <alexrudenko@chromium.org> Commit-Queue: Andrey Kosyakov <caseq@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1003895} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3653099 Commit-Queue: Prudhvikumar Bommana <pbommana@google.com> Reviewed-by: Peter Kvitek <kvitekp@chromium.org> Cr-Commit-Position: refs/branch-heads/5060@{#86} Cr-Branched-From: b83393d-refs/heads/main@{#1002911}
- Loading branch information
Showing
4 changed files
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
third_party/blink/web_tests/http/tests/inspector-protocol/page/navigate-same-document.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
(async function(testRunner) { | ||
const {dp} = await testRunner.startBlank( | ||
`Tests that Page.navigate within same document does not report loaderId`); | ||
|
||
await dp.Page.enable(); | ||
const result = (await dp.Page.navigate({url: testRunner.url('../resources/inspector-protocol-page.html#foo')})).result; | ||
// Assure the above is same-document navigation. | ||
await dp.Page.onceNavigatedWithinDocument(); | ||
testRunner.log(`loaderId (undefined expected): ${result.loaderId}`); | ||
testRunner.completeTest(); | ||
}); |
3 changes: 3 additions & 0 deletions
3
...s/platform/generic/http/tests/inspector-protocol/page/navigate-same-document-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Tests that Page.navigate within same document does not report loaderId | ||
loaderId (undefined expected): undefined | ||
|