Update devtools.inspectedWindow.eval types to match the actual API
The ExtensionServer actually uses scriptExecutionContext from the
option.
[email protected]
Bug: 1275331
Change-Id: Id3bc0bee869488f16b07d6bb1e31bd71a51738a6
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3892289
Reviewed-by: Benedikt Meurer <[email protected]>
Reviewed-by: Andrey Kosyakov <[email protected]>
Owners-Override: Benedikt Meurer <[email protected]>
Commit-Queue: Benedikt Meurer <[email protected]>
diff --git a/AUTHORS b/AUTHORS
index ea7fc75..809104f 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -73,6 +73,7 @@
Yisi(一丝) <[email protected]>
Yoichiro Hibara <[email protected]>
Yoni Feigelson <[email protected]>
+Young Min Kim <[email protected]>
Yuan Zhuang <[email protected]>
# Please DO NOT APPEND here. See comments at the top of the file.
# END individuals section.
diff --git a/extension-api/ExtensionAPI.d.ts b/extension-api/ExtensionAPI.d.ts
index bad91d5..3f47d35 100644
--- a/extension-api/ExtensionAPI.d.ts
+++ b/extension-api/ExtensionAPI.d.ts
@@ -23,7 +23,7 @@
eval(
expression: string,
- options?: {contextSecurityOrigin?: string, frameURL?: string, useContentScriptContext?: boolean},
+ options?: {scriptExecutionContext?: string, frameURL?: string, useContentScriptContext?: boolean},
callback?: (result: unknown, exceptioninfo: {
code: string,
description: string,
diff --git a/front_end/models/extensions/ExtensionAPI.ts b/front_end/models/extensions/ExtensionAPI.ts
index e76237f..d6f7e96 100644
--- a/front_end/models/extensions/ExtensionAPI.ts
+++ b/front_end/models/extensions/ExtensionAPI.ts
@@ -1229,7 +1229,7 @@
eval: function(
expression: string,
- evaluateOptions: {contextSecurityOrigin?: string, frameURL?: string, useContentScriptContext?: boolean}):
+ evaluateOptions: {scriptExecutionContext?: string, frameURL?: string, useContentScriptContext?: boolean}):
Object |
null {
const callback = extractCallbackArgument(arguments);