Index: third_party/WebKit/Source/modules/webshare/NavigatorShare.cpp |
diff --git a/third_party/WebKit/Source/modules/webshare/NavigatorShare.cpp b/third_party/WebKit/Source/modules/webshare/NavigatorShare.cpp |
index fdc669c2ab98df6b9e01cab11e6f541d129d302b..9004c723161b167cd11df69f7b0d89d12728d651 100644 |
--- a/third_party/WebKit/Source/modules/webshare/NavigatorShare.cpp |
+++ b/third_party/WebKit/Source/modules/webshare/NavigatorShare.cpp |
@@ -127,6 +127,11 @@ ScriptPromise NavigatorShare::share(ScriptState* scriptState, |
} |
void NavigatorShare::onConnectionError() { |
+ if (!Platform::current()) { |
+ // TODO(rockot): Clean this up once renderer shutdown sequence is fixed. |
+ return; |
+ } |
+ |
for (auto& client : m_clients) { |
client->onConnectionError(); |
} |