Commit ef1be886 authored by Hiroshige Hayashizaki's avatar Hiroshige Hayashizaki Committed by Commit Bot

Use ClassicScript in LocalFrameClientImpl

This CL doesn't change the behavior.

Bug: 1111134
Change-Id: Ia2d55b24d2b9fd458d01ae2a44471f6a0eebe340
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2331380
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: default avatarDominic Farolino <dom@chromium.org>
Cr-Commit-Position: refs/heads/master@{#794552}
parent 8d53a3a6
......@@ -59,7 +59,6 @@
#include "third_party/blink/public/web/web_plugin.h"
#include "third_party/blink/public/web/web_plugin_params.h"
#include "third_party/blink/public/web/web_view_client.h"
#include "third_party/blink/renderer/bindings/core/v8/script_controller.h"
#include "third_party/blink/renderer/core/core_initializer.h"
#include "third_party/blink/renderer/core/events/current_input_event.h"
#include "third_party/blink/renderer/core/events/message_event.h"
......@@ -92,6 +91,7 @@
#include "third_party/blink/renderer/core/page/page.h"
#include "third_party/blink/renderer/core/page/plugin_data.h"
#include "third_party/blink/renderer/core/probe/core_probes.h"
#include "third_party/blink/renderer/core/script/classic_script.h"
#include "third_party/blink/renderer/platform/exported/wrapped_resource_request.h"
#include "third_party/blink/renderer/platform/exported/wrapped_resource_response.h"
#include "third_party/blink/renderer/platform/instrumentation/histogram.h"
......@@ -367,9 +367,10 @@ function createShadowRootWithin(node) {
}
createShadowRootWithin(document.body);
)";
web_frame_->GetFrame()->GetScriptController().ExecuteScriptInMainWorld(
script, ScriptSourceLocationType::kInternal,
ScriptController::kExecuteScriptWhenScriptsDisabled);
ClassicScript::CreateUnspecifiedScript(
ScriptSourceCode(script, ScriptSourceLocationType::kInternal))
->RunScript(web_frame_->GetFrame(),
ScriptController::kExecuteScriptWhenScriptsDisabled);
}
if (web_frame_->Client()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment