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

Unified Diff: third_party/WebKit/Source/core/frame/DOMWindow.cpp

Issue 1550723003: Adapt MixedContentChecker for remote frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: alexmos comments Created 4 years, 11 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/core/frame/DOMWindow.cpp
diff --git a/third_party/WebKit/Source/core/frame/DOMWindow.cpp b/third_party/WebKit/Source/core/frame/DOMWindow.cpp
index 2a86da71d221ddebc047a2fb71340e0eb8a77c9a..00b43dee4db374959ba07d39e99d523a57a5589b 100644
--- a/third_party/WebKit/Source/core/frame/DOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/DOMWindow.cpp
@@ -203,8 +203,6 @@ void DOMWindow::postMessage(PassRefPtr<SerializedScriptValue> message, const Mes
String sourceOrigin = sourceDocument->securityOrigin()->toString();
String sourceSuborigin = sourceDocument->securityOrigin()->suboriginName();
- // FIXME: MixedContentChecker needs to be refactored for OOPIF. For now,
- // create the url using replicated origins for remote frames.
KURL targetUrl = isLocalDOMWindow() ? document()->url() : KURL(KURL(), frame()->securityContext()->securityOrigin()->toString());
if (MixedContentChecker::isMixedContent(sourceDocument->securityOrigin(), targetUrl))
UseCounter::count(frame(), UseCounter::PostMessageFromSecureToInsecure);

Powered by Google App Engine
This is Rietveld 408576698