From 932429de8b66cad9d2598b8d89e0144bd115b51a Mon Sep 17 00:00:00 2001 From: Young Min Kim <y@ylem.kim> Date: Mon, 12 Sep 2022 21:07:04 +0000 Subject: [PATCH] Update devtools.inspectedWindow.eval schema to match the actual API The ExtensionServer actually uses scriptExecutionContext from the option. R=caseq@chromium.org Bug: 1275331 Change-Id: Ie500af85e85f321a75ce22f615c28c02068439ef Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3891512 Reviewed-by: Andrey Kosyakov <caseq@chromium.org> Commit-Queue: Andrey Kosyakov <caseq@chromium.org> Cr-Commit-Position: refs/heads/main@{#1046012} --- AUTHORS | 1 + chrome/common/extensions/api/devtools/inspected_window.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index 7838e45d854a5..aa996b592e72b 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1325,6 +1325,7 @@ Yongseok Choi <yongseok.choi@navercorp.com> Yongsheng Zhu <yongsheng.zhu@intel.com> Yoonjae Cho <yoonjae.cho92@gmail.com> Yoshinori Sano <yoshinori.sano@gmail.com> +Young Min Kim <y@ylem.kim> Youngho Seo <hazivoo@gmail.com> Youngjin Choi <cyjin9.yc@gmail.com> YoungKi Hong <simon.hong81@gmail.com> diff --git a/chrome/common/extensions/api/devtools/inspected_window.json b/chrome/common/extensions/api/devtools/inspected_window.json index d30ea92f15ee1..98d2f1562bff0 100644 --- a/chrome/common/extensions/api/devtools/inspected_window.json +++ b/chrome/common/extensions/api/devtools/inspected_window.json @@ -111,10 +111,10 @@ "optional": true, "description": "Evaluate the expression in the context of the content script of the calling extension, provided that the content script is already injected into the inspected page. If not, the expression is not evaluated and the callback is invoked with the exception parameter set to an object that has the <code>isError</code> field set to true and the <code>code</code> field set to <code>E_NOTFOUND</code>." }, - "contextSecurityOrigin": { + "scriptExecutionContext": { "type": "string", "optional": true, - "description": "Evaluate the expression in the context of a content script of an extension that matches the specified origin. If given, contextSecurityOrigin overrides the 'true' setting on userContentScriptContext." + "description": "Evaluate the expression in the context of a content script of an extension that matches the specified origin. If given, scriptExecutionContext overrides the 'true' setting on useContentScriptContext." } } },