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

Unified Diff: Source/modules/beacon/NavigatorBeacon.cpp

Issue 517043003: Move Frame to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Back out non-Oilpan experiment + tidy up by adding frame() ref accessors Created 6 years, 3 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: Source/modules/beacon/NavigatorBeacon.cpp
diff --git a/Source/modules/beacon/NavigatorBeacon.cpp b/Source/modules/beacon/NavigatorBeacon.cpp
index e02d84f79347f86348726114c3bd9864fd9fd407..48d31878acc0680b4334e363eadedfdb2cdeb666 100644
--- a/Source/modules/beacon/NavigatorBeacon.cpp
+++ b/Source/modules/beacon/NavigatorBeacon.cpp
@@ -59,7 +59,7 @@ bool NavigatorBeacon::canSendBeacon(ExecutionContext* context, const KURL& url,
}
// Do not allow sending Beacons over a Navigator that is detached.
- if (!m_navigator.frame())
+ if (!m_navigator.frame() || !m_navigator.frame()->client())
return false;
return true;

Powered by Google App Engine
This is Rietveld 408576698