-
Notifications
You must be signed in to change notification settings - Fork 788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: update devtools patches #6959
Closed
Closed
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
fb86708
chore: update devtools patches
andyjessop 0cc9ee3
error error
andyjessop 98c5525
remove erroring changes
andyjessop 18309ba
delete .gcs_entries
andyjessop 161f06d
add .g* files to gitignore
andyjessop 196903b
add to prettierignore
andyjessop 4ea0243
switch back to static instantiation
andyjessop b3c82ab
remove missing flag
andyjessop 7841745
update patches
andyjessop File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 95b2dc1f6cf0f02c3c52da17c0cec1f6fdbf6035 Mon Sep 17 00:00:00 2001 | ||
From c70d702b20aefb940d7108b348265123403ef7d0 Mon Sep 17 00:00:00 2001 | ||
From: Workers DevProd <workers-devprod@cloudflare.com> | ||
Date: Mon, 2 Oct 2023 18:22:08 +0100 | ||
Subject: [PATCH 03/15] Support previewing subrequest responses | ||
Subject: [PATCH 03/14] Support previewing subrequest responses | ||
|
||
--- | ||
front_end/core/sdk/NetworkManager.ts | 7 ++++++- | ||
|
@@ -10,10 +10,10 @@ Subject: [PATCH 03/15] Support previewing subrequest responses | |
3 files changed, 8 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/front_end/core/sdk/NetworkManager.ts b/front_end/core/sdk/NetworkManager.ts | ||
index c8aa624961..6201d73bba 100644 | ||
index e9d60c5b49..734a39f9bc 100644 | ||
--- a/front_end/core/sdk/NetworkManager.ts | ||
+++ b/front_end/core/sdk/NetworkManager.ts | ||
@@ -705,7 +705,7 @@ export class NetworkDispatcher implements ProtocolProxyApi.NetworkDispatcher { | ||
@@ -794,7 +794,7 @@ export class NetworkDispatcher implements ProtocolProxyApi.NetworkDispatcher { | ||
this.updateNetworkRequest(networkRequest); | ||
} | ||
|
||
|
@@ -22,42 +22,42 @@ index c8aa624961..6201d73bba 100644 | |
let networkRequest: NetworkRequest|null|undefined = this.#requestsById.get(requestId); | ||
if (!networkRequest) { | ||
networkRequest = this.maybeAdoptMainResourceRequest(requestId); | ||
@@ -714,6 +714,11 @@ export class NetworkDispatcher implements ProtocolProxyApi.NetworkDispatcher { | ||
@@ -803,6 +803,11 @@ export class NetworkDispatcher implements ProtocolProxyApi.NetworkDispatcher { | ||
return; | ||
} | ||
this.getExtraInfoBuilder(requestId).finished(); | ||
+ if (cfResponse !== undefined) { | ||
+ networkRequest.setContentDataProvider(async () => { | ||
+ return { error: null, content: cfResponse.body, encoded: cfResponse.base64Encoded }; | ||
+ return { error: '', content: cfResponse.body, encoded: cfResponse.base64Encoded }; | ||
+ }); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why this change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a new type constraint in the frontend-devtools application. |
||
+ } | ||
this.finishNetworkRequest(networkRequest, finishTime, encodedDataLength); | ||
this.#manager.dispatchEventToListeners(Events.LoadingFinished, networkRequest); | ||
} | ||
diff --git a/front_end/entrypoints/js_app/BUILD.gn b/front_end/entrypoints/js_app/BUILD.gn | ||
index a917511e25..f811d117b1 100644 | ||
index c44a7a352b..2ee6e03a03 100644 | ||
--- a/front_end/entrypoints/js_app/BUILD.gn | ||
+++ b/front_end/entrypoints/js_app/BUILD.gn | ||
@@ -15,6 +15,7 @@ devtools_entrypoint("entrypoint") { | ||
"../../generated:protocol", | ||
"../../panels/js_profiler:meta", | ||
"../../panels/js_timeline:meta", | ||
"../../panels/mobile_throttling:meta", | ||
+ "../../panels/network:meta", | ||
"../../ui/legacy/components/utils:bundle", | ||
"../main:bundle", | ||
"../shell", | ||
diff --git a/front_end/entrypoints/js_app/js_app.ts b/front_end/entrypoints/js_app/js_app.ts | ||
index 213ca7fecd..ef5c568e96 100644 | ||
index 39a4b237b7..64fa67a316 100644 | ||
--- a/front_end/entrypoints/js_app/js_app.ts | ||
+++ b/front_end/entrypoints/js_app/js_app.ts | ||
@@ -2,6 +2,7 @@ | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
@@ -4,6 +4,7 @@ | ||
|
||
import '../shell/shell.js'; | ||
import '../../panels/js_timeline/js_timeline-meta.js'; | ||
+import '../../panels/network/network-meta.js'; | ||
import '../../panels/mobile_throttling/mobile_throttling-meta.js'; | ||
import '../../panels/js_profiler/js_profiler-meta.js'; | ||
|
||
import * as Common from '../../core/common/common.js'; | ||
-- | ||
2.39.3 (Apple Git-145) | ||
2.39.5 (Apple Git-154) | ||
|
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need a
new
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, good spot 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, apparently not. It uses the static method to instantiate.