diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/bindings/core/v8/worker_or_worklet_script_controller.h')
-rw-r--r-- | chromium/third_party/blink/renderer/bindings/core/v8/worker_or_worklet_script_controller.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/bindings/core/v8/worker_or_worklet_script_controller.h b/chromium/third_party/blink/renderer/bindings/core/v8/worker_or_worklet_script_controller.h index 354f96a80a7..9d405829580 100644 --- a/chromium/third_party/blink/renderer/bindings/core/v8/worker_or_worklet_script_controller.h +++ b/chromium/third_party/blink/renderer/bindings/core/v8/worker_or_worklet_script_controller.h @@ -69,7 +69,12 @@ class CORE_EXPORT WorkerOrWorkletScriptController final // Used by WorkerThread. Returns true if the context is successfully // initialized or already initialized. - bool InitializeContextIfNeeded(const String& human_readable_name); + // For WorkerGlobalScope and ThreadedWorkletGlobalScope, |url_for_debugger| is + // and should be used only for setting name/origin that appears in DevTools. + // For other global scopes, |human_readable_name| is used for setting + // DOMWrapperWorld's human readable name. + bool InitializeContextIfNeeded(const String& human_readable_name, + const KURL& url_for_debugger); // Used by WorkerGlobalScope: void RethrowExceptionFromImportedScript(ErrorEvent*, ExceptionState&); |