-
Notifications
You must be signed in to change notification settings - Fork 15k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: cherry-pick 8a3bfd4b7403 from devtools-frontend
- Loading branch information
1 parent
b3defc1
commit 4c3bcd3
Showing
2 changed files
with
42 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cherry-pick-8a3bfd4b7403.patch |
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,41 @@ | ||
From 8a3bfd4b74038b16733245dde9a94c1a99522852 Mon Sep 17 00:00:00 2001 | ||
From: Andrey Kosyakov <caseq@chromium.org> | ||
Date: Tue, 09 Jan 2024 16:47:29 -0800 | ||
Subject: [PATCH] Add support of the Worklet target | ||
|
||
This is in preparation for the back-end to report regular renderer | ||
based worklets (such as CSS / Animation / Audio) as worklets rather | ||
than workers. A sepratate target type from workers is needed since | ||
unlike workers, these lack support for multiple domains, including | ||
Network and Target. | ||
|
||
Bug: 1517088 | ||
Change-Id: Id2919baaeec90c9259ace33e7249b5eccec031b7 | ||
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5183275 | ||
Reviewed-by: Danil Somsikov <dsv@chromium.org> | ||
Commit-Queue: Danil Somsikov <dsv@chromium.org> | ||
Auto-Submit: Andrey Kosyakov <caseq@chromium.org> | ||
--- | ||
|
||
diff --git a/front_end/core/sdk/Target.ts b/front_end/core/sdk/Target.ts | ||
index 736c567..7d2e42b 100644 | ||
--- a/front_end/core/sdk/Target.ts | ||
+++ b/front_end/core/sdk/Target.ts | ||
@@ -70,6 +70,9 @@ | ||
this.#capabilitiesMask = Capability.JS | Capability.Log | Capability.Network | Capability.Target | | ||
Capability.IO | Capability.Media | Capability.Emulation | Capability.EventBreakpoints; | ||
break; | ||
+ case Type.Worklet: | ||
+ this.#capabilitiesMask = Capability.JS | Capability.Log | Capability.EventBreakpoints; | ||
+ break; | ||
case Type.Node: | ||
this.#capabilitiesMask = Capability.JS; | ||
break; | ||
@@ -254,6 +257,7 @@ | ||
Node = 'node', | ||
Browser = 'browser', | ||
AuctionWorklet = 'auction-worklet', | ||
+ Worklet = 'worklet', | ||
Tab = 'tab', | ||
} | ||
|