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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h

Issue 2557793004: Revert of Remove ContextLifecycleObserver from ScriptPromisePropertyBase (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h
index 02eaf3a096263ceef6c7bcd0af01a7f9e57ac647..00558812de31ef5da45d8b177a33940a45701da5 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h
@@ -102,7 +102,7 @@
ASSERT_NOT_REACHED();
return;
}
- if (getExecutionContext()->isContextDestroyed())
+ if (!getExecutionContext() || getExecutionContext()->isContextDestroyed())
return;
m_resolved = value;
resolveOrReject(Resolved);
@@ -116,7 +116,7 @@
ASSERT_NOT_REACHED();
return;
}
- if (getExecutionContext()->isContextDestroyed())
+ if (!getExecutionContext() || getExecutionContext()->isContextDestroyed())
return;
m_rejected = value;
resolveOrReject(Rejected);
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698