Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp

Issue 2691903005: ServiceWorker: Change base URL for parsing script URL and scope URL (Closed)
Patch Set: Address comments on tests Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
index 2f3ed9fc2b99442aec45b92025575b18201427fa..3c36a25f4e660e60b29686c6d93fccaac5dae42e 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
@@ -770,18 +770,6 @@ ExecutionContext* currentExecutionContext(v8::Isolate* isolate) {
return toExecutionContext(isolate->GetCurrentContext());
}
-ExecutionContext* enteredExecutionContext(v8::Isolate* isolate) {
- ExecutionContext* context = toExecutionContext(isolate->GetEnteredContext());
- if (!context) {
- // We don't always have an entered execution context, for example during
- // microtask callbacks from V8 (where the entered context may be the
- // DOM-in-JS context). In that case, we fall back to the current context.
- context = currentExecutionContext(isolate);
- ASSERT(context);
- }
- return context;
-}
-
Frame* toFrameIfNotDetached(v8::Local<v8::Context> context) {
DOMWindow* window = toDOMWindow(context);
if (window && window->isCurrentlyDisplayedInFrame())

Powered by Google App Engine
This is Rietveld 408576698