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

Unified Diff: content/browser/frame_host/render_frame_proxy_host.cc

Issue 2494633004: Remove about:srcdoc url conversion. (Closed)
Patch Set: Addressed comments. Created 4 years, 1 month 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: content/browser/frame_host/render_frame_proxy_host.cc
diff --git a/content/browser/frame_host/render_frame_proxy_host.cc b/content/browser/frame_host/render_frame_proxy_host.cc
index b8ec5d390ec6a0fe9e84b550a2fa927d9bbb1903..136da8bd66f7a2249fc6e0747232206e36fb393c 100644
--- a/content/browser/frame_host/render_frame_proxy_host.cc
+++ b/content/browser/frame_host/render_frame_proxy_host.cc
@@ -21,6 +21,7 @@
#include "content/common/frame_messages.h"
#include "content/common/frame_owner_properties.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/common/url_constants.h"
nasko 2016/11/15 17:15:23 This won't be needed once the check below is remov
arthursonzogni 2016/11/17 17:04:58 Done.
#include "ipc/ipc_message.h"
namespace content {
@@ -246,7 +247,8 @@ void RenderFrameProxyHost::OnDetach() {
void RenderFrameProxyHost::OnOpenURL(
const FrameHostMsg_OpenURL_Params& params) {
GURL validated_url(params.url);
- GetProcess()->FilterURL(false, &validated_url);
+ if (validated_url != GURL(content::kAboutSrcDocURL))
nasko 2016/11/15 17:15:23 Remove this check too.
+ GetProcess()->FilterURL(false, &validated_url);
// Verify that we are in the same BrowsingInstance as the current
// RenderFrameHost.

Powered by Google App Engine
This is Rietveld 408576698