From e8eb07a41e0c5b812f1dcee8bf49aeb7f405abc8 Mon Sep 17 00:00:00 2001 From: Simon Hong Date: Mon, 11 Jun 2018 16:05:50 +0900 Subject: [PATCH] Fix first run startup crash due to welcome ui This seems the regression from https://github.com/brave/brave-core/pull/130. In that CL, BraveWelcomeUI WebUIController is introduced. Because of this, current welcome ui page treated as webui. This CL could be reverted when our local welcome ui is implemented. --- ...-browser-api-web_request-web_request_permissions.cc.patch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/patches/extensions-browser-api-web_request-web_request_permissions.cc.patch b/patches/extensions-browser-api-web_request-web_request_permissions.cc.patch index bb28339fb36b..90a5ec647aea 100644 --- a/patches/extensions-browser-api-web_request-web_request_permissions.cc.patch +++ b/patches/extensions-browser-api-web_request-web_request_permissions.cc.patch @@ -1,14 +1,15 @@ diff --git a/extensions/browser/api/web_request/web_request_permissions.cc b/extensions/browser/api/web_request/web_request_permissions.cc -index 426bdc336021722db43af2c984ae5675a878f7fd..f15ed0c6e9c9051dadd841ee12ed4959cabce009 100644 +index 426bdc336021722db43af2c984ae5675a878f7fd..4315e66ff33d4aecb6610ed2125aed70e66449b2 100644 --- a/extensions/browser/api/web_request/web_request_permissions.cc +++ b/extensions/browser/api/web_request/web_request_permissions.cc -@@ -87,6 +87,10 @@ bool IsWebUIAllowedToMakeNetworkRequests(const url::Origin& origin) { +@@ -87,6 +87,11 @@ bool IsWebUIAllowedToMakeNetworkRequests(const url::Origin& origin) { return // https://crbug.com/829414 origin.host() == "print" || +#if defined(BRAVE_CHROMIUM_BUILD) + // https://github.com/brave/brave-browser/issues/273 + origin.host() == "newtab" || ++ origin.host() == "brave.com" || +#endif // https://crbug.com/831812 origin.host() == "sync-confirmation" ||