update chromium and v8 patches
This commit is contained in:
parent
aefb8911ec
commit
ef12492d6c
78 changed files with 2816 additions and 7025 deletions
|
@ -314,12 +314,6 @@ patches:
|
||||||
file: scroll_bounce_flag.patch
|
file: scroll_bounce_flag.patch
|
||||||
description: |
|
description: |
|
||||||
Patch to make scrollBounce option work.
|
Patch to make scrollBounce option work.
|
||||||
-
|
|
||||||
author: Birunthan Mohanathas <birunthan@mohanathas.com>
|
|
||||||
file: backport_d65792a.patch
|
|
||||||
description: |
|
|
||||||
https://chromium-review.googlesource.com/c/chromium/src/+/1105698
|
|
||||||
Fixes https://github.com/electron/electron/issues/13256
|
|
||||||
-
|
-
|
||||||
author: Cheng Zhao <zcbenz@gmail.com>
|
author: Cheng Zhao <zcbenz@gmail.com>
|
||||||
file: webview_reattach.patch
|
file: webview_reattach.patch
|
||||||
|
@ -447,18 +441,10 @@ patches:
|
||||||
description: backport of crashpad f540abb506
|
description: backport of crashpad f540abb506
|
||||||
-
|
-
|
||||||
author: Jeremy Apthorp <jeremya@chromium.org>
|
author: Jeremy Apthorp <jeremya@chromium.org>
|
||||||
file: backport_cd7154e0bb5.patch
|
file: expose-net-observer-api.patch
|
||||||
description: Support macosx 10.14 SDK
|
|
||||||
-
|
|
||||||
author: Shelley Vohr <shelley.vohr@gmail.com>
|
|
||||||
file: fix_xcode_ten.patch
|
|
||||||
description: |
|
description: |
|
||||||
Backports 27f9cbd8, a commit which does the following -
|
Expose URLRequestContextGetter::{Add,Remove}Observer.
|
||||||
* Removes IDEBundleInjection.framework from egtests.
|
This patch should be removed once we switch to using the net service (cc @robo)
|
||||||
* Corrects the DTXcode generation function to handle leading '10'.
|
|
||||||
* Fixes a main_application_delegate SDK change
|
|
||||||
* Fixes a non-null SDK change in a net unittest.
|
|
||||||
This is needed for Electron to compile with XCode 10.0.
|
|
||||||
-
|
-
|
||||||
author: deepak1556 <hop2deep@gmail.com>
|
author: deepak1556 <hop2deep@gmail.com>
|
||||||
file: desktop_media_list.patch
|
file: desktop_media_list.patch
|
||||||
|
@ -467,22 +453,6 @@ patches:
|
||||||
desktop capture api.
|
desktop capture api.
|
||||||
* Backports https://chromium-review.googlesource.com/c/chromium/src/+/1199806
|
* Backports https://chromium-review.googlesource.com/c/chromium/src/+/1199806
|
||||||
that fixes crash with screen capturer, can be removed in 71.0.3539.0
|
that fixes crash with screen capturer, can be removed in 71.0.3539.0
|
||||||
-
|
|
||||||
author: Jeremy Apthorp <jeremya@chromium.org>
|
|
||||||
file: expose-net-observer-api.patch
|
|
||||||
description: |
|
|
||||||
Expose URLRequestContextGetter::{Add,Remove}Observer.
|
|
||||||
This patch should be removed once we switch to using the net service (cc @robo)
|
|
||||||
-
|
|
||||||
author: Aleksei Kuzmin <alkuzmin@microsoft.com>
|
|
||||||
file: backport_7167a9eac.patch
|
|
||||||
description: |
|
|
||||||
"viz: Remove the global ServerSharedBitmapManager."
|
|
||||||
https://chromium-review.googlesource.com/802574
|
|
||||||
Landed in 69.0.3447.0.
|
|
||||||
See https://github.com/electron/electron/issues/14327
|
|
||||||
(Android specific changes and changes in some test files
|
|
||||||
have been removed from the diff.)
|
|
||||||
-
|
-
|
||||||
author: deepak1556 <hop2deep@gmail.com>
|
author: deepak1556 <hop2deep@gmail.com>
|
||||||
file: proxy_config_monitor.patch
|
file: proxy_config_monitor.patch
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
|
From 61cd6b5bc2068a3740313d7f4680ef3fcaaacb1a Mon Sep 17 00:00:00 2001
|
||||||
|
From: Cheng Zhao <zcbenz@gmail.com>
|
||||||
|
Date: Thu, 4 Oct 2018 14:57:02 -0700
|
||||||
|
Subject: accelerator.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/ui/base/accelerators/accelerator.cc b/ui/base/accelerators/accelerator.cc
|
diff --git a/ui/base/accelerators/accelerator.cc b/ui/base/accelerators/accelerator.cc
|
||||||
index a6756c20f22c..53529588af27 100644
|
index 7e55ef366ac8..c3fb98b426cd 100644
|
||||||
--- a/ui/base/accelerators/accelerator.cc
|
--- a/ui/base/accelerators/accelerator.cc
|
||||||
+++ b/ui/base/accelerators/accelerator.cc
|
+++ b/ui/base/accelerators/accelerator.cc
|
||||||
@@ -11,6 +11,7 @@
|
@@ -11,6 +11,7 @@
|
||||||
|
@ -20,7 +26,7 @@ index a6756c20f22c..53529588af27 100644
|
||||||
|
|
||||||
namespace ui {
|
namespace ui {
|
||||||
|
|
||||||
@@ -145,7 +144,15 @@ base::string16 Accelerator::GetShortcutText() const {
|
@@ -139,7 +138,15 @@ base::string16 Accelerator::GetShortcutText() const {
|
||||||
shortcut = KeyCodeToName(key_code_);
|
shortcut = KeyCodeToName(key_code_);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -36,7 +42,7 @@ index a6756c20f22c..53529588af27 100644
|
||||||
#if defined(OS_WIN)
|
#if defined(OS_WIN)
|
||||||
// Our fallback is to try translate the key code to a regular character
|
// Our fallback is to try translate the key code to a regular character
|
||||||
// unless it is one of digits (VK_0 to VK_9). Some keyboard
|
// unless it is one of digits (VK_0 to VK_9). Some keyboard
|
||||||
@@ -154,17 +161,20 @@ base::string16 Accelerator::GetShortcutText() const {
|
@@ -148,17 +155,20 @@ base::string16 Accelerator::GetShortcutText() const {
|
||||||
// accent' for '0'). For display in the menu (e.g. Ctrl-0 for the
|
// accent' for '0'). For display in the menu (e.g. Ctrl-0 for the
|
||||||
// default zoom level), we leave VK_[0-9] alone without translation.
|
// default zoom level), we leave VK_[0-9] alone without translation.
|
||||||
wchar_t key;
|
wchar_t key;
|
||||||
|
@ -67,15 +73,7 @@ index a6756c20f22c..53529588af27 100644
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -221,15 +231,15 @@ base::string16 Accelerator::GetShortcutText() const {
|
@@ -223,7 +233,7 @@ base::string16 Accelerator::ApplyLongFormModifiers(
|
||||||
|
|
||||||
base::string16 Accelerator::ApplyLongFormModifiers(
|
|
||||||
base::string16 shortcut) const {
|
|
||||||
if (IsShiftDown())
|
|
||||||
shortcut = l10n_util::GetStringFUTF16(IDS_APP_SHIFT_MODIFIER, shortcut);
|
|
||||||
|
|
||||||
// Note that we use 'else-if' in order to avoid using Ctrl+Alt as a shortcut.
|
|
||||||
// See http://blogs.msdn.com/oldnewthing/archive/2004/03/29/101121.aspx for
|
|
||||||
// more information.
|
// more information.
|
||||||
if (IsCtrlDown())
|
if (IsCtrlDown())
|
||||||
shortcut = l10n_util::GetStringFUTF16(IDS_APP_CONTROL_MODIFIER, shortcut);
|
shortcut = l10n_util::GetStringFUTF16(IDS_APP_CONTROL_MODIFIER, shortcut);
|
||||||
|
@ -84,7 +82,7 @@ index a6756c20f22c..53529588af27 100644
|
||||||
shortcut = l10n_util::GetStringFUTF16(IDS_APP_ALT_MODIFIER, shortcut);
|
shortcut = l10n_util::GetStringFUTF16(IDS_APP_ALT_MODIFIER, shortcut);
|
||||||
|
|
||||||
if (IsCmdDown()) {
|
if (IsCmdDown()) {
|
||||||
@@ -249,14 +256,12 @@ base::string16 Accelerator::ApplyShortFormModifiers(
|
@@ -243,14 +253,12 @@ base::string16 Accelerator::ApplyShortFormModifiers(
|
||||||
base::string16 shortcut) const {
|
base::string16 shortcut) const {
|
||||||
const base::char16 kCommandSymbol[] = {0x2318, 0};
|
const base::char16 kCommandSymbol[] = {0x2318, 0};
|
||||||
const base::char16 kCtrlSymbol[] = {0x2303, 0};
|
const base::char16 kCtrlSymbol[] = {0x2303, 0};
|
||||||
|
@ -99,3 +97,6 @@ index a6756c20f22c..53529588af27 100644
|
||||||
parts.push_back(base::string16(IsCmdDown() ? kCommandSymbol : kNoSymbol));
|
parts.push_back(base::string16(IsCmdDown() ? kCommandSymbol : kNoSymbol));
|
||||||
parts.push_back(shortcut);
|
parts.push_back(shortcut);
|
||||||
return base::StrCat(parts);
|
return base::StrCat(parts);
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,22 @@
|
||||||
|
From e686584a3758c1954f31e107746b40c6a63ad776 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Aleksei Kuzmin <alkuzmin@microsoft.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:47:36 -0700
|
||||||
|
Subject: add_atomic_lib_to_dependencies_even_for_sysroot_builds.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/base/BUILD.gn b/base/BUILD.gn
|
diff --git a/base/BUILD.gn b/base/BUILD.gn
|
||||||
index 943412faefd7..c505df950b2b 100644
|
index 7fb93868d6e0..53c5744953da 100644
|
||||||
--- a/base/BUILD.gn
|
--- a/base/BUILD.gn
|
||||||
+++ b/base/BUILD.gn
|
+++ b/base/BUILD.gn
|
||||||
@@ -1217,7 +1217,7 @@ jumbo_component("base") {
|
@@ -1248,7 +1248,7 @@ jumbo_component("base") {
|
||||||
# Needed for <atomic> if using newer C++ library than sysroot, except if
|
# Needed for <atomic> if using newer C++ library than sysroot, except if
|
||||||
# building inside the cros_sdk environment - use host_toolchain as a
|
# building inside the cros_sdk environment - use host_toolchain as a
|
||||||
# more robust check for this.
|
# more robust check for this.
|
||||||
- if (!use_sysroot && (is_android || (is_linux && !is_chromecast)) &&
|
- if (!use_sysroot && (is_android || (is_linux && !is_chromecast)) &&
|
||||||
+ if ((is_android || (is_linux && !is_chromecast)) &&
|
+ if ((is_android || (is_linux && !is_chromecast)) &&
|
||||||
host_toolchain != "//build/toolchain/cros:host") {
|
host_toolchain != "//build/toolchain/cros:host") {
|
||||||
libs = [ "atomic" ]
|
libs += [ "atomic" ]
|
||||||
}
|
}
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,16 @@
|
||||||
|
From 0e2864c50cb039dd2f8d9b9cc88ae26f5bd62581 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Shelley Vohr <shelley.vohr@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:44:26 -0700
|
||||||
|
Subject: add_realloc.patch
|
||||||
|
|
||||||
|
Blink overrides ArrayBuffer's allocator with its own one, while Node simply
|
||||||
|
uses malloc and free, so we need to use v8's allocator in Node. As part of the
|
||||||
|
10.6.0 upgrade, we needed to make SerializerDelegate accept an allocator
|
||||||
|
argument in its constructor, and override ReallocateBufferMemory and
|
||||||
|
FreeBufferMemory to use the allocator. We cannot simply allocate and then memcpy
|
||||||
|
when we override ReallocateBufferMemory, so we therefore need to implement
|
||||||
|
Realloc on the v8 side and correspondingly in gin.
|
||||||
|
|
||||||
diff --git a/gin/array_buffer.cc b/gin/array_buffer.cc
|
diff --git a/gin/array_buffer.cc b/gin/array_buffer.cc
|
||||||
index f84934bfd712..fc23fef68b6f 100644
|
index f84934bfd712..fc23fef68b6f 100644
|
||||||
--- a/gin/array_buffer.cc
|
--- a/gin/array_buffer.cc
|
||||||
|
@ -26,10 +39,10 @@ index 2aef366ac819..3c7d66c81032 100644
|
||||||
|
|
||||||
GIN_EXPORT static ArrayBufferAllocator* SharedInstance();
|
GIN_EXPORT static ArrayBufferAllocator* SharedInstance();
|
||||||
diff --git a/third_party/blink/renderer/bindings/core/v8/v8_initializer.cc b/third_party/blink/renderer/bindings/core/v8/v8_initializer.cc
|
diff --git a/third_party/blink/renderer/bindings/core/v8/v8_initializer.cc b/third_party/blink/renderer/bindings/core/v8/v8_initializer.cc
|
||||||
index c8c822632a69..d12976b3cd01 100644
|
index 83a6639306a9..8511e7d594ce 100644
|
||||||
--- a/third_party/blink/renderer/bindings/core/v8/v8_initializer.cc
|
--- a/third_party/blink/renderer/bindings/core/v8/v8_initializer.cc
|
||||||
+++ b/third_party/blink/renderer/bindings/core/v8/v8_initializer.cc
|
+++ b/third_party/blink/renderer/bindings/core/v8/v8_initializer.cc
|
||||||
@@ -619,6 +619,10 @@ class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
|
@@ -665,6 +665,10 @@ class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
|
||||||
size, WTF::ArrayBufferContents::kDontInitialize);
|
size, WTF::ArrayBufferContents::kDontInitialize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,3 +81,6 @@ index 809229caa872..6248ad32d6b0 100644
|
||||||
static void FreeMemory(void*);
|
static void FreeMemory(void*);
|
||||||
static DataHandle CreateDataHandle(size_t, InitializationPolicy);
|
static DataHandle CreateDataHandle(size_t, InitializationPolicy);
|
||||||
static void Initialize(
|
static void Initialize(
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,24 @@
|
||||||
|
From 602c08e90102a25894a4d48d236258cae6b982c6 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Charles Kerr <charles@charleskerr.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:50:17 -0700
|
||||||
|
Subject: allow_nested_error_trackers.patch
|
||||||
|
|
||||||
|
Only one X11ErrorTracker should exist at a time, but upstream has a bug
|
||||||
|
where two can exist if running in headless mode --
|
||||||
|
ui::(anonymous namespace)::SupportsEWMH() [inner tracker is created]
|
||||||
|
ui::WmSupportsHint()
|
||||||
|
ui::IsX11WindowFullScreen()
|
||||||
|
ui::ScreensaverWindowFinder::IsScreensaverWindow()
|
||||||
|
ui::ScreensaverWindowFinder::ShouldStopIterating()
|
||||||
|
ui::EnumerateTopLevelWindows()
|
||||||
|
ui::ScreensaverWindowFinder::ScreensaverWindowExists() [outer tracker created]
|
||||||
|
ui::CheckIdleStateIsLocked()
|
||||||
|
ui::CalculateIdleState()
|
||||||
|
Removal of either tracker could have side-effects in some code paths,
|
||||||
|
so this is probably better handled upstream. This patch tries to do the
|
||||||
|
least harm in the interim by removing the check that prevents more than
|
||||||
|
one tracker from existing at a time.
|
||||||
|
|
||||||
diff --git a/ui/gfx/x/x11_error_tracker.cc b/ui/gfx/x/x11_error_tracker.cc
|
diff --git a/ui/gfx/x/x11_error_tracker.cc b/ui/gfx/x/x11_error_tracker.cc
|
||||||
index af031de356c5..2a5c18dc473a 100644
|
index af031de356c5..2a5c18dc473a 100644
|
||||||
--- a/ui/gfx/x/x11_error_tracker.cc
|
--- a/ui/gfx/x/x11_error_tracker.cc
|
||||||
|
@ -11,3 +32,6 @@ index af031de356c5..2a5c18dc473a 100644
|
||||||
g_handler = this;
|
g_handler = this;
|
||||||
XSync(GetXDisplay(), False);
|
XSync(GetXDisplay(), False);
|
||||||
old_handler_ = XSetErrorHandler(X11ErrorHandler);
|
old_handler_ = XSetErrorHandler(X11ErrorHandler);
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
|
From 3a68808c9e49e9a249ee9056015e30543747cd00 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Ales Pergl <alpergl@microsoft.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:44:49 -0700
|
||||||
|
Subject: allow_new_privs.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/base/process/launch.h b/base/process/launch.h
|
diff --git a/base/process/launch.h b/base/process/launch.h
|
||||||
index b4530b755a23..d6f02d9ab2e3 100644
|
index 7a2def2ef436..50afeaf5553a 100644
|
||||||
--- a/base/process/launch.h
|
--- a/base/process/launch.h
|
||||||
+++ b/base/process/launch.h
|
+++ b/base/process/launch.h
|
||||||
@@ -176,7 +176,7 @@ struct BASE_EXPORT LaunchOptions {
|
@@ -180,7 +180,7 @@ struct BASE_EXPORT LaunchOptions {
|
||||||
|
|
||||||
// By default, child processes will have the PR_SET_NO_NEW_PRIVS bit set. If
|
// By default, child processes will have the PR_SET_NO_NEW_PRIVS bit set. If
|
||||||
// true, then this bit will not be set in the new child process.
|
// true, then this bit will not be set in the new child process.
|
||||||
|
@ -11,3 +17,6 @@ index b4530b755a23..d6f02d9ab2e3 100644
|
||||||
|
|
||||||
// Sets parent process death signal to SIGKILL.
|
// Sets parent process death signal to SIGKILL.
|
||||||
bool kill_on_parent_death = false;
|
bool kill_on_parent_death = false;
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,15 @@
|
||||||
|
From 0556b9d98cbc0b786e0a47681bea1593b65660a7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Cheng Zhao <zcbenz@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:49:42 -0700
|
||||||
|
Subject: allow_webview_file_url.patch
|
||||||
|
|
||||||
|
Allow webview to load non-web URLs.
|
||||||
|
|
||||||
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
|
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
|
||||||
index 1c1fb59e02c8..86b87e294336 100644
|
index 061ad189c46d..d64ba4f20d49 100644
|
||||||
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
|
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
|
||||||
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
|
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
|
||||||
@@ -1597,6 +1597,8 @@ void ResourceDispatcherHostImpl::BeginNavigationRequest(
|
@@ -1488,6 +1488,8 @@ void ResourceDispatcherHostImpl::BeginNavigationRequest(
|
||||||
!policy->IsWebSafeScheme(info.common_params.url.scheme()) &&
|
!policy->IsWebSafeScheme(info.common_params.url.scheme()) &&
|
||||||
!is_external_protocol;
|
!is_external_protocol;
|
||||||
|
|
||||||
|
@ -11,3 +18,6 @@ index 1c1fb59e02c8..86b87e294336 100644
|
||||||
if (is_shutdown_ || non_web_url_in_guest) {
|
if (is_shutdown_ || non_web_url_in_guest) {
|
||||||
url_loader_client->OnComplete(
|
url_loader_client->OnComplete(
|
||||||
network::URLLoaderCompletionStatus(net::ERR_ABORTED));
|
network::URLLoaderCompletionStatus(net::ERR_ABORTED));
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
From acf81b764b448b2979792e5d3d97f248030b49bc Mon Sep 17 00:00:00 2001
|
||||||
|
From: Anonymous <anonymous@electronjs.org>
|
||||||
|
Date: Thu, 20 Sep 2018 17:44:52 -0700
|
||||||
|
Subject: app_indicator_icon_menu.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/chrome/browser/ui/libgtkui/app_indicator_icon_menu.cc b/chrome/browser/ui/libgtkui/app_indicator_icon_menu.cc
|
diff --git a/chrome/browser/ui/libgtkui/app_indicator_icon_menu.cc b/chrome/browser/ui/libgtkui/app_indicator_icon_menu.cc
|
||||||
index 40399a35f8d2..1d3a0da948dc 100644
|
index 40399a35f8d2..1d3a0da948dc 100644
|
||||||
--- a/chrome/browser/ui/libgtkui/app_indicator_icon_menu.cc
|
--- a/chrome/browser/ui/libgtkui/app_indicator_icon_menu.cc
|
||||||
|
@ -11,3 +17,6 @@ index 40399a35f8d2..1d3a0da948dc 100644
|
||||||
ExecuteCommand(model, id);
|
ExecuteCommand(model, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,100 +0,0 @@
|
||||||
From 0dc7f85f52b9a5668481dfa206e6e55d40357cc2 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Elly Fong-Jones <ellyjones@chromium.org>
|
|
||||||
Date: Wed, 6 Jun 2018 21:31:34 +0000
|
|
||||||
Subject: mac: support build with 10.14 SDK
|
|
||||||
|
|
||||||
Two changes are required:
|
|
||||||
|
|
||||||
1) Explicitly upcast the result of dispatch_get_global_queue() to a
|
|
||||||
dispatch_queue_t*, since it changed to return dispatch_queue_global_t*;
|
|
||||||
2) Add empty implementations of the new methods on ICCameraDeviceDelegate for
|
|
||||||
ImageCaptureDevice
|
|
||||||
|
|
||||||
TBR=maxmorin@chromium.org
|
|
||||||
|
|
||||||
Bug: 849689
|
|
||||||
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
|
|
||||||
Change-Id: I9448d1b07f8d4116ecdb0c75a7796472e51c6dd8
|
|
||||||
Reviewed-on: https://chromium-review.googlesource.com/1087169
|
|
||||||
Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
|
|
||||||
Reviewed-by: Robert Sesek <rsesek@chromium.org>
|
|
||||||
Reviewed-by: Tommy Li <tommycli@chromium.org>
|
|
||||||
Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org>
|
|
||||||
Cr-Commit-Position: refs/heads/master@{#565040}
|
|
||||||
|
|
||||||
diff --git a/components/storage_monitor/image_capture_device.mm b/components/storage_monitor/image_capture_device.mm
|
|
||||||
index af289bd66eb6..831cb65ac970 100644
|
|
||||||
--- a/components/storage_monitor/image_capture_device.mm
|
|
||||||
+++ b/components/storage_monitor/image_capture_device.mm
|
|
||||||
@@ -231,4 +231,38 @@ base::FilePath PathForCameraItem(ICCameraItem* item) {
|
|
||||||
name));
|
|
||||||
}
|
|
||||||
|
|
||||||
+// MacOS 10.14 SDK methods, not yet implemented (https://crbug.com/849689)
|
|
||||||
+- (void)cameraDevice:(ICCameraDevice*)camera
|
|
||||||
+ didRenameItems:(NSArray<ICCameraItem*>*)items {
|
|
||||||
+ NOTIMPLEMENTED();
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+- (void)cameraDevice:(ICCameraDevice*)camera didRemoveItem:(ICCameraItem*)item {
|
|
||||||
+ NOTIMPLEMENTED();
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+- (void)cameraDevice:(ICCameraDevice*)camera
|
|
||||||
+ didCompleteDeleteFilesWithError:(NSError*)error {
|
|
||||||
+ NOTIMPLEMENTED();
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+- (void)cameraDeviceDidChangeCapability:(ICCameraDevice*)camera {
|
|
||||||
+ NOTIMPLEMENTED();
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+- (void)cameraDevice:(ICCameraDevice*)camera
|
|
||||||
+ didReceiveThumbnailForItem:(ICCameraItem*)item {
|
|
||||||
+ NOTIMPLEMENTED();
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+- (void)cameraDevice:(ICCameraDevice*)camera
|
|
||||||
+ didReceiveMetadataForItem:(ICCameraItem*)item {
|
|
||||||
+ NOTIMPLEMENTED();
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+- (void)cameraDevice:(ICCameraDevice*)camera
|
|
||||||
+ didReceivePTPEvent:(NSData*)eventData {
|
|
||||||
+ NOTIMPLEMENTED();
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
@end // ImageCaptureDevice
|
|
||||||
diff --git a/media/audio/mac/coreaudio_dispatch_override.cc b/media/audio/mac/coreaudio_dispatch_override.cc
|
|
||||||
index 2ac812b0f3fc..34d1ad2a0fbe 100644
|
|
||||||
--- a/media/audio/mac/coreaudio_dispatch_override.cc
|
|
||||||
+++ b/media/audio/mac/coreaudio_dispatch_override.cc
|
|
||||||
@@ -22,6 +22,9 @@ struct dyld_interpose_tuple {
|
|
||||||
const void* replacement;
|
|
||||||
const void* replacee;
|
|
||||||
};
|
|
||||||
+
|
|
||||||
+using DispatchGetGlobalQueueFunc = dispatch_queue_t (*)(long id,
|
|
||||||
+ unsigned long flags);
|
|
||||||
} // namespace
|
|
||||||
|
|
||||||
// This method, and the tuple above, is defined in dyld_priv.h; see:
|
|
||||||
@@ -175,8 +178,13 @@ bool InitializeCoreAudioDispatchOverride() {
|
|
||||||
const auto* header = reinterpret_cast<const mach_header*>(info.dli_fbase);
|
|
||||||
g_pause_resume_queue =
|
|
||||||
dispatch_queue_create("org.chromium.CoreAudioPauseResumeQueue", nullptr);
|
|
||||||
- dyld_interpose_tuple interposition(&GetGlobalQueueOverride,
|
|
||||||
- &dispatch_get_global_queue);
|
|
||||||
+ // The reinterpret_cast<> is needed because in the macOS 10.14 SDK, the return
|
|
||||||
+ // type of dispatch_get_global_queue changed to return a subtype of
|
|
||||||
+ // dispatch_queue_t* instead of dispatch_queue_t* itself, and T(*)(...) isn't
|
|
||||||
+ // automatically converted to U(*)(...) even if U is a superclass of T.
|
|
||||||
+ dyld_interpose_tuple interposition(
|
|
||||||
+ &GetGlobalQueueOverride,
|
|
||||||
+ reinterpret_cast<DispatchGetGlobalQueueFunc>(&dispatch_get_global_queue));
|
|
||||||
dyld_dynamic_interpose(header, &interposition, 1);
|
|
||||||
g_dispatch_override_installed = true;
|
|
||||||
LogInitResult(RESULT_INITIALIZED);
|
|
||||||
--
|
|
||||||
2.17.0
|
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
|
|
||||||
index bf4b1d07f7fe..8435c60a0786 100644
|
|
||||||
--- a/ui/views/widget/widget.cc
|
|
||||||
+++ b/ui/views/widget/widget.cc
|
|
||||||
@@ -995,7 +995,8 @@ bool Widget::IsTranslucentWindowOpacitySupported() const {
|
|
||||||
|
|
||||||
void Widget::OnSizeConstraintsChanged() {
|
|
||||||
native_widget_->OnSizeConstraintsChanged();
|
|
||||||
- non_client_view_->SizeConstraintsChanged();
|
|
||||||
+ if (non_client_view_)
|
|
||||||
+ non_client_view_->SizeConstraintsChanged();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Widget::OnOwnerClosing() {}
|
|
|
@ -1,8 +1,14 @@
|
||||||
|
From 439ba549807dab957a49a3959dccded956fc1b6b Mon Sep 17 00:00:00 2001
|
||||||
|
From: deepak1556 <hop2deep@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:47:47 -0700
|
||||||
|
Subject: blink-worker-enable-csp-in-file-scheme.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/third_party/blink/renderer/core/workers/worker_classic_script_loader.cc b/third_party/blink/renderer/core/workers/worker_classic_script_loader.cc
|
diff --git a/third_party/blink/renderer/core/workers/worker_classic_script_loader.cc b/third_party/blink/renderer/core/workers/worker_classic_script_loader.cc
|
||||||
index 4b47f551f366..227c58a5629d 100644
|
index 6e803af108f3..94a72b37ae8e 100644
|
||||||
--- a/third_party/blink/renderer/core/workers/worker_classic_script_loader.cc
|
--- a/third_party/blink/renderer/core/workers/worker_classic_script_loader.cc
|
||||||
+++ b/third_party/blink/renderer/core/workers/worker_classic_script_loader.cc
|
+++ b/third_party/blink/renderer/core/workers/worker_classic_script_loader.cc
|
||||||
@@ -246,7 +246,6 @@ void WorkerClassicScriptLoader::ProcessContentSecurityPolicy(
|
@@ -244,7 +244,6 @@ void WorkerClassicScriptLoader::ProcessContentSecurityPolicy(
|
||||||
// document (which is implemented in WorkerMessagingProxy, and
|
// document (which is implemented in WorkerMessagingProxy, and
|
||||||
// m_contentSecurityPolicy should be left as nullptr to inherit the policy).
|
// m_contentSecurityPolicy should be left as nullptr to inherit the policy).
|
||||||
if (!response.Url().ProtocolIs("blob") &&
|
if (!response.Url().ProtocolIs("blob") &&
|
||||||
|
@ -10,3 +16,6 @@ index 4b47f551f366..227c58a5629d 100644
|
||||||
!response.Url().ProtocolIs("filesystem")) {
|
!response.Url().ProtocolIs("filesystem")) {
|
||||||
content_security_policy_ = ContentSecurityPolicy::Create();
|
content_security_policy_ = ContentSecurityPolicy::Create();
|
||||||
content_security_policy_->SetOverrideURLForSelf(response.Url());
|
content_security_policy_->SetOverrideURLForSelf(response.Url());
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
From 50f9d1164c07306d128d9860be5a4891310ef495 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Cheng Zhao <zcbenz@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:45:00 -0700
|
||||||
|
Subject: blink_file_path.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/third_party/blink/renderer/core/fileapi/file.h b/third_party/blink/renderer/core/fileapi/file.h
|
diff --git a/third_party/blink/renderer/core/fileapi/file.h b/third_party/blink/renderer/core/fileapi/file.h
|
||||||
index 39831f1902c6..fddb013aa122 100644
|
index 39831f1902c6..fddb013aa122 100644
|
||||||
--- a/third_party/blink/renderer/core/fileapi/file.h
|
--- a/third_party/blink/renderer/core/fileapi/file.h
|
||||||
|
@ -24,3 +30,6 @@ index a74beceda3e7..7196fd5f5f9e 100644
|
||||||
readonly attribute long long lastModified;
|
readonly attribute long long lastModified;
|
||||||
|
|
||||||
// Non-standard APIs
|
// Non-standard APIs
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
From 3ac191f7b549fb23471d357294a84836520d7373 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Cheng Zhao <zcbenz@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:48:19 -0700
|
||||||
|
Subject: blink_fix_prototype_assert.patch
|
||||||
|
|
||||||
|
A recent Chromium change has accidentally added assertion for the case when
|
||||||
|
a new window object may not have a prototype attached. In Electron it may
|
||||||
|
happen when preventDefault for a native new-window event.
|
||||||
|
https://chromium.googlesource.com/chromium/src/+/f47b361887a31cccf42a6e21a82bccf28372bdaa%5E%21
|
||||||
|
In the long term we should investigate why it happened, and take a more
|
||||||
|
formal fix. But for now I'm just make this assertion silently pass away.
|
||||||
|
|
||||||
diff --git a/third_party/blink/renderer/platform/bindings/v8_object_constructor.cc b/third_party/blink/renderer/platform/bindings/v8_object_constructor.cc
|
diff --git a/third_party/blink/renderer/platform/bindings/v8_object_constructor.cc b/third_party/blink/renderer/platform/bindings/v8_object_constructor.cc
|
||||||
index 87f2176ce897..ce3d9ce19bff 100644
|
index 87f2176ce897..ce3d9ce19bff 100644
|
||||||
--- a/third_party/blink/renderer/platform/bindings/v8_object_constructor.cc
|
--- a/third_party/blink/renderer/platform/bindings/v8_object_constructor.cc
|
||||||
|
@ -15,3 +27,6 @@ index 87f2176ce897..ce3d9ce19bff 100644
|
||||||
|
|
||||||
prototype_object = prototype_value.As<v8::Object>();
|
prototype_object = prototype_value.As<v8::Object>();
|
||||||
if (prototype_object->InternalFieldCount() ==
|
if (prototype_object->InternalFieldCount() ==
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,22 @@
|
||||||
|
From d3439444d4aa219c6d3ebacb241bff165a76cf22 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Samuel Attard <samuel.r.attard@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:50:24 -0700
|
||||||
|
Subject: blink_initialization_order.patch
|
||||||
|
|
||||||
|
Backport of https://chromium-review.googlesource.com/c/chromium/src/+/1030530
|
||||||
|
to fix the order of V8 and Blink initialization. Also fixes order
|
||||||
|
of DidCreateScriptContext notification with initialization of window globals
|
||||||
|
to fix electron/electron#13787. The backport landed in Chromium 67 but the
|
||||||
|
DidCreateScriptContext re-ordering needs to be upstreamed or kept indefinitely
|
||||||
|
|
||||||
diff --git a/third_party/blink/renderer/bindings/core/v8/local_window_proxy.cc b/third_party/blink/renderer/bindings/core/v8/local_window_proxy.cc
|
diff --git a/third_party/blink/renderer/bindings/core/v8/local_window_proxy.cc b/third_party/blink/renderer/bindings/core/v8/local_window_proxy.cc
|
||||||
index 5c00e3e935b2..43f882eb0883 100644
|
index cbd9f811d978..160e5bc7d57a 100644
|
||||||
--- a/third_party/blink/renderer/bindings/core/v8/local_window_proxy.cc
|
--- a/third_party/blink/renderer/bindings/core/v8/local_window_proxy.cc
|
||||||
+++ b/third_party/blink/renderer/bindings/core/v8/local_window_proxy.cc
|
+++ b/third_party/blink/renderer/bindings/core/v8/local_window_proxy.cc
|
||||||
@@ -171,11 +171,11 @@ void LocalWindowProxy::Initialize() {
|
@@ -177,11 +177,10 @@ void LocalWindowProxy::Initialize() {
|
||||||
GetFrame()->IsMainFrame());
|
GetFrame()->IsMainFrame());
|
||||||
MainThreadDebugger::Instance()->ContextCreated(script_state_.get(),
|
MainThreadDebugger::Instance()->ContextCreated(script_state_, GetFrame(),
|
||||||
GetFrame(), origin);
|
origin);
|
||||||
+
|
|
||||||
+ InstallConditionalFeatures();
|
+ InstallConditionalFeatures();
|
||||||
GetFrame()->Client()->DidCreateScriptContext(context, world_->GetWorldId());
|
GetFrame()->Client()->DidCreateScriptContext(context, world_->GetWorldId());
|
||||||
}
|
}
|
||||||
|
@ -16,3 +26,6 @@ index 5c00e3e935b2..43f882eb0883 100644
|
||||||
if (World().IsMainWorld()) {
|
if (World().IsMainWorld()) {
|
||||||
GetFrame()->Loader().DispatchDidClearWindowObjectInMainWorld();
|
GetFrame()->Loader().DispatchDidClearWindowObjectInMainWorld();
|
||||||
}
|
}
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,23 @@
|
||||||
|
From 791d604902bb958ca62522ce3a50aa496c3f713b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Cheng Zhao <zcbenz@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:45:03 -0700
|
||||||
|
Subject: blink_local_frame.patch
|
||||||
|
|
||||||
|
According to electron/electron#3699, it is unreliable to use |unload|
|
||||||
|
event for process.exit('exit'), so we have to do that in
|
||||||
|
willReleaseScriptContext.
|
||||||
|
|
||||||
|
However Chromium then disallowed scripting in willReleaseScriptContext
|
||||||
|
in https://codereview.chromium.org/1657583002, and crash will happen
|
||||||
|
when there is code doing that.
|
||||||
|
|
||||||
|
This patch reverts the change to fix the crash in Electron.
|
||||||
|
|
||||||
diff --git a/third_party/blink/renderer/core/frame/local_frame.cc b/third_party/blink/renderer/core/frame/local_frame.cc
|
diff --git a/third_party/blink/renderer/core/frame/local_frame.cc b/third_party/blink/renderer/core/frame/local_frame.cc
|
||||||
index 5686e6a06d6f..4798d7e36bec 100644
|
index 52810bba03b0..65575d432df5 100644
|
||||||
--- a/third_party/blink/renderer/core/frame/local_frame.cc
|
--- a/third_party/blink/renderer/core/frame/local_frame.cc
|
||||||
+++ b/third_party/blink/renderer/core/frame/local_frame.cc
|
+++ b/third_party/blink/renderer/core/frame/local_frame.cc
|
||||||
@@ -382,10 +382,6 @@ void LocalFrame::Detach(FrameDetachType type) {
|
@@ -392,10 +392,6 @@ void LocalFrame::Detach(FrameDetachType type) {
|
||||||
}
|
}
|
||||||
CHECK(!view_ || !view_->IsAttached());
|
CHECK(!view_ || !view_->IsAttached());
|
||||||
|
|
||||||
|
@ -13,7 +28,7 @@ index 5686e6a06d6f..4798d7e36bec 100644
|
||||||
if (!Client())
|
if (!Client())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -403,6 +399,10 @@ void LocalFrame::Detach(FrameDetachType type) {
|
@@ -413,6 +409,10 @@ void LocalFrame::Detach(FrameDetachType type) {
|
||||||
// Notify ScriptController that the frame is closing, since its cleanup ends
|
// Notify ScriptController that the frame is closing, since its cleanup ends
|
||||||
// up calling back to LocalFrameClient via WindowProxy.
|
// up calling back to LocalFrameClient via WindowProxy.
|
||||||
GetScriptController().ClearForClose();
|
GetScriptController().ClearForClose();
|
||||||
|
@ -24,3 +39,6 @@ index 5686e6a06d6f..4798d7e36bec 100644
|
||||||
|
|
||||||
// TODO(crbug.com/729196): Trace why LocalFrameView::DetachFromLayout crashes.
|
// TODO(crbug.com/729196): Trace why LocalFrameView::DetachFromLayout crashes.
|
||||||
CHECK(!view_->IsAttached());
|
CHECK(!view_->IsAttached());
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
|
From 026d3f1ce69e4b94b5168422018c744103437e72 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Anonymous <anonymous@electronjs.org>
|
||||||
|
Date: Thu, 20 Sep 2018 17:45:11 -0700
|
||||||
|
Subject: blink_world_context.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/third_party/blink/public/web/web_local_frame.h b/third_party/blink/public/web/web_local_frame.h
|
diff --git a/third_party/blink/public/web/web_local_frame.h b/third_party/blink/public/web/web_local_frame.h
|
||||||
index 601242f8df12..8cb523f82df0 100644
|
index 437e8b22c0f5..0ff6b21fd5a9 100644
|
||||||
--- a/third_party/blink/public/web/web_local_frame.h
|
--- a/third_party/blink/public/web/web_local_frame.h
|
||||||
+++ b/third_party/blink/public/web/web_local_frame.h
|
+++ b/third_party/blink/public/web/web_local_frame.h
|
||||||
@@ -427,6 +427,9 @@ class WebLocalFrame : public WebFrame {
|
@@ -438,6 +438,9 @@ class WebLocalFrame : public WebFrame {
|
||||||
// be calling this API.
|
// be calling this API.
|
||||||
virtual v8::Local<v8::Context> MainWorldScriptContext() const = 0;
|
virtual v8::Local<v8::Context> MainWorldScriptContext() const = 0;
|
||||||
|
|
||||||
|
@ -13,10 +19,10 @@ index 601242f8df12..8cb523f82df0 100644
|
||||||
// that the script evaluated to with callback. Script execution can be
|
// that the script evaluated to with callback. Script execution can be
|
||||||
// suspend.
|
// suspend.
|
||||||
diff --git a/third_party/blink/renderer/core/frame/web_local_frame_impl.cc b/third_party/blink/renderer/core/frame/web_local_frame_impl.cc
|
diff --git a/third_party/blink/renderer/core/frame/web_local_frame_impl.cc b/third_party/blink/renderer/core/frame/web_local_frame_impl.cc
|
||||||
index db86ae3c5eb4..602841d00df4 100644
|
index 082b055a570c..345d97f888b5 100644
|
||||||
--- a/third_party/blink/renderer/core/frame/web_local_frame_impl.cc
|
--- a/third_party/blink/renderer/core/frame/web_local_frame_impl.cc
|
||||||
+++ b/third_party/blink/renderer/core/frame/web_local_frame_impl.cc
|
+++ b/third_party/blink/renderer/core/frame/web_local_frame_impl.cc
|
||||||
@@ -892,6 +892,13 @@ v8::Local<v8::Object> WebLocalFrameImpl::GlobalProxy() const {
|
@@ -874,6 +874,13 @@ v8::Local<v8::Object> WebLocalFrameImpl::GlobalProxy() const {
|
||||||
return MainWorldScriptContext()->Global();
|
return MainWorldScriptContext()->Global();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,15 +37,18 @@ index db86ae3c5eb4..602841d00df4 100644
|
||||||
return BindingSecurity::ShouldAllowAccessToFrame(
|
return BindingSecurity::ShouldAllowAccessToFrame(
|
||||||
CurrentDOMWindow(V8PerIsolateData::MainThreadIsolate()),
|
CurrentDOMWindow(V8PerIsolateData::MainThreadIsolate()),
|
||||||
diff --git a/third_party/blink/renderer/core/frame/web_local_frame_impl.h b/third_party/blink/renderer/core/frame/web_local_frame_impl.h
|
diff --git a/third_party/blink/renderer/core/frame/web_local_frame_impl.h b/third_party/blink/renderer/core/frame/web_local_frame_impl.h
|
||||||
index 0adc92eb48f2..a17891ce397c 100644
|
index feb4b14bc8e5..95d1cc2c91ca 100644
|
||||||
--- a/third_party/blink/renderer/core/frame/web_local_frame_impl.h
|
--- a/third_party/blink/renderer/core/frame/web_local_frame_impl.h
|
||||||
+++ b/third_party/blink/renderer/core/frame/web_local_frame_impl.h
|
+++ b/third_party/blink/renderer/core/frame/web_local_frame_impl.h
|
||||||
@@ -144,6 +144,8 @@ class CORE_EXPORT WebLocalFrameImpl final
|
@@ -145,6 +145,8 @@ class CORE_EXPORT WebLocalFrameImpl final
|
||||||
int argc,
|
int argc,
|
||||||
v8::Local<v8::Value> argv[]) override;
|
v8::Local<v8::Value> argv[]) override;
|
||||||
v8::Local<v8::Context> MainWorldScriptContext() const override;
|
v8::Local<v8::Context> MainWorldScriptContext() const override;
|
||||||
+ v8::Local<v8::Context> WorldScriptContext(
|
+ v8::Local<v8::Context> WorldScriptContext(
|
||||||
+ v8::Isolate* isolate, int world_id) const override;
|
+ v8::Isolate* isolate, int world_id) const override;
|
||||||
v8::Local<v8::Object> GlobalProxy() const override;
|
v8::Local<v8::Object> GlobalProxy() const override;
|
||||||
void Reload(WebFrameLoadType) override;
|
void StartReload(WebFrameLoadType) override;
|
||||||
void ReloadImage(const WebNode&) override;
|
void ReloadImage(const WebNode&) override;
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
From 1e77d2109d61aea5270d1026a7df5fb44e639568 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jeremy Apthorp <nornagon@nornagon.net>
|
||||||
|
Date: Thu, 20 Sep 2018 17:48:05 -0700
|
||||||
|
Subject: boringssl_build_gn.patch
|
||||||
|
|
||||||
|
Build BoringSSL with some extra functions that nodejs needs. Only affects
|
||||||
|
the GN build; with the GYP build, nodejs is still built with OpenSSL.
|
||||||
|
|
||||||
diff --git a/third_party/boringssl/BUILD.gn b/third_party/boringssl/BUILD.gn
|
diff --git a/third_party/boringssl/BUILD.gn b/third_party/boringssl/BUILD.gn
|
||||||
index d31a9f29fa9c..dea5a6403f4c 100644
|
index d31a9f29fa9c..dea5a6403f4c 100644
|
||||||
--- a/third_party/boringssl/BUILD.gn
|
--- a/third_party/boringssl/BUILD.gn
|
||||||
|
@ -16,3 +24,6 @@ index d31a9f29fa9c..dea5a6403f4c 100644
|
||||||
|
|
||||||
# Windows' assembly is built with Yasm. The other platforms use the platform
|
# Windows' assembly is built with Yasm. The other platforms use the platform
|
||||||
# assembler.
|
# assembler.
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
|
From 4b6fd85950701d177879f3a239b19f08c9ff3a66 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Cheng Zhao <zcbenz@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:45:14 -0700
|
||||||
|
Subject: browser_compositor_mac.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/content/browser/renderer_host/browser_compositor_view_mac.h b/content/browser/renderer_host/browser_compositor_view_mac.h
|
diff --git a/content/browser/renderer_host/browser_compositor_view_mac.h b/content/browser/renderer_host/browser_compositor_view_mac.h
|
||||||
index bc9eba153a6a..5200f79afd05 100644
|
index 46be85eea4b5..4c816b7021f8 100644
|
||||||
--- a/content/browser/renderer_host/browser_compositor_view_mac.h
|
--- a/content/browser/renderer_host/browser_compositor_view_mac.h
|
||||||
+++ b/content/browser/renderer_host/browser_compositor_view_mac.h
|
+++ b/content/browser/renderer_host/browser_compositor_view_mac.h
|
||||||
@@ -59,6 +59,8 @@ class CONTENT_EXPORT BrowserCompositorMac : public DelegatedFrameHostClient,
|
@@ -59,6 +59,8 @@ class CONTENT_EXPORT BrowserCompositorMac : public DelegatedFrameHostClient,
|
||||||
|
@ -16,15 +22,15 @@ index bc9eba153a6a..5200f79afd05 100644
|
||||||
const gfx::CALayerParams* GetLastCALayerParams() const;
|
const gfx::CALayerParams* GetLastCALayerParams() const;
|
||||||
|
|
||||||
+ ui::Compositor* GetCompositor();
|
+ ui::Compositor* GetCompositor();
|
||||||
gfx::AcceleratedWidget GetAcceleratedWidget();
|
|
||||||
void DidCreateNewRendererCompositorFrameSink(
|
void DidCreateNewRendererCompositorFrameSink(
|
||||||
viz::mojom::CompositorFrameSinkClient* renderer_compositor_frame_sink);
|
viz::mojom::CompositorFrameSinkClient* renderer_compositor_frame_sink);
|
||||||
|
void OnDidNotProduceFrame(const viz::BeginFrameAck& ack);
|
||||||
diff --git a/content/browser/renderer_host/browser_compositor_view_mac.mm b/content/browser/renderer_host/browser_compositor_view_mac.mm
|
diff --git a/content/browser/renderer_host/browser_compositor_view_mac.mm b/content/browser/renderer_host/browser_compositor_view_mac.mm
|
||||||
index 3d12a1126a0d..7a60368b2c8a 100644
|
index 92afcc779106..42bd6fd7c169 100644
|
||||||
--- a/content/browser/renderer_host/browser_compositor_view_mac.mm
|
--- a/content/browser/renderer_host/browser_compositor_view_mac.mm
|
||||||
+++ b/content/browser/renderer_host/browser_compositor_view_mac.mm
|
+++ b/content/browser/renderer_host/browser_compositor_view_mac.mm
|
||||||
@@ -240,6 +240,12 @@ BrowserCompositorMac::~BrowserCompositorMac() {
|
@@ -81,6 +81,12 @@ BrowserCompositorMac::~BrowserCompositorMac() {
|
||||||
g_spare_recyclable_compositors.Get().clear();
|
DCHECK_EQ(1u, num_erased);
|
||||||
}
|
}
|
||||||
|
|
||||||
+ui::Compositor* BrowserCompositorMac::GetCompositor() {
|
+ui::Compositor* BrowserCompositorMac::GetCompositor() {
|
||||||
|
@ -33,6 +39,9 @@ index 3d12a1126a0d..7a60368b2c8a 100644
|
||||||
+ return nullptr;
|
+ return nullptr;
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
gfx::AcceleratedWidget BrowserCompositorMac::GetAcceleratedWidget() {
|
DelegatedFrameHost* BrowserCompositorMac::GetDelegatedFrameHost() {
|
||||||
if (recyclable_compositor_) {
|
DCHECK(delegated_frame_host_);
|
||||||
return recyclable_compositor_->accelerated_widget_mac()
|
return delegated_frame_host_.get();
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
|
From 402d52b4cf68772c493920f9e4977132918d9b48 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Tomas Rycl <torycl@microsoft.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:47:25 -0700
|
||||||
|
Subject: browser_plugin_guest.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
|
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
|
||||||
index a0bc9305e62d..7f022f6cfda7 100644
|
index f56ce93c3d5b..19c302c2714f 100644
|
||||||
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
|
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
|
||||||
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
|
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
|
||||||
@@ -207,8 +207,11 @@ void BrowserPluginGuest::Init() {
|
@@ -206,8 +206,11 @@ void BrowserPluginGuest::Init() {
|
||||||
|
|
||||||
WebContentsImpl* owner_web_contents = static_cast<WebContentsImpl*>(
|
WebContentsImpl* owner_web_contents = static_cast<WebContentsImpl*>(
|
||||||
delegate_->GetOwnerWebContents());
|
delegate_->GetOwnerWebContents());
|
||||||
|
@ -16,3 +22,6 @@ index a0bc9305e62d..7f022f6cfda7 100644
|
||||||
}
|
}
|
||||||
|
|
||||||
base::WeakPtr<BrowserPluginGuest> BrowserPluginGuest::AsWeakPtr() {
|
base::WeakPtr<BrowserPluginGuest> BrowserPluginGuest::AsWeakPtr() {
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
|
From 4032ed30d0df7f78fde3da3725f8aa3759493e4c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Anonymous <anonymous@electronjs.org>
|
||||||
|
Date: Thu, 20 Sep 2018 17:45:21 -0700
|
||||||
|
Subject: browser_plugin_wheel.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
|
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
|
||||||
index d64895137a73..c42dd6ddf172 100644
|
index 4d8251069ae9..fbd5cc809962 100644
|
||||||
--- a/content/renderer/browser_plugin/browser_plugin.cc
|
--- a/content/renderer/browser_plugin/browser_plugin.cc
|
||||||
+++ b/content/renderer/browser_plugin/browser_plugin.cc
|
+++ b/content/renderer/browser_plugin/browser_plugin.cc
|
||||||
@@ -642,15 +642,11 @@ blink::WebInputEventResult BrowserPlugin::HandleInputEvent(
|
@@ -656,15 +656,11 @@ blink::WebInputEventResult BrowserPlugin::HandleInputEvent(
|
||||||
|
|
||||||
DCHECK(!blink::WebInputEvent::IsTouchEventType(event.GetType()));
|
DCHECK(!blink::WebInputEvent::IsTouchEventType(event.GetType()));
|
||||||
|
|
||||||
|
@ -23,3 +29,6 @@ index d64895137a73..c42dd6ddf172 100644
|
||||||
|
|
||||||
if (blink::WebInputEvent::IsGestureEventType(event.GetType())) {
|
if (blink::WebInputEvent::IsGestureEventType(event.GetType())) {
|
||||||
auto gesture_event = static_cast<const blink::WebGestureEvent&>(event);
|
auto gesture_event = static_cast<const blink::WebGestureEvent&>(event);
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
|
From aca453bd9e35003bc70adfc77a576492f05c5954 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Ales Pergl <alpergl@microsoft.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:44:29 -0700
|
||||||
|
Subject: build_gn.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn
|
diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn
|
||||||
index 93a97ff2803f..02c469e930a1 100644
|
index fcc00ee0e49f..3232a0360e94 100644
|
||||||
--- a/build/config/BUILDCONFIG.gn
|
--- a/build/config/BUILDCONFIG.gn
|
||||||
+++ b/build/config/BUILDCONFIG.gn
|
+++ b/build/config/BUILDCONFIG.gn
|
||||||
@@ -123,6 +123,9 @@ if (current_os == "") {
|
@@ -123,6 +123,9 @@ if (current_os == "") {
|
||||||
|
@ -12,7 +18,7 @@ index 93a97ff2803f..02c469e930a1 100644
|
||||||
# Set to enable the official build level of optimization. This has nothing
|
# Set to enable the official build level of optimization. This has nothing
|
||||||
# to do with branding, but enables an additional level of optimization above
|
# to do with branding, but enables an additional level of optimization above
|
||||||
# release (!is_debug). This might be better expressed as a tri-state
|
# release (!is_debug). This might be better expressed as a tri-state
|
||||||
@@ -527,6 +531,7 @@ default_compiler_configs = [
|
@@ -536,6 +539,7 @@ default_compiler_configs = [
|
||||||
"//build/config/compiler:thin_archive",
|
"//build/config/compiler:thin_archive",
|
||||||
"//build/config/coverage:default_coverage",
|
"//build/config/coverage:default_coverage",
|
||||||
"//build/config/sanitizers:default_sanitizer_flags",
|
"//build/config/sanitizers:default_sanitizer_flags",
|
||||||
|
@ -21,24 +27,28 @@ index 93a97ff2803f..02c469e930a1 100644
|
||||||
|
|
||||||
if (is_win) {
|
if (is_win) {
|
||||||
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
|
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
|
||||||
index 83337d52e4b9..8ec56ca46c74 100644
|
index 959a59231746..48f1285c4657 100644
|
||||||
--- a/build/config/compiler/BUILD.gn
|
--- a/build/config/compiler/BUILD.gn
|
||||||
+++ b/build/config/compiler/BUILD.gn
|
+++ b/build/config/compiler/BUILD.gn
|
||||||
@@ -636,10 +636,13 @@ config("compiler") {
|
@@ -634,12 +634,12 @@ config("compiler") {
|
||||||
ldflags += [ "-Wl,--lto-O0" ]
|
|
||||||
}
|
|
||||||
|
|
||||||
- cflags += [ "-fwhole-program-vtables" ]
|
# TODO(pcc): Re-enable this flag on Android. This will require libc++ to be
|
||||||
- if (!is_win) {
|
# built with ThinLTO (see https://crbug.com/767901) as well as the GVR shim.
|
||||||
- ldflags += [ "-fwhole-program-vtables" ]
|
- if (!is_android) {
|
||||||
|
- cflags += [ "-fwhole-program-vtables" ]
|
||||||
|
- if (!is_win) {
|
||||||
|
- ldflags += [ "-fwhole-program-vtables" ]
|
||||||
|
- }
|
||||||
- }
|
- }
|
||||||
+ # -fwhole-program-vtables doesn't work well in Electron right now, as it's
|
+ # if (!is_android) {
|
||||||
+ # not a single binary and the optimizations break interfaces used across
|
+ # cflags += [ "-fwhole-program-vtables" ]
|
||||||
+ # binary boundaries.
|
+ # if (!is_win) {
|
||||||
+ # cflags += [ "-fwhole-program-vtables" ]
|
+ # ldflags += [ "-fwhole-program-vtables" ]
|
||||||
+ # if (!is_win) {
|
+ # }
|
||||||
+ # ldflags += [ "-fwhole-program-vtables" ]
|
+ # }
|
||||||
+ #}
|
|
||||||
|
|
||||||
# Work-around for http://openradar.appspot.com/20356002
|
# Work-around for http://openradar.appspot.com/20356002
|
||||||
if (is_mac) {
|
if (is_mac) {
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,27 @@
|
||||||
|
From 88c91c7f60e6251c35fdb3549a5dd7fc66cfdf3b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Anonymous <anonymous@electronjs.org>
|
||||||
|
Date: Wed, 19 Sep 2018 18:55:58 -0700
|
||||||
|
Subject: build_toolchain_win_patch.patch
|
||||||
|
|
||||||
|
Patch the Windows build toolchain to generate unique PDB names
|
||||||
|
|
||||||
|
When the PDB files generated by the `static_library` build are
|
||||||
|
packaged for distribution they are all copied to a single folder,
|
||||||
|
some of the PDB files have identical names so they end up
|
||||||
|
overwriting each other. The missing PDB files cause linker warnings
|
||||||
|
when building Electron in Release mode, and make it more difficult
|
||||||
|
to debug release builds.
|
||||||
|
|
||||||
|
This patch modifies the PDB naming convention for the
|
||||||
|
`static_library` build configuration to ensure PDB names are unique.
|
||||||
|
For example, instead of generating `obj/ui/base/base_cc.pdb` the
|
||||||
|
build will now generate `obj/ui/base/obj_ui_base_base_cc.pdb`.
|
||||||
|
|
||||||
diff --git a/build/toolchain/win/BUILD.gn b/build/toolchain/win/BUILD.gn
|
diff --git a/build/toolchain/win/BUILD.gn b/build/toolchain/win/BUILD.gn
|
||||||
index 4d9d1f45f870..286c791613ba 100644
|
index eb3e2b2b377d..fdffcdbdbbfe 100644
|
||||||
--- a/build/toolchain/win/BUILD.gn
|
--- a/build/toolchain/win/BUILD.gn
|
||||||
+++ b/build/toolchain/win/BUILD.gn
|
+++ b/build/toolchain/win/BUILD.gn
|
||||||
@@ -154,6 +154,12 @@ template("msvc_toolchain") {
|
@@ -173,6 +173,12 @@ template("msvc_toolchain") {
|
||||||
]
|
]
|
||||||
|
|
||||||
command = "$env_wrapper$cl /nologo /showIncludes ${clflags} $sys_include_flags{{defines}} {{include_dirs}} {{cflags}} {{cflags_c}} /c {{source}} /Fo{{output}} /Fd\"$pdbname\""
|
command = "$env_wrapper$cl /nologo /showIncludes ${clflags} $sys_include_flags{{defines}} {{include_dirs}} {{cflags}} {{cflags_c}} /c {{source}} /Fo{{output}} /Fd\"$pdbname\""
|
||||||
|
@ -15,7 +34,7 @@ index 4d9d1f45f870..286c791613ba 100644
|
||||||
}
|
}
|
||||||
|
|
||||||
tool("cxx") {
|
tool("cxx") {
|
||||||
@@ -170,6 +176,12 @@ template("msvc_toolchain") {
|
@@ -189,6 +195,12 @@ template("msvc_toolchain") {
|
||||||
]
|
]
|
||||||
|
|
||||||
command = "$env_wrapper$cl /nologo /showIncludes ${clflags} $sys_include_flags{{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}} /c {{source}} /Fo{{output}} /Fd\"$pdbname\""
|
command = "$env_wrapper$cl /nologo /showIncludes ${clflags} $sys_include_flags{{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}} /c {{source}} /Fo{{output}} /Fd\"$pdbname\""
|
||||||
|
@ -29,10 +48,10 @@ index 4d9d1f45f870..286c791613ba 100644
|
||||||
|
|
||||||
tool("rc") {
|
tool("rc") {
|
||||||
diff --git a/build/toolchain/win/tool_wrapper.py b/build/toolchain/win/tool_wrapper.py
|
diff --git a/build/toolchain/win/tool_wrapper.py b/build/toolchain/win/tool_wrapper.py
|
||||||
index b2cb093377ee..801d7a9b8e03 100644
|
index cb0393ecd507..ee21eb4b194b 100644
|
||||||
--- a/build/toolchain/win/tool_wrapper.py
|
--- a/build/toolchain/win/tool_wrapper.py
|
||||||
+++ b/build/toolchain/win/tool_wrapper.py
|
+++ b/build/toolchain/win/tool_wrapper.py
|
||||||
@@ -270,6 +270,25 @@ class WinTool(object):
|
@@ -247,6 +247,25 @@ class WinTool(object):
|
||||||
dirname = dirname[0] if dirname else None
|
dirname = dirname[0] if dirname else None
|
||||||
return subprocess.call(args, shell=True, env=env, cwd=dirname)
|
return subprocess.call(args, shell=True, env=env, cwd=dirname)
|
||||||
|
|
||||||
|
@ -58,3 +77,6 @@ index b2cb093377ee..801d7a9b8e03 100644
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
sys.exit(main(sys.argv[1:]))
|
sys.exit(main(sys.argv[1:]))
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
|
From 0809b4654f69adbc8912ad8922465f46b2d3be18 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Cheng Zhao <zcbenz@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:45:32 -0700
|
||||||
|
Subject: can_create_window.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
|
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
|
||||||
index 321a12f74202..7a53675a2139 100644
|
index 520dcffb5353..783dc705f748 100644
|
||||||
--- a/content/browser/frame_host/render_frame_host_impl.cc
|
--- a/content/browser/frame_host/render_frame_host_impl.cc
|
||||||
+++ b/content/browser/frame_host/render_frame_host_impl.cc
|
+++ b/content/browser/frame_host/render_frame_host_impl.cc
|
||||||
@@ -3058,6 +3058,38 @@ void RenderFrameHostImpl::CreateNewWindow(
|
@@ -3142,6 +3142,38 @@ void RenderFrameHostImpl::CreateNewWindow(
|
||||||
"frame_tree_node", frame_tree_node_->frame_tree_node_id(), "url",
|
"frame_tree_node", frame_tree_node_->frame_tree_node_id(), "url",
|
||||||
params->target_url.possibly_invalid_spec());
|
params->target_url.possibly_invalid_spec());
|
||||||
|
|
||||||
|
@ -41,23 +47,19 @@ index 321a12f74202..7a53675a2139 100644
|
||||||
bool no_javascript_access = false;
|
bool no_javascript_access = false;
|
||||||
|
|
||||||
// Filter out URLs to which navigation is disallowed from this context.
|
// Filter out URLs to which navigation is disallowed from this context.
|
||||||
@@ -3080,8 +3112,9 @@ void RenderFrameHostImpl::CreateNewWindow(
|
@@ -3170,6 +3202,7 @@ void RenderFrameHostImpl::CreateNewWindow(
|
||||||
frame_tree_node_->frame_tree()->GetMainFrame()->GetLastCommittedURL(),
|
|
||||||
last_committed_origin_.GetURL(), params->window_container_type,
|
last_committed_origin_.GetURL(), params->window_container_type,
|
||||||
params->target_url, params->referrer, params->frame_name,
|
params->target_url, params->referrer, params->frame_name,
|
||||||
- params->disposition, *params->features, params->user_gesture,
|
params->disposition, *params->features,
|
||||||
- params->opener_suppressed, &no_javascript_access);
|
+ params->additional_features, body,
|
||||||
+ params->disposition, *params->features, params->additional_features,
|
effective_transient_activation_state, params->opener_suppressed,
|
||||||
+ body, params->user_gesture, params->opener_suppressed,
|
&no_javascript_access);
|
||||||
+ &no_javascript_access);
|
|
||||||
|
|
||||||
if (!can_create_window) {
|
|
||||||
std::move(callback).Run(mojom::CreateNewWindowStatus::kIgnore, nullptr);
|
|
||||||
diff --git a/content/browser/security_exploit_browsertest.cc b/content/browser/security_exploit_browsertest.cc
|
diff --git a/content/browser/security_exploit_browsertest.cc b/content/browser/security_exploit_browsertest.cc
|
||||||
index 9c298b182440..2fcbde75ba47 100644
|
index e3b04edb5a30..254f94016b97 100644
|
||||||
--- a/content/browser/security_exploit_browsertest.cc
|
--- a/content/browser/security_exploit_browsertest.cc
|
||||||
+++ b/content/browser/security_exploit_browsertest.cc
|
+++ b/content/browser/security_exploit_browsertest.cc
|
||||||
@@ -293,6 +293,7 @@ IN_PROC_BROWSER_TEST_F(SecurityExploitBrowserTest,
|
@@ -313,6 +313,7 @@ IN_PROC_BROWSER_TEST_F(SecurityExploitBrowserTest,
|
||||||
|
|
||||||
mojom::CreateNewWindowParamsPtr params = mojom::CreateNewWindowParams::New();
|
mojom::CreateNewWindowParamsPtr params = mojom::CreateNewWindowParams::New();
|
||||||
params->target_url = GURL("about:blank");
|
params->target_url = GURL("about:blank");
|
||||||
|
@ -66,10 +68,10 @@ index 9c298b182440..2fcbde75ba47 100644
|
||||||
std::move(params), base::BindOnce([](mojom::CreateNewWindowStatus,
|
std::move(params), base::BindOnce([](mojom::CreateNewWindowStatus,
|
||||||
mojom::CreateNewWindowReplyPtr) {}));
|
mojom::CreateNewWindowReplyPtr) {}));
|
||||||
diff --git a/content/common/frame.mojom b/content/common/frame.mojom
|
diff --git a/content/common/frame.mojom b/content/common/frame.mojom
|
||||||
index 09b5766c0794..edb604c80d3f 100644
|
index fb4732e6e666..804086522994 100644
|
||||||
--- a/content/common/frame.mojom
|
--- a/content/common/frame.mojom
|
||||||
+++ b/content/common/frame.mojom
|
+++ b/content/common/frame.mojom
|
||||||
@@ -11,6 +11,8 @@ import "content/public/common/resource_type.mojom";
|
@@ -12,6 +12,8 @@ import "content/public/common/resource_type.mojom";
|
||||||
import "content/public/common/resource_load_info.mojom";
|
import "content/public/common/resource_load_info.mojom";
|
||||||
import "content/public/common/transferrable_url_loader.mojom";
|
import "content/public/common/transferrable_url_loader.mojom";
|
||||||
import "content/public/common/window_container_type.mojom";
|
import "content/public/common/window_container_type.mojom";
|
||||||
|
@ -78,7 +80,7 @@ index 09b5766c0794..edb604c80d3f 100644
|
||||||
import "mojo/public/mojom/base/string16.mojom";
|
import "mojo/public/mojom/base/string16.mojom";
|
||||||
import "mojo/public/mojom/base/unguessable_token.mojom";
|
import "mojo/public/mojom/base/unguessable_token.mojom";
|
||||||
import "services/network/public/mojom/url_loader.mojom";
|
import "services/network/public/mojom/url_loader.mojom";
|
||||||
@@ -148,6 +150,24 @@ interface FrameFactory {
|
@@ -157,6 +159,24 @@ interface FrameFactory {
|
||||||
CreateFrame(int32 frame_routing_id, Frame& frame);
|
CreateFrame(int32 frame_routing_id, Frame& frame);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -102,8 +104,8 @@ index 09b5766c0794..edb604c80d3f 100644
|
||||||
+
|
+
|
||||||
struct CreateNewWindowParams {
|
struct CreateNewWindowParams {
|
||||||
// True if this open request came in the context of a user gesture.
|
// True if this open request came in the context of a user gesture.
|
||||||
bool user_gesture;
|
//
|
||||||
@@ -184,6 +204,10 @@ struct CreateNewWindowParams {
|
@@ -196,6 +216,10 @@ struct CreateNewWindowParams {
|
||||||
|
|
||||||
// The window features to use for the new window.
|
// The window features to use for the new window.
|
||||||
blink.mojom.WindowFeatures features;
|
blink.mojom.WindowFeatures features;
|
||||||
|
@ -115,10 +117,10 @@ index 09b5766c0794..edb604c80d3f 100644
|
||||||
|
|
||||||
// Operation result when the renderer asks the browser to create a new window.
|
// Operation result when the renderer asks the browser to create a new window.
|
||||||
diff --git a/content/public/browser/content_browser_client.cc b/content/public/browser/content_browser_client.cc
|
diff --git a/content/public/browser/content_browser_client.cc b/content/public/browser/content_browser_client.cc
|
||||||
index a8927d0ba8da..396ae3d82ba2 100644
|
index 2a896c7072ca..bb54b89bef5c 100644
|
||||||
--- a/content/public/browser/content_browser_client.cc
|
--- a/content/public/browser/content_browser_client.cc
|
||||||
+++ b/content/public/browser/content_browser_client.cc
|
+++ b/content/public/browser/content_browser_client.cc
|
||||||
@@ -401,6 +401,8 @@ bool ContentBrowserClient::CanCreateWindow(
|
@@ -435,6 +435,8 @@ bool ContentBrowserClient::CanCreateWindow(
|
||||||
const std::string& frame_name,
|
const std::string& frame_name,
|
||||||
WindowOpenDisposition disposition,
|
WindowOpenDisposition disposition,
|
||||||
const blink::mojom::WindowFeatures& features,
|
const blink::mojom::WindowFeatures& features,
|
||||||
|
@ -128,10 +130,10 @@ index a8927d0ba8da..396ae3d82ba2 100644
|
||||||
bool opener_suppressed,
|
bool opener_suppressed,
|
||||||
bool* no_javascript_access) {
|
bool* no_javascript_access) {
|
||||||
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
|
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
|
||||||
index e9c6b810e050..3ca627448e33 100644
|
index fd5d62fee117..3be31602689c 100644
|
||||||
--- a/content/public/browser/content_browser_client.h
|
--- a/content/public/browser/content_browser_client.h
|
||||||
+++ b/content/public/browser/content_browser_client.h
|
+++ b/content/public/browser/content_browser_client.h
|
||||||
@@ -153,6 +153,7 @@ class RenderFrameHost;
|
@@ -162,6 +162,7 @@ class RenderFrameHost;
|
||||||
class RenderProcessHost;
|
class RenderProcessHost;
|
||||||
class RenderViewHost;
|
class RenderViewHost;
|
||||||
class ResourceContext;
|
class ResourceContext;
|
||||||
|
@ -139,7 +141,7 @@ index e9c6b810e050..3ca627448e33 100644
|
||||||
class ServiceManagerConnection;
|
class ServiceManagerConnection;
|
||||||
class SiteInstance;
|
class SiteInstance;
|
||||||
class SpeechRecognitionManagerDelegate;
|
class SpeechRecognitionManagerDelegate;
|
||||||
@@ -651,6 +652,8 @@ class CONTENT_EXPORT ContentBrowserClient {
|
@@ -706,6 +707,8 @@ class CONTENT_EXPORT ContentBrowserClient {
|
||||||
const std::string& frame_name,
|
const std::string& frame_name,
|
||||||
WindowOpenDisposition disposition,
|
WindowOpenDisposition disposition,
|
||||||
const blink::mojom::WindowFeatures& features,
|
const blink::mojom::WindowFeatures& features,
|
||||||
|
@ -149,18 +151,18 @@ index e9c6b810e050..3ca627448e33 100644
|
||||||
bool opener_suppressed,
|
bool opener_suppressed,
|
||||||
bool* no_javascript_access);
|
bool* no_javascript_access);
|
||||||
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
|
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
|
||||||
index 4aba7a9e290e..a13cc1599d70 100644
|
index 03d9cda9f95d..edad9fc3198c 100644
|
||||||
--- a/content/renderer/render_view_impl.cc
|
--- a/content/renderer/render_view_impl.cc
|
||||||
+++ b/content/renderer/render_view_impl.cc
|
+++ b/content/renderer/render_view_impl.cc
|
||||||
@@ -78,6 +78,7 @@
|
@@ -79,6 +79,7 @@
|
||||||
#include "content/renderer/ime_event_guard.h"
|
#include "content/renderer/ime_event_guard.h"
|
||||||
#include "content/renderer/internal_document_state_data.h"
|
#include "content/renderer/internal_document_state_data.h"
|
||||||
#include "content/renderer/loader/request_extra_data.h"
|
#include "content/renderer/loader/request_extra_data.h"
|
||||||
+#include "content/renderer/loader/web_url_request_util.h"
|
+#include "content/renderer/loader/web_url_request_util.h"
|
||||||
#include "content/renderer/media/audio_device_factory.h"
|
#include "content/renderer/media/audio/audio_device_factory.h"
|
||||||
#include "content/renderer/media/stream/media_stream_device_observer.h"
|
#include "content/renderer/media/stream/media_stream_device_observer.h"
|
||||||
#include "content/renderer/media/video_capture_impl_manager.h"
|
#include "content/renderer/media/video_capture_impl_manager.h"
|
||||||
@@ -1243,6 +1244,46 @@ WebView* RenderViewImpl::CreateView(WebLocalFrame* creator,
|
@@ -1270,6 +1271,46 @@ WebView* RenderViewImpl::CreateView(WebLocalFrame* creator,
|
||||||
}
|
}
|
||||||
params->features = ConvertWebWindowFeaturesToMojoWindowFeatures(features);
|
params->features = ConvertWebWindowFeaturesToMojoWindowFeatures(features);
|
||||||
|
|
||||||
|
@ -208,10 +210,10 @@ index 4aba7a9e290e..a13cc1599d70 100644
|
||||||
// moved on send.
|
// moved on send.
|
||||||
bool is_background_tab =
|
bool is_background_tab =
|
||||||
diff --git a/content/shell/browser/layout_test/layout_test_content_browser_client.cc b/content/shell/browser/layout_test/layout_test_content_browser_client.cc
|
diff --git a/content/shell/browser/layout_test/layout_test_content_browser_client.cc b/content/shell/browser/layout_test/layout_test_content_browser_client.cc
|
||||||
index 3a908d742130..52294125b799 100644
|
index fe0e3720ea5d..4a31617b5a89 100644
|
||||||
--- a/content/shell/browser/layout_test/layout_test_content_browser_client.cc
|
--- a/content/shell/browser/layout_test/layout_test_content_browser_client.cc
|
||||||
+++ b/content/shell/browser/layout_test/layout_test_content_browser_client.cc
|
+++ b/content/shell/browser/layout_test/layout_test_content_browser_client.cc
|
||||||
@@ -247,6 +247,8 @@ bool LayoutTestContentBrowserClient::CanCreateWindow(
|
@@ -276,6 +276,8 @@ bool LayoutTestContentBrowserClient::CanCreateWindow(
|
||||||
const std::string& frame_name,
|
const std::string& frame_name,
|
||||||
WindowOpenDisposition disposition,
|
WindowOpenDisposition disposition,
|
||||||
const blink::mojom::WindowFeatures& features,
|
const blink::mojom::WindowFeatures& features,
|
||||||
|
@ -221,10 +223,10 @@ index 3a908d742130..52294125b799 100644
|
||||||
bool opener_suppressed,
|
bool opener_suppressed,
|
||||||
bool* no_javascript_access) {
|
bool* no_javascript_access) {
|
||||||
diff --git a/content/shell/browser/layout_test/layout_test_content_browser_client.h b/content/shell/browser/layout_test/layout_test_content_browser_client.h
|
diff --git a/content/shell/browser/layout_test/layout_test_content_browser_client.h b/content/shell/browser/layout_test/layout_test_content_browser_client.h
|
||||||
index d0ba19167522..3d1154b3cb8a 100644
|
index fa458cf0c92d..cdd95a1d88e5 100644
|
||||||
--- a/content/shell/browser/layout_test/layout_test_content_browser_client.h
|
--- a/content/shell/browser/layout_test/layout_test_content_browser_client.h
|
||||||
+++ b/content/shell/browser/layout_test/layout_test_content_browser_client.h
|
+++ b/content/shell/browser/layout_test/layout_test_content_browser_client.h
|
||||||
@@ -67,6 +67,8 @@ class LayoutTestContentBrowserClient : public ShellContentBrowserClient {
|
@@ -66,6 +66,8 @@ class LayoutTestContentBrowserClient : public ShellContentBrowserClient {
|
||||||
const std::string& frame_name,
|
const std::string& frame_name,
|
||||||
WindowOpenDisposition disposition,
|
WindowOpenDisposition disposition,
|
||||||
const blink::mojom::WindowFeatures& features,
|
const blink::mojom::WindowFeatures& features,
|
||||||
|
@ -233,3 +235,6 @@ index d0ba19167522..3d1154b3cb8a 100644
|
||||||
bool user_gesture,
|
bool user_gesture,
|
||||||
bool opener_suppressed,
|
bool opener_suppressed,
|
||||||
bool* no_javascript_access) override;
|
bool* no_javascript_access) override;
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,16 @@
|
||||||
|
From 63fb1abe3afa2b19ac0640b462658e6f286b3c6c Mon Sep 17 00:00:00 2001
|
||||||
|
From: deepak1556 <hop2deep@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:50:13 -0700
|
||||||
|
Subject: chrome_key_systems.patch
|
||||||
|
|
||||||
|
Disable persiste licence support check for widevine cdm,
|
||||||
|
as its not supported in the current version of chrome.
|
||||||
|
|
||||||
diff --git a/chrome/renderer/media/chrome_key_systems.cc b/chrome/renderer/media/chrome_key_systems.cc
|
diff --git a/chrome/renderer/media/chrome_key_systems.cc b/chrome/renderer/media/chrome_key_systems.cc
|
||||||
index c0cf00b5da05..992827ca6782 100644
|
index 5c38d0b1ce7c..4ffaf2a3301e 100644
|
||||||
--- a/chrome/renderer/media/chrome_key_systems.cc
|
--- a/chrome/renderer/media/chrome_key_systems.cc
|
||||||
+++ b/chrome/renderer/media/chrome_key_systems.cc
|
+++ b/chrome/renderer/media/chrome_key_systems.cc
|
||||||
@@ -14,7 +14,9 @@
|
@@ -15,7 +15,9 @@
|
||||||
#include "base/strings/string_split.h"
|
#include "base/strings/string_split.h"
|
||||||
#include "base/strings/utf_string_conversions.h"
|
#include "base/strings/utf_string_conversions.h"
|
||||||
#include "build/build_config.h"
|
#include "build/build_config.h"
|
||||||
|
@ -12,10 +20,10 @@ index c0cf00b5da05..992827ca6782 100644
|
||||||
#include "components/cdm/renderer/external_clear_key_key_system_properties.h"
|
#include "components/cdm/renderer/external_clear_key_key_system_properties.h"
|
||||||
#include "components/cdm/renderer/widevine_key_system_properties.h"
|
#include "components/cdm/renderer/widevine_key_system_properties.h"
|
||||||
#include "content/public/renderer/render_thread.h"
|
#include "content/public/renderer/render_thread.h"
|
||||||
@@ -142,12 +144,14 @@ static void AddExternalClearKey(
|
@@ -185,12 +187,14 @@ static SupportedCodecs GetSupportedCodecs(
|
||||||
#if defined(WIDEVINE_CDM_AVAILABLE)
|
|
||||||
// Returns persistent-license session support.
|
// Returns persistent-license session support.
|
||||||
EmeSessionTypeSupport GetPersistentLicenseSupport(bool supported_by_the_cdm) {
|
static EmeSessionTypeSupport GetPersistentLicenseSupport(
|
||||||
|
bool supported_by_the_cdm) {
|
||||||
+#if 0
|
+#if 0
|
||||||
// Do not support persistent-license if the process cannot persist data.
|
// Do not support persistent-license if the process cannot persist data.
|
||||||
// TODO(crbug.com/457487): Have a better plan on this. See bug for details.
|
// TODO(crbug.com/457487): Have a better plan on this. See bug for details.
|
||||||
|
@ -27,3 +35,6 @@ index c0cf00b5da05..992827ca6782 100644
|
||||||
|
|
||||||
if (!supported_by_the_cdm) {
|
if (!supported_by_the_cdm) {
|
||||||
DVLOG(2) << __func__ << ": Not supported by the CDM.";
|
DVLOG(2) << __func__ << ": Not supported by the CDM.";
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
|
From df47eeaea5e574c7af03eed15d384ad9cad58fb1 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Anonymous <anonymous@electronjs.org>
|
||||||
|
Date: Thu, 20 Sep 2018 17:45:36 -0700
|
||||||
|
Subject: compositor_delegate.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/content/browser/compositor/gpu_process_transport_factory.cc b/content/browser/compositor/gpu_process_transport_factory.cc
|
diff --git a/content/browser/compositor/gpu_process_transport_factory.cc b/content/browser/compositor/gpu_process_transport_factory.cc
|
||||||
index e679dbb02a81..d90a276fc0e1 100644
|
index 511d805187b1..5fb01fee0378 100644
|
||||||
--- a/content/browser/compositor/gpu_process_transport_factory.cc
|
--- a/content/browser/compositor/gpu_process_transport_factory.cc
|
||||||
+++ b/content/browser/compositor/gpu_process_transport_factory.cc
|
+++ b/content/browser/compositor/gpu_process_transport_factory.cc
|
||||||
@@ -507,10 +507,20 @@ void GpuProcessTransportFactory::EstablishedGpuChannel(
|
@@ -494,10 +494,20 @@ void GpuProcessTransportFactory::EstablishedGpuChannel(
|
||||||
// surfaces as they are not following the correct mode.
|
// surfaces as they are not following the correct mode.
|
||||||
DisableGpuCompositing(compositor.get());
|
DisableGpuCompositing(compositor.get());
|
||||||
}
|
}
|
||||||
|
@ -26,7 +32,7 @@ index e679dbb02a81..d90a276fc0e1 100644
|
||||||
} else {
|
} else {
|
||||||
DCHECK(context_provider);
|
DCHECK(context_provider);
|
||||||
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
|
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
|
||||||
index eb250697ebd6..36be87675e9a 100644
|
index e0ec33400b17..29ba88a504c3 100644
|
||||||
--- a/ui/compositor/compositor.h
|
--- a/ui/compositor/compositor.h
|
||||||
+++ b/ui/compositor/compositor.h
|
+++ b/ui/compositor/compositor.h
|
||||||
@@ -24,6 +24,7 @@
|
@@ -24,6 +24,7 @@
|
||||||
|
@ -37,8 +43,8 @@ index eb250697ebd6..36be87675e9a 100644
|
||||||
#include "third_party/skia/include/core/SkColor.h"
|
#include "third_party/skia/include/core/SkColor.h"
|
||||||
#include "third_party/skia/include/core/SkMatrix44.h"
|
#include "third_party/skia/include/core/SkMatrix44.h"
|
||||||
#include "ui/compositor/compositor_animation_observer.h"
|
#include "ui/compositor/compositor_animation_observer.h"
|
||||||
@@ -183,6 +184,15 @@ class COMPOSITOR_EXPORT ContextFactory {
|
@@ -199,6 +200,15 @@ class COMPOSITOR_EXPORT ContextFactory {
|
||||||
virtual void RemoveObserver(ContextFactoryObserver* observer) = 0;
|
virtual bool SyncTokensRequiredForDisplayCompositor() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
+class COMPOSITOR_EXPORT CompositorDelegate {
|
+class COMPOSITOR_EXPORT CompositorDelegate {
|
||||||
|
@ -53,7 +59,7 @@ index eb250697ebd6..36be87675e9a 100644
|
||||||
// Compositor object to take care of GPU painting.
|
// Compositor object to take care of GPU painting.
|
||||||
// A Browser compositor object is responsible for generating the final
|
// A Browser compositor object is responsible for generating the final
|
||||||
// displayable form of pixels comprising a single widget's contents. It draws an
|
// displayable form of pixels comprising a single widget's contents. It draws an
|
||||||
@@ -222,6 +232,9 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
|
@@ -239,6 +249,9 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
|
||||||
// Schedules a redraw of the layer tree associated with this compositor.
|
// Schedules a redraw of the layer tree associated with this compositor.
|
||||||
void ScheduleDraw();
|
void ScheduleDraw();
|
||||||
|
|
||||||
|
@ -63,7 +69,7 @@ index eb250697ebd6..36be87675e9a 100644
|
||||||
// Sets the root of the layer tree drawn by this Compositor. The root layer
|
// Sets the root of the layer tree drawn by this Compositor. The root layer
|
||||||
// must have no parent. The compositor's root layer is reset if the root layer
|
// must have no parent. The compositor's root layer is reset if the root layer
|
||||||
// is destroyed. NULL can be passed to reset the root layer, in which case the
|
// is destroyed. NULL can be passed to reset the root layer, in which case the
|
||||||
@@ -447,6 +460,8 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
|
@@ -461,6 +474,8 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
|
||||||
ui::ContextFactory* context_factory_;
|
ui::ContextFactory* context_factory_;
|
||||||
ui::ContextFactoryPrivate* context_factory_private_;
|
ui::ContextFactoryPrivate* context_factory_private_;
|
||||||
|
|
||||||
|
@ -72,3 +78,6 @@ index eb250697ebd6..36be87675e9a 100644
|
||||||
// The root of the Layer tree drawn by this compositor.
|
// The root of the Layer tree drawn by this compositor.
|
||||||
Layer* root_layer_ = nullptr;
|
Layer* root_layer_ = nullptr;
|
||||||
|
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -25,10 +25,10 @@ index 8d5f78c..a433bb3 100644
|
||||||
implicit_cast<long>(http_status));
|
implicit_cast<long>(http_status));
|
||||||
return false;
|
return false;
|
||||||
diff --git a/third_party/crashpad/crashpad/util/net/http_transport_socket.cc b/third_party/crashpad/crashpad/util/net/http_transport_socket.cc
|
diff --git a/third_party/crashpad/crashpad/util/net/http_transport_socket.cc b/third_party/crashpad/crashpad/util/net/http_transport_socket.cc
|
||||||
index f0e2dc1..34d8dee 100644
|
index f0e2dc14a8a4..34d8deeb5c25 100644
|
||||||
--- a/third_party/crashpad/crashpad/util/net/http_transport_socket.cc
|
--- a/third_party/crashpad/crashpad/util/net/http_transport_socket.cc
|
||||||
+++ b/third_party/crashpad/crashpad/util/net/http_transport_socket.cc
|
+++ b/third_party/crashpad/crashpad/util/net/http_transport_socket.cc
|
||||||
@@ -457,10 +457,18 @@
|
@@ -457,10 +457,18 @@ bool ReadResponseLine(Stream* stream) {
|
||||||
LOG(ERROR) << "ReadLine";
|
LOG(ERROR) << "ReadLine";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ index f0e2dc1..34d8dee 100644
|
||||||
+ http_status >= 200 && http_status <= 203;
|
+ http_status >= 200 && http_status <= 203;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ReadResponseHeaders(int sock, HTTPHeaders* headers) {
|
bool ReadResponseHeaders(Stream* stream, HTTPHeaders* headers) {
|
||||||
diff --git a/third_party/crashpad/crashpad/util/net/http_transport_test.cc b/third_party/crashpad/crashpad/util/net/http_transport_test.cc
|
diff --git a/third_party/crashpad/crashpad/util/net/http_transport_test.cc b/third_party/crashpad/crashpad/util/net/http_transport_test.cc
|
||||||
index 7b5f41d..d73dc99 100644
|
index 7b5f41d..d73dc99 100644
|
||||||
--- a/third_party/crashpad/crashpad/util/net/http_transport_test.cc
|
--- a/third_party/crashpad/crashpad/util/net/http_transport_test.cc
|
||||||
|
|
|
@ -1,5 +1,45 @@
|
||||||
|
From 0a8757b6650df0e762cc4ec400ecb7ee8ca7be4a Mon Sep 17 00:00:00 2001
|
||||||
|
From: deepak1556 <hop2deep@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:44:38 -0700
|
||||||
|
Subject: dcheck.patch
|
||||||
|
|
||||||
|
This disables some debug checks which currently fail when running the Electron
|
||||||
|
test suite. In general there should be sustained effort to have all debug checks
|
||||||
|
enabled. If you want to help, choose one of the diffs below and remove it. Then
|
||||||
|
build Electron (debug configuration) and make sure all tests pass on the CI
|
||||||
|
systems. Unfortunately the tests don't always cover the check failures, so it's
|
||||||
|
good to also run some non-trivial Electron app to verify.
|
||||||
|
|
||||||
|
Apart from getting rid of a whole diff, you may also be able to replace one diff
|
||||||
|
with another which enables at least some of the previously disabled checks. For
|
||||||
|
example, the checks might be disabled for a whole build target, but actually
|
||||||
|
only one or two specific checks fail. Then it's better to simply comment out the
|
||||||
|
failing checks and allow the rest of the target to have them enabled.
|
||||||
|
|
||||||
|
Please keep the following lists updated.
|
||||||
|
|
||||||
|
The ELECTRON_NO_DCHECK build flag disables debug checks universally.
|
||||||
|
This patch applies the flag to the following GN targets:
|
||||||
|
|
||||||
|
third_party/blink/renderer/core/loader:loader
|
||||||
|
url:url
|
||||||
|
|
||||||
|
These files have debug checks explicitly commented out:
|
||||||
|
|
||||||
|
base/memory/weak_ptr.cc
|
||||||
|
base/process/kill_win.cc
|
||||||
|
components/viz/service/display/program_binding.h
|
||||||
|
components/viz/service/display_embedder/server_shared_bitmap_manager.cc
|
||||||
|
content/browser/frame_host/navigation_controller_impl.cc
|
||||||
|
content/browser/frame_host/render_frame_host_impl.cc
|
||||||
|
content/browser/renderer_host/render_widget_host_view_mac.mm
|
||||||
|
ppapi/host/ppapi_host.cc
|
||||||
|
third_party/blink/renderer/core/dom/node.cc
|
||||||
|
third_party/blink/renderer/platform/wtf/text/string_impl.cc
|
||||||
|
ui/base/clipboard/clipboard_win.cc
|
||||||
|
|
||||||
diff --git a/base/logging.h b/base/logging.h
|
diff --git a/base/logging.h b/base/logging.h
|
||||||
index 29960599a5c6..7352201e7b66 100644
|
index 08c1f0fc5967..7a758ce3ef90 100644
|
||||||
--- a/base/logging.h
|
--- a/base/logging.h
|
||||||
+++ b/base/logging.h
|
+++ b/base/logging.h
|
||||||
@@ -874,7 +874,7 @@ const LogSeverity LOG_DCHECK = LOG_FATAL;
|
@@ -874,7 +874,7 @@ const LogSeverity LOG_DCHECK = LOG_FATAL;
|
||||||
|
@ -11,6 +51,21 @@ index 29960599a5c6..7352201e7b66 100644
|
||||||
|
|
||||||
#define DCHECK(condition) \
|
#define DCHECK(condition) \
|
||||||
LAZY_STREAM(LOG_STREAM(DCHECK), !ANALYZER_ASSUME_TRUE(condition)) \
|
LAZY_STREAM(LOG_STREAM(DCHECK), !ANALYZER_ASSUME_TRUE(condition)) \
|
||||||
|
diff --git a/base/memory/weak_ptr.cc b/base/memory/weak_ptr.cc
|
||||||
|
index c993fcb8a13a..80a5b708d259 100644
|
||||||
|
--- a/base/memory/weak_ptr.cc
|
||||||
|
+++ b/base/memory/weak_ptr.cc
|
||||||
|
@@ -25,8 +25,8 @@ void WeakReference::Flag::Invalidate() {
|
||||||
|
}
|
||||||
|
|
||||||
|
bool WeakReference::Flag::IsValid() const {
|
||||||
|
- DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_)
|
||||||
|
- << "WeakPtrs must be checked on the same sequenced thread.";
|
||||||
|
+ // DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_)
|
||||||
|
+ // << "WeakPtrs must be checked on the same sequenced thread.";
|
||||||
|
return !invalidated_.IsSet();
|
||||||
|
}
|
||||||
|
|
||||||
diff --git a/base/process/kill_win.cc b/base/process/kill_win.cc
|
diff --git a/base/process/kill_win.cc b/base/process/kill_win.cc
|
||||||
index 7a664429bcd3..26f49dc3d1e7 100644
|
index 7a664429bcd3..26f49dc3d1e7 100644
|
||||||
--- a/base/process/kill_win.cc
|
--- a/base/process/kill_win.cc
|
||||||
|
@ -43,10 +98,10 @@ index 18ef58a725c3..239f319c8b4c 100644
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
diff --git a/components/viz/service/display/program_binding.h b/components/viz/service/display/program_binding.h
|
diff --git a/components/viz/service/display/program_binding.h b/components/viz/service/display/program_binding.h
|
||||||
index 8b28c57f854e..a0e7056af23f 100644
|
index 2a8fb9f54847..2c318b310b2a 100644
|
||||||
--- a/components/viz/service/display/program_binding.h
|
--- a/components/viz/service/display/program_binding.h
|
||||||
+++ b/components/viz/service/display/program_binding.h
|
+++ b/components/viz/service/display/program_binding.h
|
||||||
@@ -433,7 +433,7 @@ class VIZ_SERVICE_EXPORT Program : public ProgramBindingBase {
|
@@ -434,7 +434,7 @@ class VIZ_SERVICE_EXPORT Program : public ProgramBindingBase {
|
||||||
if (!ProgramBindingBase::Init(context_provider->ContextGL(),
|
if (!ProgramBindingBase::Init(context_provider->ContextGL(),
|
||||||
vertex_shader_.GetShaderString(),
|
vertex_shader_.GetShaderString(),
|
||||||
fragment_shader_.GetShaderString())) {
|
fragment_shader_.GetShaderString())) {
|
||||||
|
@ -55,7 +110,7 @@ index 8b28c57f854e..a0e7056af23f 100644
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -445,7 +445,7 @@ class VIZ_SERVICE_EXPORT Program : public ProgramBindingBase {
|
@@ -446,7 +446,7 @@ class VIZ_SERVICE_EXPORT Program : public ProgramBindingBase {
|
||||||
|
|
||||||
// Link after binding uniforms
|
// Link after binding uniforms
|
||||||
if (!Link(context_provider->ContextGL())) {
|
if (!Link(context_provider->ContextGL())) {
|
||||||
|
@ -65,10 +120,10 @@ index 8b28c57f854e..a0e7056af23f 100644
|
||||||
}
|
}
|
||||||
|
|
||||||
diff --git a/content/browser/frame_host/navigation_controller_impl.cc b/content/browser/frame_host/navigation_controller_impl.cc
|
diff --git a/content/browser/frame_host/navigation_controller_impl.cc b/content/browser/frame_host/navigation_controller_impl.cc
|
||||||
index 74ff6b4286c2..02bf1c55d86f 100644
|
index d8aca9e2cbff..86224ab7a3c5 100644
|
||||||
--- a/content/browser/frame_host/navigation_controller_impl.cc
|
--- a/content/browser/frame_host/navigation_controller_impl.cc
|
||||||
+++ b/content/browser/frame_host/navigation_controller_impl.cc
|
+++ b/content/browser/frame_host/navigation_controller_impl.cc
|
||||||
@@ -1083,8 +1083,10 @@ NavigationType NavigationControllerImpl::ClassifyNavigation(
|
@@ -995,8 +995,10 @@ NavigationType NavigationControllerImpl::ClassifyNavigation(
|
||||||
return NAVIGATION_TYPE_NEW_SUBFRAME;
|
return NAVIGATION_TYPE_NEW_SUBFRAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,7 +136,7 @@ index 74ff6b4286c2..02bf1c55d86f 100644
|
||||||
|
|
||||||
if (rfh->GetParent()) {
|
if (rfh->GetParent()) {
|
||||||
// All manual subframes would be did_create_new_entry and handled above, so
|
// All manual subframes would be did_create_new_entry and handled above, so
|
||||||
@@ -1305,7 +1307,10 @@ void NavigationControllerImpl::RendererDidNavigateToNewPage(
|
@@ -1233,7 +1235,10 @@ void NavigationControllerImpl::RendererDidNavigateToNewPage(
|
||||||
new_entry->GetFavicon() = GetLastCommittedEntry()->GetFavicon();
|
new_entry->GetFavicon() = GetLastCommittedEntry()->GetFavicon();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,10 +149,10 @@ index 74ff6b4286c2..02bf1c55d86f 100644
|
||||||
// navigation. Now we know that the renderer has updated its state accordingly
|
// navigation. Now we know that the renderer has updated its state accordingly
|
||||||
// and it is safe to also clear the browser side history.
|
// and it is safe to also clear the browser side history.
|
||||||
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
|
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
|
||||||
index cd755cbc3f2c..321a12f74202 100644
|
index 8e5af3e3b9c5..520dcffb5353 100644
|
||||||
--- a/content/browser/frame_host/render_frame_host_impl.cc
|
--- a/content/browser/frame_host/render_frame_host_impl.cc
|
||||||
+++ b/content/browser/frame_host/render_frame_host_impl.cc
|
+++ b/content/browser/frame_host/render_frame_host_impl.cc
|
||||||
@@ -2345,8 +2345,10 @@ void RenderFrameHostImpl::AllowBindings(int bindings_flags) {
|
@@ -2416,8 +2416,10 @@ void RenderFrameHostImpl::AllowBindings(int bindings_flags) {
|
||||||
}
|
}
|
||||||
|
|
||||||
enabled_bindings_ |= bindings_flags;
|
enabled_bindings_ |= bindings_flags;
|
||||||
|
@ -110,26 +165,11 @@ index cd755cbc3f2c..321a12f74202 100644
|
||||||
|
|
||||||
if (render_frame_created_) {
|
if (render_frame_created_) {
|
||||||
if (!frame_bindings_control_)
|
if (!frame_bindings_control_)
|
||||||
diff --git a/content/browser/renderer_host/render_widget_host_view_cocoa.mm b/content/browser/renderer_host/render_widget_host_view_cocoa.mm
|
|
||||||
index d86576cc36ac..5b4ae0732914 100644
|
|
||||||
--- a/content/browser/renderer_host/render_widget_host_view_cocoa.mm
|
|
||||||
+++ b/content/browser/renderer_host/render_widget_host_view_cocoa.mm
|
|
||||||
@@ -650,8 +650,8 @@ void ExtractUnderlines(NSAttributedString* string,
|
|
||||||
if (EventIsReservedBySystem(theEvent))
|
|
||||||
return;
|
|
||||||
|
|
||||||
- DCHECK(eventType != NSKeyDown ||
|
|
||||||
- !equiv == !(modifierFlags & NSCommandKeyMask));
|
|
||||||
+ // DCHECK(eventType != NSKeyDown ||
|
|
||||||
+ // !equiv == !(modifierFlags & NSCommandKeyMask));
|
|
||||||
|
|
||||||
if (eventType == NSFlagsChanged) {
|
|
||||||
// Ignore NSFlagsChanged events from the NumLock and Fn keys as
|
|
||||||
diff --git a/ppapi/host/ppapi_host.cc b/ppapi/host/ppapi_host.cc
|
diff --git a/ppapi/host/ppapi_host.cc b/ppapi/host/ppapi_host.cc
|
||||||
index f3c68fab3de6..b8609daf3ef9 100644
|
index 3f80e73535c8..bf40b94ad24c 100644
|
||||||
--- a/ppapi/host/ppapi_host.cc
|
--- a/ppapi/host/ppapi_host.cc
|
||||||
+++ b/ppapi/host/ppapi_host.cc
|
+++ b/ppapi/host/ppapi_host.cc
|
||||||
@@ -240,7 +240,7 @@ void PpapiHost::OnHostMsgResourceCreated(
|
@@ -238,7 +238,7 @@ void PpapiHost::OnHostMsgResourceCreated(
|
||||||
CreateResourceHost(params.pp_resource(), instance, nested_msg);
|
CreateResourceHost(params.pp_resource(), instance, nested_msg);
|
||||||
|
|
||||||
if (!resource_host.get()) {
|
if (!resource_host.get()) {
|
||||||
|
@ -139,10 +179,10 @@ index f3c68fab3de6..b8609daf3ef9 100644
|
||||||
}
|
}
|
||||||
|
|
||||||
diff --git a/third_party/blink/renderer/core/dom/node.cc b/third_party/blink/renderer/core/dom/node.cc
|
diff --git a/third_party/blink/renderer/core/dom/node.cc b/third_party/blink/renderer/core/dom/node.cc
|
||||||
index ca47b2d09693..b4b6ce96209b 100644
|
index 5629f8170851..bc773ac9b1e4 100644
|
||||||
--- a/third_party/blink/renderer/core/dom/node.cc
|
--- a/third_party/blink/renderer/core/dom/node.cc
|
||||||
+++ b/third_party/blink/renderer/core/dom/node.cc
|
+++ b/third_party/blink/renderer/core/dom/node.cc
|
||||||
@@ -2535,7 +2535,7 @@ StaticNodeList* Node::getDestinationInsertionPoints() {
|
@@ -2568,7 +2568,7 @@ StaticNodeList* Node::getDestinationInsertionPoints() {
|
||||||
|
|
||||||
HTMLSlotElement* Node::AssignedSlot() const {
|
HTMLSlotElement* Node::AssignedSlot() const {
|
||||||
// assignedSlot doesn't need to call updateDistribution().
|
// assignedSlot doesn't need to call updateDistribution().
|
||||||
|
@ -152,10 +192,10 @@ index ca47b2d09693..b4b6ce96209b 100644
|
||||||
return root->AssignedSlotFor(*this);
|
return root->AssignedSlotFor(*this);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
diff --git a/third_party/blink/renderer/core/loader/BUILD.gn b/third_party/blink/renderer/core/loader/BUILD.gn
|
diff --git a/third_party/blink/renderer/core/loader/BUILD.gn b/third_party/blink/renderer/core/loader/BUILD.gn
|
||||||
index 82f6e8bc9d33..ccad95d61a4a 100644
|
index 49b4ead3dc52..0083e5c8efb7 100644
|
||||||
--- a/third_party/blink/renderer/core/loader/BUILD.gn
|
--- a/third_party/blink/renderer/core/loader/BUILD.gn
|
||||||
+++ b/third_party/blink/renderer/core/loader/BUILD.gn
|
+++ b/third_party/blink/renderer/core/loader/BUILD.gn
|
||||||
@@ -129,4 +129,11 @@ blink_core_sources("loader") {
|
@@ -135,4 +135,11 @@ blink_core_sources("loader") {
|
||||||
public_deps = [
|
public_deps = [
|
||||||
"//third_party/blink/renderer/platform",
|
"//third_party/blink/renderer/platform",
|
||||||
]
|
]
|
||||||
|
@ -168,7 +208,7 @@ index 82f6e8bc9d33..ccad95d61a4a 100644
|
||||||
+ }
|
+ }
|
||||||
}
|
}
|
||||||
diff --git a/third_party/blink/renderer/platform/wtf/text/string_impl.h b/third_party/blink/renderer/platform/wtf/text/string_impl.h
|
diff --git a/third_party/blink/renderer/platform/wtf/text/string_impl.h b/third_party/blink/renderer/platform/wtf/text/string_impl.h
|
||||||
index 158d81ca9ba2..1b6aafecadef 100644
|
index 0e7c40b732ec..7c513d95a586 100644
|
||||||
--- a/third_party/blink/renderer/platform/wtf/text/string_impl.h
|
--- a/third_party/blink/renderer/platform/wtf/text/string_impl.h
|
||||||
+++ b/third_party/blink/renderer/platform/wtf/text/string_impl.h
|
+++ b/third_party/blink/renderer/platform/wtf/text/string_impl.h
|
||||||
@@ -258,21 +258,21 @@ class WTF_EXPORT StringImpl {
|
@@ -258,21 +258,21 @@ class WTF_EXPORT StringImpl {
|
||||||
|
@ -213,7 +253,7 @@ index e49dd8c81270..9e61c901cd2d 100644
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
diff --git a/url/BUILD.gn b/url/BUILD.gn
|
diff --git a/url/BUILD.gn b/url/BUILD.gn
|
||||||
index c4deb10db9ca..ecc068d7447a 100644
|
index 57bbe16c15ea..07725187c595 100644
|
||||||
--- a/url/BUILD.gn
|
--- a/url/BUILD.gn
|
||||||
+++ b/url/BUILD.gn
|
+++ b/url/BUILD.gn
|
||||||
@@ -98,6 +98,10 @@ component("url") {
|
@@ -98,6 +98,10 @@ component("url") {
|
||||||
|
@ -229,4 +269,3 @@ index c4deb10db9ca..ecc068d7447a 100644
|
||||||
if (is_android) {
|
if (is_android) {
|
||||||
--
|
--
|
||||||
2.17.0
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
From 0dbac64c4877f7783726d3bc04f332a1491285b7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Anonymous <anonymous@electronjs.org>
|
||||||
|
Date: Thu, 20 Sep 2018 17:45:44 -0700
|
||||||
|
Subject: desktop_screen_win.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/ui/views/widget/desktop_aura/desktop_screen_win.cc b/ui/views/widget/desktop_aura/desktop_screen_win.cc
|
diff --git a/ui/views/widget/desktop_aura/desktop_screen_win.cc b/ui/views/widget/desktop_aura/desktop_screen_win.cc
|
||||||
index f772f64d656e..7d13f9f81b6c 100644
|
index f772f64d656e..7d13f9f81b6c 100644
|
||||||
--- a/ui/views/widget/desktop_aura/desktop_screen_win.cc
|
--- a/ui/views/widget/desktop_aura/desktop_screen_win.cc
|
||||||
|
@ -11,3 +17,6 @@ index f772f64d656e..7d13f9f81b6c 100644
|
||||||
aura::WindowTreeHost* host = window->GetHost();
|
aura::WindowTreeHost* host = window->GetHost();
|
||||||
return host ? host->GetAcceleratedWidget() : NULL;
|
return host ? host->GetAcceleratedWidget() : NULL;
|
||||||
}
|
}
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,24 @@
|
||||||
|
From 2067d5a31905f889d7537c4a4ab680577bb5e75f Mon Sep 17 00:00:00 2001
|
||||||
|
From: Heilig Benedek <benecene@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:47:54 -0700
|
||||||
|
Subject: disable-redraw-lock.patch
|
||||||
|
|
||||||
|
Chromium uses a custom window titlebar implementation on Windows when DWM
|
||||||
|
is disabled (Windows 7 and earlier, non Aero theme). The native titlebar
|
||||||
|
sometimes painted over this custom titlebar, so a workaround was put in
|
||||||
|
place to lock redraws in reaction to certain events if DWM is disabled,
|
||||||
|
since the code assumes that in that case, the custom titlebar is painted.
|
||||||
|
Electron forces the use of the native titlebar, which the workaround doesn't
|
||||||
|
take into account, and still locks redraws, causing weird repainting issues
|
||||||
|
in electron (and other applications). This patch provides a way to disable
|
||||||
|
the redraw locking mechanism, which fixes these issues. The electron issue
|
||||||
|
can be found at https://github.com/electron/electron/issues/1821
|
||||||
|
|
||||||
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
|
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
|
||||||
index cadeb2322620..3c5d1afbdfee 100644
|
index d5f442f71da7..a8f39b060115 100644
|
||||||
--- a/ui/views/win/hwnd_message_handler.cc
|
--- a/ui/views/win/hwnd_message_handler.cc
|
||||||
+++ b/ui/views/win/hwnd_message_handler.cc
|
+++ b/ui/views/win/hwnd_message_handler.cc
|
||||||
@@ -256,6 +256,10 @@ const int kSynthesizedMouseMessagesTimeDifference = 500;
|
@@ -281,6 +281,10 @@ const int kSynthesizedMouseMessagesTimeDifference = 500;
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
@ -13,7 +29,7 @@ index cadeb2322620..3c5d1afbdfee 100644
|
||||||
// A scoping class that prevents a window from being able to redraw in response
|
// A scoping class that prevents a window from being able to redraw in response
|
||||||
// to invalidations that may occur within it for the lifetime of the object.
|
// to invalidations that may occur within it for the lifetime of the object.
|
||||||
//
|
//
|
||||||
@@ -307,6 +311,7 @@ class HWNDMessageHandler::ScopedRedrawLock {
|
@@ -332,6 +336,7 @@ class HWNDMessageHandler::ScopedRedrawLock {
|
||||||
cancel_unlock_(false),
|
cancel_unlock_(false),
|
||||||
should_lock_(owner_->IsVisible() && !owner->HasChildRenderingWindow() &&
|
should_lock_(owner_->IsVisible() && !owner->HasChildRenderingWindow() &&
|
||||||
::IsWindow(hwnd_) &&
|
::IsWindow(hwnd_) &&
|
||||||
|
@ -21,7 +37,7 @@ index cadeb2322620..3c5d1afbdfee 100644
|
||||||
(!(GetWindowLong(hwnd_, GWL_STYLE) & WS_CAPTION) ||
|
(!(GetWindowLong(hwnd_, GWL_STYLE) & WS_CAPTION) ||
|
||||||
!ui::win::IsAeroGlassEnabled())) {
|
!ui::win::IsAeroGlassEnabled())) {
|
||||||
if (should_lock_)
|
if (should_lock_)
|
||||||
@@ -898,6 +903,10 @@ bool HWNDMessageHandler::HasChildRenderingWindow() {
|
@@ -940,6 +945,10 @@ bool HWNDMessageHandler::HasChildRenderingWindow() {
|
||||||
hwnd());
|
hwnd());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,10 +49,10 @@ index cadeb2322620..3c5d1afbdfee 100644
|
||||||
// HWNDMessageHandler, gfx::WindowImpl overrides:
|
// HWNDMessageHandler, gfx::WindowImpl overrides:
|
||||||
|
|
||||||
diff --git a/ui/views/win/hwnd_message_handler.h b/ui/views/win/hwnd_message_handler.h
|
diff --git a/ui/views/win/hwnd_message_handler.h b/ui/views/win/hwnd_message_handler.h
|
||||||
index 5afb32aa043c..3d17f29dff9a 100644
|
index 91afedec8e29..fa514d102538 100644
|
||||||
--- a/ui/views/win/hwnd_message_handler.h
|
--- a/ui/views/win/hwnd_message_handler.h
|
||||||
+++ b/ui/views/win/hwnd_message_handler.h
|
+++ b/ui/views/win/hwnd_message_handler.h
|
||||||
@@ -177,6 +177,8 @@ class VIEWS_EXPORT HWNDMessageHandler : public gfx::WindowImpl,
|
@@ -181,6 +181,8 @@ class VIEWS_EXPORT HWNDMessageHandler : public gfx::WindowImpl,
|
||||||
typedef std::set<DWORD> TouchIDs;
|
typedef std::set<DWORD> TouchIDs;
|
||||||
enum class DwmFrameState { OFF, ON };
|
enum class DwmFrameState { OFF, ON };
|
||||||
|
|
||||||
|
@ -58,3 +74,6 @@ index 1b2d98a85738..dd080180aebd 100644
|
||||||
// Returns who we want to be drawing the frame. Either the system (Windows)
|
// Returns who we want to be drawing the frame. Either the system (Windows)
|
||||||
// will handle it or Chrome will custom draw it.
|
// will handle it or Chrome will custom draw it.
|
||||||
virtual FrameMode GetFrameMode() const = 0;
|
virtual FrameMode GetFrameMode() const = 0;
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,19 @@
|
||||||
|
From 4d1fb504c014998e2cc80b63db3a820dd73adbec Mon Sep 17 00:00:00 2001
|
||||||
|
From: zcbenz <zcbenz@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:50:27 -0700
|
||||||
|
Subject: disable_detach_webview_frame.patch
|
||||||
|
|
||||||
|
Don't detach the frame for webview, we will manage the WebContents
|
||||||
|
manually.
|
||||||
|
This is part of the fixes for https://github.com/electron/electron/issues/14211.
|
||||||
|
We should revisit this bug after upgrading to newer versions of Chrome,
|
||||||
|
this patch was introduced in Chrome 66.
|
||||||
|
|
||||||
diff --git a/content/browser/frame_host/render_frame_proxy_host.cc b/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 838bc1e20c30..2aa16fbf19fc 100644
|
index b06a4b9242d3..b7793aaa094a 100644
|
||||||
--- a/content/browser/frame_host/render_frame_proxy_host.cc
|
--- a/content/browser/frame_host/render_frame_proxy_host.cc
|
||||||
+++ b/content/browser/frame_host/render_frame_proxy_host.cc
|
+++ b/content/browser/frame_host/render_frame_proxy_host.cc
|
||||||
@@ -260,6 +260,12 @@ void RenderFrameProxyHost::SetDestructionCallback(
|
@@ -286,6 +286,12 @@ void RenderFrameProxyHost::SetDestructionCallback(
|
||||||
|
|
||||||
void RenderFrameProxyHost::OnDetach() {
|
void RenderFrameProxyHost::OnDetach() {
|
||||||
if (frame_tree_node_->render_manager()->ForInnerDelegate()) {
|
if (frame_tree_node_->render_manager()->ForInnerDelegate()) {
|
||||||
|
@ -15,3 +26,6 @@ index 838bc1e20c30..2aa16fbf19fc 100644
|
||||||
// Only main frame proxy can detach for inner WebContents.
|
// Only main frame proxy can detach for inner WebContents.
|
||||||
DCHECK(frame_tree_node_->IsMainFrame());
|
DCHECK(frame_tree_node_->IsMainFrame());
|
||||||
frame_tree_node_->render_manager()->RemoveOuterDelegateFrame();
|
frame_tree_node_->render_manager()->RemoveOuterDelegateFrame();
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
|
From 790e1e19af133252e95e3a4de8c8e7a3a011bf02 Mon Sep 17 00:00:00 2001
|
||||||
|
From: deepak1556 <hop2deep@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:50:48 -0700
|
||||||
|
Subject: disable_extensions_gn.patch
|
||||||
|
|
||||||
|
Fix build files generation when chrome extensions are disabled.
|
||||||
|
|
||||||
diff --git a/chrome/browser/apps/app_shim/BUILD.gn b/chrome/browser/apps/app_shim/BUILD.gn
|
diff --git a/chrome/browser/apps/app_shim/BUILD.gn b/chrome/browser/apps/app_shim/BUILD.gn
|
||||||
index b480129fcd7c..4f4f7d06029b 100644
|
index f8a6d1868788..350c3572ec54 100644
|
||||||
--- a/chrome/browser/apps/app_shim/BUILD.gn
|
--- a/chrome/browser/apps/app_shim/BUILD.gn
|
||||||
+++ b/chrome/browser/apps/app_shim/BUILD.gn
|
+++ b/chrome/browser/apps/app_shim/BUILD.gn
|
||||||
@@ -1,6 +1,7 @@
|
@@ -1,6 +1,7 @@
|
||||||
|
@ -19,8 +26,8 @@ index b480129fcd7c..4f4f7d06029b 100644
|
||||||
"unix_domain_socket_acceptor.cc",
|
"unix_domain_socket_acceptor.cc",
|
||||||
"unix_domain_socket_acceptor.h",
|
"unix_domain_socket_acceptor.h",
|
||||||
]
|
]
|
||||||
@@ -23,7 +22,16 @@ source_set("app_shim") {
|
@@ -24,7 +23,16 @@ source_set("app_shim") {
|
||||||
deps = [
|
"//chrome/common:mojo_bindings",
|
||||||
"//content/public/browser",
|
"//content/public/browser",
|
||||||
"//content/public/common",
|
"//content/public/common",
|
||||||
- "//extensions/browser",
|
- "//extensions/browser",
|
||||||
|
@ -39,10 +46,10 @@ index b480129fcd7c..4f4f7d06029b 100644
|
||||||
+ }
|
+ }
|
||||||
}
|
}
|
||||||
diff --git a/chrome/browser/ui/BUILD.gn b/chrome/browser/ui/BUILD.gn
|
diff --git a/chrome/browser/ui/BUILD.gn b/chrome/browser/ui/BUILD.gn
|
||||||
index c514878fafe7..bcd3432f75c9 100644
|
index 1b14d628a63b..00401612c191 100644
|
||||||
--- a/chrome/browser/ui/BUILD.gn
|
--- a/chrome/browser/ui/BUILD.gn
|
||||||
+++ b/chrome/browser/ui/BUILD.gn
|
+++ b/chrome/browser/ui/BUILD.gn
|
||||||
@@ -2495,7 +2495,10 @@ split_static_library("ui") {
|
@@ -2570,7 +2570,10 @@ split_static_library("ui") {
|
||||||
"views/tabs/window_finder_mac.mm",
|
"views/tabs/window_finder_mac.mm",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -54,3 +61,5 @@ index c514878fafe7..bcd3432f75c9 100644
|
||||||
|
|
||||||
# Truly cocoa-browser-specific sources. These are secondary UI pieces that
|
# Truly cocoa-browser-specific sources. These are secondary UI pieces that
|
||||||
# are obsolete before mac_views_browser will ever ship, so they aren't
|
# are obsolete before mac_views_browser will ever ship, so they aren't
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
|
From 624474e13fd8533e9e1f69e3d9b2d551c8fb807a Mon Sep 17 00:00:00 2001
|
||||||
|
From: Cheng Zhao <zcbenz@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:45:47 -0700
|
||||||
|
Subject: disable_hidden.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
|
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
|
||||||
index 213f32e0891f..60cfacdcf9fc 100644
|
index 9ab96c3f933b..28879dc5e9bb 100644
|
||||||
--- a/content/browser/renderer_host/render_widget_host_impl.cc
|
--- a/content/browser/renderer_host/render_widget_host_impl.cc
|
||||||
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
|
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
|
||||||
@@ -668,6 +668,9 @@ void RenderWidgetHostImpl::WasHidden() {
|
@@ -712,6 +712,9 @@ void RenderWidgetHostImpl::WasHidden() {
|
||||||
if (is_hidden_)
|
if (is_hidden_)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -13,10 +19,10 @@ index 213f32e0891f..60cfacdcf9fc 100644
|
||||||
|
|
||||||
TRACE_EVENT0("renderer_host", "RenderWidgetHostImpl::WasHidden");
|
TRACE_EVENT0("renderer_host", "RenderWidgetHostImpl::WasHidden");
|
||||||
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
|
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
|
||||||
index 316385180c60..afce0525e89d 100644
|
index 4af5870e7c40..f2e19fe92e56 100644
|
||||||
--- a/content/browser/renderer_host/render_widget_host_impl.h
|
--- a/content/browser/renderer_host/render_widget_host_impl.h
|
||||||
+++ b/content/browser/renderer_host/render_widget_host_impl.h
|
+++ b/content/browser/renderer_host/render_widget_host_impl.h
|
||||||
@@ -149,6 +149,9 @@ class CONTENT_EXPORT RenderWidgetHostImpl
|
@@ -154,6 +154,9 @@ class CONTENT_EXPORT RenderWidgetHostImpl
|
||||||
// RenderWidgetHostImpl.
|
// RenderWidgetHostImpl.
|
||||||
static RenderWidgetHostImpl* From(RenderWidgetHost* rwh);
|
static RenderWidgetHostImpl* From(RenderWidgetHost* rwh);
|
||||||
|
|
||||||
|
@ -26,3 +32,6 @@ index 316385180c60..afce0525e89d 100644
|
||||||
void set_hung_renderer_delay(const base::TimeDelta& delay) {
|
void set_hung_renderer_delay(const base::TimeDelta& delay) {
|
||||||
hung_renderer_delay_ = delay;
|
hung_renderer_delay_ = delay;
|
||||||
}
|
}
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,21 +1,30 @@
|
||||||
|
From 56f1078f33969f1d3c097b398a10d251ea774add Mon Sep 17 00:00:00 2001
|
||||||
|
From: Cheng Zhao <zcbenz@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:48:27 -0700
|
||||||
|
Subject: disable_scroll_begin_dcheck.patch
|
||||||
|
|
||||||
|
When testing https://github.com/electron/electron/issues/13137 I have met
|
||||||
|
these assertions. I grouped them together since they are all related to the
|
||||||
|
ScrollBegin event.
|
||||||
|
|
||||||
diff --git a/content/browser/renderer_host/input/mouse_wheel_event_queue.cc b/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
|
diff --git a/content/browser/renderer_host/input/mouse_wheel_event_queue.cc b/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
|
||||||
index c3f4641e8525..dd50ff1c2557 100644
|
index 702915772e4f..71fb66a7401c 100644
|
||||||
--- a/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
|
--- a/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
|
||||||
+++ b/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
|
+++ b/content/browser/renderer_host/input/mouse_wheel_event_queue.cc
|
||||||
@@ -362,7 +362,7 @@ void MouseWheelEventQueue::SendScrollBegin(
|
@@ -295,7 +295,7 @@ void MouseWheelEventQueue::SendScrollEnd(WebGestureEvent update_event,
|
||||||
(synthetic && !needs_scroll_begin_when_scroll_latching_disabled_) ||
|
void MouseWheelEventQueue::SendScrollBegin(
|
||||||
needs_scroll_begin_when_scroll_latching_disabled_);
|
const WebGestureEvent& gesture_update,
|
||||||
|
bool synthetic) {
|
||||||
- DCHECK(!client_->IsWheelScrollInProgress());
|
- DCHECK(!client_->IsWheelScrollInProgress());
|
||||||
+ // DCHECK(!client_->IsWheelScrollInProgress());
|
+ // DCHECK(!client_->IsWheelScrollInProgress());
|
||||||
|
|
||||||
WebGestureEvent scroll_begin(gesture_update);
|
WebGestureEvent scroll_begin(gesture_update);
|
||||||
scroll_begin.SetType(WebInputEvent::kGestureScrollBegin);
|
scroll_begin.SetType(WebInputEvent::kGestureScrollBegin);
|
||||||
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
|
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
|
||||||
index 9b930b8acd1d..f3d356f86f15 100644
|
index 28879dc5e9bb..222b5d7e91ec 100644
|
||||||
--- a/content/browser/renderer_host/render_widget_host_impl.cc
|
--- a/content/browser/renderer_host/render_widget_host_impl.cc
|
||||||
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
|
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
|
||||||
@@ -1263,8 +1263,8 @@ void RenderWidgetHostImpl::ForwardGestureEventWithLatencyInfo(
|
@@ -1321,8 +1321,8 @@ void RenderWidgetHostImpl::ForwardGestureEventWithLatencyInfo(
|
||||||
// GSB and GSU events instead of sending them to the renderer and continues
|
// GSB and GSU events instead of sending them to the renderer and continues
|
||||||
// to progress the fling. So, the renderer doesn't receive two GSB events
|
// to progress the fling. So, the renderer doesn't receive two GSB events
|
||||||
// without any GSE in between.
|
// without any GSE in between.
|
||||||
|
@ -26,3 +35,6 @@ index 9b930b8acd1d..f3d356f86f15 100644
|
||||||
is_in_gesture_scroll_[gesture_event.SourceDevice()] = true;
|
is_in_gesture_scroll_[gesture_event.SourceDevice()] = true;
|
||||||
} else if (gesture_event.GetType() ==
|
} else if (gesture_event.GetType() ==
|
||||||
blink::WebInputEvent::kGestureScrollEnd) {
|
blink::WebInputEvent::kGestureScrollEnd) {
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,18 @@
|
||||||
|
From 1294052a41b0f304e45e5bea986b194bee511d49 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Aleksei Kuzmin <alkuzmin@microsoft.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:47:33 -0700
|
||||||
|
Subject: disable_user_gesture_requirement_for_beforeunload_dialogs.patch
|
||||||
|
|
||||||
|
See https://github.com/electron/electron/issues/10754
|
||||||
|
|
||||||
diff --git a/third_party/blink/renderer/core/dom/document.cc b/third_party/blink/renderer/core/dom/document.cc
|
diff --git a/third_party/blink/renderer/core/dom/document.cc b/third_party/blink/renderer/core/dom/document.cc
|
||||||
index 9abb526ef011..296abf0a1b93 100644
|
index 5bfe30b8b880..70129284e60b 100644
|
||||||
--- a/third_party/blink/renderer/core/dom/document.cc
|
--- a/third_party/blink/renderer/core/dom/document.cc
|
||||||
+++ b/third_party/blink/renderer/core/dom/document.cc
|
+++ b/third_party/blink/renderer/core/dom/document.cc
|
||||||
@@ -3442,7 +3442,9 @@ bool Document::DispatchBeforeUnloadEvent(ChromeClient& chrome_client,
|
@@ -3508,7 +3508,9 @@ bool Document::DispatchBeforeUnloadEvent(ChromeClient& chrome_client,
|
||||||
"Blocked attempt to show a 'beforeunload' confirmation panel for a "
|
|
||||||
"frame that never had a user gesture since its load. "
|
"frame that never had a user gesture since its load. "
|
||||||
"https://www.chromestatus.com/feature/5082396709879808"));
|
"https://www.chromestatus.com/feature/5082396709879808";
|
||||||
|
Intervention::GenerateReport(frame_, "BeforeUnloadNoGesture", message);
|
||||||
- return true;
|
- return true;
|
||||||
+ // TODO(alexeykuzmin): Uncomment `return true` when Electron tests are fixed.
|
+ // TODO(alexeykuzmin): Uncomment `return true` when Electron tests are fixed.
|
||||||
+ // See https://github.com/electron/electron/issues/10754
|
+ // See https://github.com/electron/electron/issues/10754
|
||||||
|
@ -13,3 +20,6 @@ index 9abb526ef011..296abf0a1b93 100644
|
||||||
}
|
}
|
||||||
|
|
||||||
if (did_allow_navigation) {
|
if (did_allow_navigation) {
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
|
From 71828a0d7703c56120f127ca42f097fda647ef1c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Cheng Zhao <zcbenz@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:45:55 -0700
|
||||||
|
Subject: dom_storage_map.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/content/common/dom_storage/dom_storage_map.cc b/content/common/dom_storage/dom_storage_map.cc
|
diff --git a/content/common/dom_storage/dom_storage_map.cc b/content/common/dom_storage/dom_storage_map.cc
|
||||||
index 0a6b0176a982..35a1c3c11a58 100644
|
index fd088fb170be..a9e4b3375e9b 100644
|
||||||
--- a/content/common/dom_storage/dom_storage_map.cc
|
--- a/content/common/dom_storage/dom_storage_map.cc
|
||||||
+++ b/content/common/dom_storage/dom_storage_map.cc
|
+++ b/content/common/dom_storage/dom_storage_map.cc
|
||||||
@@ -182,10 +182,12 @@ bool DOMStorageMap::SetItemInternal(MapType* map_type,
|
@@ -185,10 +185,12 @@ bool DOMStorageMap::SetItemInternal(MapType* map_type,
|
||||||
size_t new_item_size = size_in_storage(key, value);
|
size_t new_item_size = size_in_storage(key, value);
|
||||||
size_t new_storage_used = storage_used_ - old_item_size + new_item_size;
|
size_t new_storage_used = storage_used_ - old_item_size + new_item_size;
|
||||||
|
|
||||||
|
@ -15,3 +21,6 @@ index 0a6b0176a982..35a1c3c11a58 100644
|
||||||
|
|
||||||
(*map_type)[key] = value;
|
(*map_type)[key] = value;
|
||||||
ResetKeyIterator();
|
ResetKeyIterator();
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
|
From dab99d95ea1d84d1bb263029096a23634b795a94 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Shelley Vohr <shelley.vohr@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:49:52 -0700
|
||||||
|
Subject: enable_osr_components.patch
|
||||||
|
|
||||||
|
Add MouseWheelPhaseHandler for OSR.
|
||||||
|
|
||||||
diff --git a/content/browser/renderer_host/input/mouse_wheel_phase_handler.h b/content/browser/renderer_host/input/mouse_wheel_phase_handler.h
|
diff --git a/content/browser/renderer_host/input/mouse_wheel_phase_handler.h b/content/browser/renderer_host/input/mouse_wheel_phase_handler.h
|
||||||
index 4f7c03d62930..25b74d9b5236 100644
|
index 305095fc420e..f5ca4eda4a66 100644
|
||||||
--- a/content/browser/renderer_host/input/mouse_wheel_phase_handler.h
|
--- a/content/browser/renderer_host/input/mouse_wheel_phase_handler.h
|
||||||
+++ b/content/browser/renderer_host/input/mouse_wheel_phase_handler.h
|
+++ b/content/browser/renderer_host/input/mouse_wheel_phase_handler.h
|
||||||
@@ -7,6 +7,7 @@
|
@@ -7,6 +7,7 @@
|
||||||
|
@ -19,3 +26,6 @@ index 4f7c03d62930..25b74d9b5236 100644
|
||||||
public:
|
public:
|
||||||
MouseWheelPhaseHandler(RenderWidgetHostViewBase* const host_view);
|
MouseWheelPhaseHandler(RenderWidgetHostViewBase* const host_view);
|
||||||
~MouseWheelPhaseHandler() {}
|
~MouseWheelPhaseHandler() {}
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
From 40198545a62b90741d1adf0e1f61e1fb43b4b73a Mon Sep 17 00:00:00 2001
|
||||||
|
From: Aleksei Kuzmin <alkuzmin@microsoft.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:50:03 -0700
|
||||||
|
Subject: enable_widevine.patch
|
||||||
|
|
||||||
|
Turns `enable_widevine` flag on by default on Mac and Windows.
|
||||||
|
Electron needs that flag to be enabled on those paltforms,
|
||||||
|
but there's no way to conditionally set it during a `gn gen` call.
|
||||||
|
|
||||||
diff --git a/third_party/widevine/cdm/widevine.gni b/third_party/widevine/cdm/widevine.gni
|
diff --git a/third_party/widevine/cdm/widevine.gni b/third_party/widevine/cdm/widevine.gni
|
||||||
index 82a93622585a..cbd10bed9f3b 100644
|
index 82a93622585a..cbd10bed9f3b 100644
|
||||||
--- a/third_party/widevine/cdm/widevine.gni
|
--- a/third_party/widevine/cdm/widevine.gni
|
||||||
|
@ -11,3 +20,6 @@ index 82a93622585a..cbd10bed9f3b 100644
|
||||||
}
|
}
|
||||||
|
|
||||||
enable_widevine_cdm_host_verification =
|
enable_widevine_cdm_host_verification =
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,22 +1,24 @@
|
||||||
|
From 2f416aedbe6580b1ef07a2f76c22bcd9d1ef5942 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Aleksei Kuzmin <alkuzmin@microsoft.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:50:45 -0700
|
||||||
|
Subject: exclude-a-few-test-files-from-build.patch
|
||||||
|
|
||||||
|
Compilation of those files fails with the Chromium 67.
|
||||||
|
Remove the patch during the Chromium 68 upgrade.
|
||||||
|
|
||||||
diff --git a/third_party/blink/renderer/platform/BUILD.gn b/third_party/blink/renderer/platform/BUILD.gn
|
diff --git a/third_party/blink/renderer/platform/BUILD.gn b/third_party/blink/renderer/platform/BUILD.gn
|
||||||
index 05177001104e..5b5e00e9ef2d 100644
|
index d5d8e48305ba..070c6be426f4 100644
|
||||||
--- a/third_party/blink/renderer/platform/BUILD.gn
|
--- a/third_party/blink/renderer/platform/BUILD.gn
|
||||||
+++ b/third_party/blink/renderer/platform/BUILD.gn
|
+++ b/third_party/blink/renderer/platform/BUILD.gn
|
||||||
@@ -1797,7 +1797,7 @@ jumbo_source_set("blink_platform_unittests_sources") {
|
@@ -1790,7 +1790,7 @@ jumbo_source_set("blink_platform_unittests_sources") {
|
||||||
"graphics/compositing/chunk_to_layer_mapper_test.cc",
|
"graphics/paint/drawing_display_item_test.cc",
|
||||||
"graphics/compositing/composited_layer_raster_invalidator_test.cc",
|
"graphics/paint/drawing_recorder_test.cc",
|
||||||
"graphics/compositing/paint_artifact_compositor_test.cc",
|
"graphics/paint/float_clip_rect_test.cc",
|
||||||
- "graphics/compositing/paint_chunks_to_cc_layer_test.cc",
|
- "graphics/paint/geometry_mapper_test.cc",
|
||||||
+ # "graphics/compositing/paint_chunks_to_cc_layer_test.cc",
|
+ #"graphics/paint/geometry_mapper_test.cc",
|
||||||
"graphics/compositor_element_id_test.cc",
|
"graphics/paint/paint_chunk_test.cc",
|
||||||
"graphics/contiguous_container_test.cc",
|
"graphics/paint/paint_chunker_test.cc",
|
||||||
"graphics/decoding_image_generator_test.cc",
|
"graphics/paint/paint_controller_test.cc",
|
||||||
@@ -1873,7 +1873,7 @@ jumbo_source_set("blink_platform_unittests_sources") {
|
--
|
||||||
"text/date_time_format_test.cc",
|
2.17.0
|
||||||
"text/hyphenation_test.cc",
|
|
||||||
"text/icu_error_test.cc",
|
|
||||||
- "text/line_ending_test.cc",
|
|
||||||
+ # "text/line_ending_test.cc",
|
|
||||||
"text/platform_locale_test.cc",
|
|
||||||
"text/segmented_string_test.cc",
|
|
||||||
"text/suffix_tree_test.cc",
|
|
||||||
|
|
|
@ -1,86 +0,0 @@
|
||||||
diff --git a/build/config/ios/rules.gni b/build/config/ios/rules.gni
|
|
||||||
index df6033b..7fdc931 100644
|
|
||||||
--- a/build/config/ios/rules.gni
|
|
||||||
+++ b/build/config/ios/rules.gni
|
|
||||||
@@ -1805,10 +1805,15 @@
|
|
||||||
# Xcode needs those two framework installed in the application (and signed)
|
|
||||||
# for the XCTest to run, so install them using extra_system_frameworks.
|
|
||||||
_ios_platform_library = "$ios_sdk_platform_path/Developer/Library"
|
|
||||||
- extra_system_frameworks = [
|
|
||||||
- "$_ios_platform_library/Frameworks/XCTest.framework",
|
|
||||||
- "$_ios_platform_library/PrivateFrameworks/IDEBundleInjection.framework",
|
|
||||||
- ]
|
|
||||||
+ extra_system_frameworks =
|
|
||||||
+ [ "$_ios_platform_library/Frameworks/XCTest.framework" ]
|
|
||||||
+
|
|
||||||
+ # TODO: Remove this once support for Xcode 9.x is dropped.
|
|
||||||
+ if (xcode_version_int < 1000) {
|
|
||||||
+ extra_system_frameworks += [
|
|
||||||
+ "$_ios_platform_library/PrivateFrameworks/IDEBundleInjection.framework",
|
|
||||||
+ ]
|
|
||||||
+ }
|
|
||||||
|
|
||||||
_xctest_bundle = _xctest_target + "_bundle"
|
|
||||||
if (current_toolchain == default_toolchain) {
|
|
||||||
diff --git a/build/config/mac/sdk_info.py b/build/config/mac/sdk_info.py
|
|
||||||
index 8a9edc1..46dcec8 100644
|
|
||||||
--- a/build/config/mac/sdk_info.py
|
|
||||||
+++ b/build/config/mac/sdk_info.py
|
|
||||||
@@ -3,6 +3,8 @@
|
|
||||||
# found in the LICENSE file.
|
|
||||||
|
|
||||||
import argparse
|
|
||||||
+import doctest
|
|
||||||
+import itertools
|
|
||||||
import os
|
|
||||||
import subprocess
|
|
||||||
import sys
|
|
||||||
@@ -10,16 +12,32 @@
|
|
||||||
# This script prints information about the build system, the operating
|
|
||||||
# system and the iOS or Mac SDK (depending on the platform "iphonesimulator",
|
|
||||||
# "iphoneos" or "macosx" generally).
|
|
||||||
-#
|
|
||||||
-# In the GYP build, this is done inside GYP itself based on the SDKROOT
|
|
||||||
-# variable.
|
|
||||||
+
|
|
||||||
+def SplitVersion(version):
|
|
||||||
+ """Splits the Xcode version to 3 values.
|
|
||||||
+
|
|
||||||
+ >>> list(SplitVersion('8.2.1.1'))
|
|
||||||
+ ['8', '2', '1']
|
|
||||||
+ >>> list(SplitVersion('9.3'))
|
|
||||||
+ ['9', '3', '0']
|
|
||||||
+ >>> list(SplitVersion('10.0'))
|
|
||||||
+ ['10', '0', '0']
|
|
||||||
+ """
|
|
||||||
+ version = version.split('.')
|
|
||||||
+ return itertools.islice(itertools.chain(version, itertools.repeat('0')), 0, 3)
|
|
||||||
|
|
||||||
def FormatVersion(version):
|
|
||||||
- """Converts Xcode version to a format required for Info.plist."""
|
|
||||||
- version = version.replace('.', '')
|
|
||||||
- version = version + '0' * (3 - len(version))
|
|
||||||
- return version.zfill(4)
|
|
||||||
+ """Converts Xcode version to a format required for DTXcode in Info.plist
|
|
||||||
|
|
||||||
+ >>> FormatVersion('8.2.1')
|
|
||||||
+ '0821'
|
|
||||||
+ >>> FormatVersion('9.3')
|
|
||||||
+ '0930'
|
|
||||||
+ >>> FormatVersion('10.0')
|
|
||||||
+ '1000'
|
|
||||||
+ """
|
|
||||||
+ major, minor, patch = SplitVersion(version)
|
|
||||||
+ return ('%2s%s%s' % (major, minor, patch)).replace(' ', '0')
|
|
||||||
|
|
||||||
def FillXcodeVersion(settings):
|
|
||||||
"""Fills the Xcode version and build number into |settings|."""
|
|
||||||
@@ -53,6 +71,8 @@
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
+ doctest.testmod()
|
|
||||||
+
|
|
||||||
parser = argparse.ArgumentParser()
|
|
||||||
parser.add_argument("--developer_dir", required=False)
|
|
||||||
args, unknownargs = parser.parse_known_args()
|
|
|
@ -1,8 +1,14 @@
|
||||||
|
From 4730f77f43c648f6168db58897b4569326a75627 Mon Sep 17 00:00:00 2001
|
||||||
|
From: deepak1556 <hop2deep@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:45:59 -0700
|
||||||
|
Subject: frame_host_manager.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/content/browser/frame_host/render_frame_host_manager.cc b/content/browser/frame_host/render_frame_host_manager.cc
|
diff --git a/content/browser/frame_host/render_frame_host_manager.cc b/content/browser/frame_host/render_frame_host_manager.cc
|
||||||
index b682235b0f87..0c88f4bf86b6 100644
|
index 872e4609c94f..a59676004f24 100644
|
||||||
--- a/content/browser/frame_host/render_frame_host_manager.cc
|
--- a/content/browser/frame_host/render_frame_host_manager.cc
|
||||||
+++ b/content/browser/frame_host/render_frame_host_manager.cc
|
+++ b/content/browser/frame_host/render_frame_host_manager.cc
|
||||||
@@ -1912,6 +1912,18 @@ RenderFrameHostManager::GetSiteInstanceForNavigationRequest(
|
@@ -1960,6 +1960,18 @@ RenderFrameHostManager::GetSiteInstanceForNavigationRequest(
|
||||||
bool was_server_redirect = request.navigation_handle() &&
|
bool was_server_redirect = request.navigation_handle() &&
|
||||||
request.navigation_handle()->WasServerRedirect();
|
request.navigation_handle()->WasServerRedirect();
|
||||||
|
|
||||||
|
@ -21,7 +27,7 @@ index b682235b0f87..0c88f4bf86b6 100644
|
||||||
if (frame_tree_node_->IsMainFrame()) {
|
if (frame_tree_node_->IsMainFrame()) {
|
||||||
// Renderer-initiated main frame navigations that may require a
|
// Renderer-initiated main frame navigations that may require a
|
||||||
// SiteInstance swap are sent to the browser via the OpenURL IPC and are
|
// SiteInstance swap are sent to the browser via the OpenURL IPC and are
|
||||||
@@ -1931,6 +1943,19 @@ RenderFrameHostManager::GetSiteInstanceForNavigationRequest(
|
@@ -1979,6 +1991,19 @@ RenderFrameHostManager::GetSiteInstanceForNavigationRequest(
|
||||||
request.common_params().url));
|
request.common_params().url));
|
||||||
no_renderer_swap_allowed |=
|
no_renderer_swap_allowed |=
|
||||||
request.from_begin_navigation() && !can_renderer_initiate_transfer;
|
request.from_begin_navigation() && !can_renderer_initiate_transfer;
|
||||||
|
@ -41,7 +47,7 @@ index b682235b0f87..0c88f4bf86b6 100644
|
||||||
} else {
|
} else {
|
||||||
// Subframe navigations will use the current renderer, unless specifically
|
// Subframe navigations will use the current renderer, unless specifically
|
||||||
// allowed to swap processes.
|
// allowed to swap processes.
|
||||||
@@ -1942,18 +1967,9 @@ RenderFrameHostManager::GetSiteInstanceForNavigationRequest(
|
@@ -1990,18 +2015,9 @@ RenderFrameHostManager::GetSiteInstanceForNavigationRequest(
|
||||||
if (no_renderer_swap_allowed)
|
if (no_renderer_swap_allowed)
|
||||||
return scoped_refptr<SiteInstance>(current_site_instance);
|
return scoped_refptr<SiteInstance>(current_site_instance);
|
||||||
|
|
||||||
|
@ -62,10 +68,10 @@ index b682235b0f87..0c88f4bf86b6 100644
|
||||||
request.state() == NavigationRequest::FAILED,
|
request.state() == NavigationRequest::FAILED,
|
||||||
request.restore_type() != RestoreType::NONE, request.is_view_source(),
|
request.restore_type() != RestoreType::NONE, request.is_view_source(),
|
||||||
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
|
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
|
||||||
index 3ca627448e33..7d0c9ed7e1af 100644
|
index 3be31602689c..2c22cb1cfe0d 100644
|
||||||
--- a/content/public/browser/content_browser_client.h
|
--- a/content/public/browser/content_browser_client.h
|
||||||
+++ b/content/public/browser/content_browser_client.h
|
+++ b/content/public/browser/content_browser_client.h
|
||||||
@@ -186,6 +186,15 @@ class CONTENT_EXPORT ContentBrowserClient {
|
@@ -196,6 +196,15 @@ class CONTENT_EXPORT ContentBrowserClient {
|
||||||
public:
|
public:
|
||||||
virtual ~ContentBrowserClient() {}
|
virtual ~ContentBrowserClient() {}
|
||||||
|
|
||||||
|
@ -81,3 +87,6 @@ index 3ca627448e33..7d0c9ed7e1af 100644
|
||||||
// Allows the embedder to set any number of custom BrowserMainParts
|
// Allows the embedder to set any number of custom BrowserMainParts
|
||||||
// implementations for the browser startup code. See comments in
|
// implementations for the browser startup code. See comments in
|
||||||
// browser_main_parts.h.
|
// browser_main_parts.h.
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
|
From eaf64921a97d513151d48ab01975b5ac966a7e34 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Cheng Zhao <zcbenz@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:47:44 -0700
|
||||||
|
Subject: gin_enable_disable_v8_platform.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/gin/isolate_holder.cc b/gin/isolate_holder.cc
|
diff --git a/gin/isolate_holder.cc b/gin/isolate_holder.cc
|
||||||
index 076d137eb7cf..c10c3b0be66b 100644
|
index e3a23cf30e42..e099fd3f03e5 100644
|
||||||
--- a/gin/isolate_holder.cc
|
--- a/gin/isolate_holder.cc
|
||||||
+++ b/gin/isolate_holder.cc
|
+++ b/gin/isolate_holder.cc
|
||||||
@@ -119,9 +119,10 @@ IsolateHolder::~IsolateHolder() {
|
@@ -116,9 +116,10 @@ IsolateHolder::~IsolateHolder() {
|
||||||
void IsolateHolder::Initialize(ScriptMode mode,
|
void IsolateHolder::Initialize(ScriptMode mode,
|
||||||
V8ExtrasMode v8_extras_mode,
|
V8ExtrasMode v8_extras_mode,
|
||||||
v8::ArrayBuffer::Allocator* allocator,
|
v8::ArrayBuffer::Allocator* allocator,
|
||||||
|
@ -16,10 +22,10 @@ index 076d137eb7cf..c10c3b0be66b 100644
|
||||||
g_reference_table = reference_table;
|
g_reference_table = reference_table;
|
||||||
}
|
}
|
||||||
diff --git a/gin/public/isolate_holder.h b/gin/public/isolate_holder.h
|
diff --git a/gin/public/isolate_holder.h b/gin/public/isolate_holder.h
|
||||||
index 2509aca609f9..94003c6031cf 100644
|
index a70ad1ce51a9..84cf66e6e9cd 100644
|
||||||
--- a/gin/public/isolate_holder.h
|
--- a/gin/public/isolate_holder.h
|
||||||
+++ b/gin/public/isolate_holder.h
|
+++ b/gin/public/isolate_holder.h
|
||||||
@@ -84,7 +84,8 @@ class GIN_EXPORT IsolateHolder {
|
@@ -83,7 +83,8 @@ class GIN_EXPORT IsolateHolder {
|
||||||
static void Initialize(ScriptMode mode,
|
static void Initialize(ScriptMode mode,
|
||||||
V8ExtrasMode v8_extras_mode,
|
V8ExtrasMode v8_extras_mode,
|
||||||
v8::ArrayBuffer::Allocator* allocator,
|
v8::ArrayBuffer::Allocator* allocator,
|
||||||
|
@ -64,3 +70,6 @@ index 6f3265ba4d06..29f28bebbdcd 100644
|
||||||
|
|
||||||
// Get address and size information for currently loaded snapshot.
|
// Get address and size information for currently loaded snapshot.
|
||||||
// If no snapshot is loaded, the return values are null for addresses
|
// If no snapshot is loaded, the return values are null for addresses
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
From cac9e74e69a7f46b9e1f7b719b17e9a7167d3836 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jeremy Apthorp <nornagon@nornagon.net>
|
||||||
|
Date: Thu, 20 Sep 2018 17:48:38 -0700
|
||||||
|
Subject: gtk_visibility.patch
|
||||||
|
|
||||||
|
Allow electron and brightray to depend on GTK in the GN build.
|
||||||
|
|
||||||
diff --git a/build/config/linux/gtk/BUILD.gn b/build/config/linux/gtk/BUILD.gn
|
diff --git a/build/config/linux/gtk/BUILD.gn b/build/config/linux/gtk/BUILD.gn
|
||||||
index deae4d3455a8..fd5d906b98b0 100644
|
index deae4d3455a8..fd5d906b98b0 100644
|
||||||
--- a/build/config/linux/gtk/BUILD.gn
|
--- a/build/config/linux/gtk/BUILD.gn
|
||||||
|
@ -11,3 +18,6 @@ index deae4d3455a8..fd5d906b98b0 100644
|
||||||
"//examples:peerconnection_client",
|
"//examples:peerconnection_client",
|
||||||
"//gpu/gles2_conform_support:gles2_conform_test_windowless",
|
"//gpu/gles2_conform_support:gles2_conform_test_windowless",
|
||||||
"//remoting/host",
|
"//remoting/host",
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,16 @@
|
||||||
|
From 6b31ce372295634832d0c2aa28534c8f4cc885f3 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Zac Walker <zac.walker@microsoft.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:49:55 -0700
|
||||||
|
Subject: ignore_rc_check.patch
|
||||||
|
|
||||||
|
Dont compare RC.exe and RC.py output.
|
||||||
|
FIXME: It has to be reverted once the script is fixed.
|
||||||
|
|
||||||
diff --git a/build/toolchain/win/tool_wrapper.py b/build/toolchain/win/tool_wrapper.py
|
diff --git a/build/toolchain/win/tool_wrapper.py b/build/toolchain/win/tool_wrapper.py
|
||||||
index 801d7a9b8e03..7b54f8dceb36 100644
|
index ee21eb4b194b..ab98a033a61c 100644
|
||||||
--- a/build/toolchain/win/tool_wrapper.py
|
--- a/build/toolchain/win/tool_wrapper.py
|
||||||
+++ b/build/toolchain/win/tool_wrapper.py
|
+++ b/build/toolchain/win/tool_wrapper.py
|
||||||
@@ -254,7 +254,11 @@ class WinTool(object):
|
@@ -231,7 +231,11 @@ class WinTool(object):
|
||||||
if rc_exe_exit_code == 0:
|
if rc_exe_exit_code == 0:
|
||||||
import filecmp
|
import filecmp
|
||||||
# Strip "/fo" prefix.
|
# Strip "/fo" prefix.
|
||||||
|
@ -15,3 +23,6 @@ index 801d7a9b8e03..7b54f8dceb36 100644
|
||||||
return rc_exe_exit_code
|
return rc_exe_exit_code
|
||||||
|
|
||||||
def ExecActionWrapper(self, arch, rspfile, *dirname):
|
def ExecActionWrapper(self, arch, rspfile, *dirname):
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
From 070bbbe44c20c52f5e12b04b01fc101a42633119 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jeremy Apthorp <jeremya@chromium.org>
|
||||||
|
Date: Thu, 20 Sep 2018 17:50:38 -0700
|
||||||
|
Subject: leveldb_ssize_t.patch
|
||||||
|
|
||||||
|
Fix conflict between leveldb & node's definition of ssize_t on
|
||||||
|
Windows by preventing leveldb from re-defining the type if it's
|
||||||
|
already defined.
|
||||||
|
|
||||||
diff --git a/third_party/leveldatabase/port/port_chromium.h b/third_party/leveldatabase/port/port_chromium.h
|
diff --git a/third_party/leveldatabase/port/port_chromium.h b/third_party/leveldatabase/port/port_chromium.h
|
||||||
index a7c449eba19c..acbce7efd582 100644
|
index a7c449eba19c..acbce7efd582 100644
|
||||||
--- a/third_party/leveldatabase/port/port_chromium.h
|
--- a/third_party/leveldatabase/port/port_chromium.h
|
||||||
|
@ -14,3 +23,6 @@ index a7c449eba19c..acbce7efd582 100644
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace leveldb {
|
namespace leveldb {
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
From 4eacd7975250d8954e461f880d6bb97dcb4b003d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jeremy Apthorp <nornagon@nornagon.net>
|
||||||
|
Date: Thu, 20 Sep 2018 17:48:31 -0700
|
||||||
|
Subject: libgtkui_export.patch
|
||||||
|
|
||||||
|
Export libgtkui symbols for the GN component build.
|
||||||
|
|
||||||
diff --git a/chrome/browser/ui/libgtkui/app_indicator_icon.h b/chrome/browser/ui/libgtkui/app_indicator_icon.h
|
diff --git a/chrome/browser/ui/libgtkui/app_indicator_icon.h b/chrome/browser/ui/libgtkui/app_indicator_icon.h
|
||||||
index 7815fbb2cea8..f17a5c59e64b 100644
|
index 7815fbb2cea8..f17a5c59e64b 100644
|
||||||
--- a/chrome/browser/ui/libgtkui/app_indicator_icon.h
|
--- a/chrome/browser/ui/libgtkui/app_indicator_icon.h
|
||||||
|
@ -41,7 +48,7 @@ index e4e0da40981c..af028715ada9 100644
|
||||||
Gtk2StatusIcon(const gfx::ImageSkia& image, const base::string16& tool_tip);
|
Gtk2StatusIcon(const gfx::ImageSkia& image, const base::string16& tool_tip);
|
||||||
~Gtk2StatusIcon() override;
|
~Gtk2StatusIcon() override;
|
||||||
diff --git a/chrome/browser/ui/libgtkui/gtk_util.h b/chrome/browser/ui/libgtkui/gtk_util.h
|
diff --git a/chrome/browser/ui/libgtkui/gtk_util.h b/chrome/browser/ui/libgtkui/gtk_util.h
|
||||||
index 665ec57c09d5..4ccb08807fb4 100644
|
index d9f245070249..56cce5fa3e0b 100644
|
||||||
--- a/chrome/browser/ui/libgtkui/gtk_util.h
|
--- a/chrome/browser/ui/libgtkui/gtk_util.h
|
||||||
+++ b/chrome/browser/ui/libgtkui/gtk_util.h
|
+++ b/chrome/browser/ui/libgtkui/gtk_util.h
|
||||||
@@ -11,6 +11,7 @@
|
@@ -11,6 +11,7 @@
|
||||||
|
@ -52,7 +59,7 @@ index 665ec57c09d5..4ccb08807fb4 100644
|
||||||
|
|
||||||
namespace aura {
|
namespace aura {
|
||||||
class Window;
|
class Window;
|
||||||
@@ -51,10 +52,10 @@ SkColor NormalURLColor(SkColor foreground);
|
@@ -55,10 +56,10 @@ SkColor NormalURLColor(SkColor foreground);
|
||||||
// saturation than to look exactly like the foreground color.
|
// saturation than to look exactly like the foreground color.
|
||||||
SkColor SelectedURLColor(SkColor foreground, SkColor background);
|
SkColor SelectedURLColor(SkColor foreground, SkColor background);
|
||||||
|
|
||||||
|
@ -65,7 +72,7 @@ index 665ec57c09d5..4ccb08807fb4 100644
|
||||||
|
|
||||||
guint GetGdkKeyCodeForAccelerator(const ui::Accelerator& accelerator);
|
guint GetGdkKeyCodeForAccelerator(const ui::Accelerator& accelerator);
|
||||||
|
|
||||||
@@ -69,7 +70,7 @@ void TurnButtonBlue(GtkWidget* button);
|
@@ -73,7 +74,7 @@ void TurnButtonBlue(GtkWidget* button);
|
||||||
|
|
||||||
// Sets |dialog| as transient for |parent|, which will keep it on top and center
|
// Sets |dialog| as transient for |parent|, which will keep it on top and center
|
||||||
// it above |parent|. Do nothing if |parent| is nullptr.
|
// it above |parent|. Do nothing if |parent| is nullptr.
|
||||||
|
@ -74,15 +81,6 @@ index 665ec57c09d5..4ccb08807fb4 100644
|
||||||
|
|
||||||
// Gets the transient parent aura window for |dialog|.
|
// Gets the transient parent aura window for |dialog|.
|
||||||
aura::Window* GetAuraTransientParent(GtkWidget* dialog);
|
aura::Window* GetAuraTransientParent(GtkWidget* dialog);
|
||||||
@@ -190,7 +190,7 @@ void RenderBackground(const gfx::Size& size,
|
|
||||||
// Renders a background from the style context created by
|
|
||||||
// GetStyleContextFromCss(|css_selector|) into a 24x24 bitmap and
|
|
||||||
// returns the average color.
|
|
||||||
-SkColor GetBgColor(const std::string& css_selector);
|
|
||||||
+LIBGTKUI_EXPORT SkColor GetBgColor(const std::string& css_selector);
|
|
||||||
|
|
||||||
// Renders the border from the style context created by
|
|
||||||
// GetStyleContextFromCss(|css_selector|) into a 24x24 bitmap and
|
|
||||||
diff --git a/chrome/browser/ui/libgtkui/skia_utils_gtk.h b/chrome/browser/ui/libgtkui/skia_utils_gtk.h
|
diff --git a/chrome/browser/ui/libgtkui/skia_utils_gtk.h b/chrome/browser/ui/libgtkui/skia_utils_gtk.h
|
||||||
index e05fbe9d8b2f..3afca9a72ab6 100644
|
index e05fbe9d8b2f..3afca9a72ab6 100644
|
||||||
--- a/chrome/browser/ui/libgtkui/skia_utils_gtk.h
|
--- a/chrome/browser/ui/libgtkui/skia_utils_gtk.h
|
||||||
|
@ -132,3 +130,6 @@ index 8d67e1460837..95fbb27b6a81 100644
|
||||||
|
|
||||||
} // namespace unity
|
} // namespace unity
|
||||||
|
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
From 2a1f4c039a4522620daea2898870c220318d539a Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jeremy Apthorp <nornagon@nornagon.net>
|
||||||
|
Date: Thu, 20 Sep 2018 17:49:31 -0700
|
||||||
|
Subject: mas-audiodeviceduck.patch
|
||||||
|
|
||||||
|
Removes usage of the AudioDeviceDuck private API.
|
||||||
|
|
||||||
diff --git a/media/audio/mac/audio_low_latency_input_mac.cc b/media/audio/mac/audio_low_latency_input_mac.cc
|
diff --git a/media/audio/mac/audio_low_latency_input_mac.cc b/media/audio/mac/audio_low_latency_input_mac.cc
|
||||||
index 53586b888d82..c1d750dbf32d 100644
|
index 53586b888d82..c1d750dbf32d 100644
|
||||||
--- a/media/audio/mac/audio_low_latency_input_mac.cc
|
--- a/media/audio/mac/audio_low_latency_input_mac.cc
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
From 715baf9c695bdfffc525cc2984306768bfa7140e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jeremy Apthorp <nornagon@nornagon.net>
|
||||||
|
Date: Thu, 20 Sep 2018 17:49:20 -0700
|
||||||
|
Subject: mas-cfisobjc.patch
|
||||||
|
|
||||||
|
Removes usage of the _CFIsObjC private API.
|
||||||
|
|
||||||
diff --git a/base/mac/foundation_util.mm b/base/mac/foundation_util.mm
|
diff --git a/base/mac/foundation_util.mm b/base/mac/foundation_util.mm
|
||||||
index 15fc15ba307e..7ca4e0ec5ca8 100644
|
index 15fc15ba307e..7ca4e0ec5ca8 100644
|
||||||
--- a/base/mac/foundation_util.mm
|
--- a/base/mac/foundation_util.mm
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
From 0680698be349b3619561c65eb072d9880e405fae Mon Sep 17 00:00:00 2001
|
From a767540b22c787e0ec6809f275e7cba5f9048792 Mon Sep 17 00:00:00 2001
|
||||||
From: Jeremy Apthorp <nornagon@nornagon.net>
|
From: Jeremy Apthorp <nornagon@nornagon.net>
|
||||||
Date: Fri, 14 Sep 2018 09:53:11 -0700
|
Date: Thu, 20 Sep 2018 17:49:24 -0700
|
||||||
Subject: apply patch: mas-cgdisplayusesforcetogray
|
Subject: mas-cgdisplayusesforcetogray.patch
|
||||||
|
|
||||||
|
Removes usage of the CGDisplayUsesForceToGray private API.
|
||||||
|
|
||||||
diff --git a/ui/display/mac/screen_mac.mm b/ui/display/mac/screen_mac.mm
|
diff --git a/ui/display/mac/screen_mac.mm b/ui/display/mac/screen_mac.mm
|
||||||
index be4f343bcd44..84fd3ec23cfa 100644
|
index 99a128511250..7200a5df74e1 100644
|
||||||
--- a/ui/display/mac/screen_mac.mm
|
--- a/ui/display/mac/screen_mac.mm
|
||||||
+++ b/ui/display/mac/screen_mac.mm
|
+++ b/ui/display/mac/screen_mac.mm
|
||||||
@@ -106,7 +106,17 @@ Display BuildDisplayForScreen(NSScreen* screen) {
|
@@ -106,7 +106,17 @@ Display BuildDisplayForScreen(NSScreen* screen) {
|
||||||
|
|
|
@ -1,8 +1,16 @@
|
||||||
|
From c7042021cfd9d4e50b107e372225a14f7492bce5 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jeremy Apthorp <nornagon@nornagon.net>
|
||||||
|
Date: Thu, 20 Sep 2018 17:49:34 -0700
|
||||||
|
Subject: mas-lssetapplicationlaunchservicesserverconnectionstatus.patch
|
||||||
|
|
||||||
|
Removes usage of the _LSSetApplicationLaunchServicesServerConnectionStatus
|
||||||
|
private API.
|
||||||
|
|
||||||
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
|
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
|
||||||
index e6a589fb90e0..64ff5e248bd7 100644
|
index f14c045d47ad..9c8751a6fe0b 100644
|
||||||
--- a/content/gpu/gpu_main.cc
|
--- a/content/gpu/gpu_main.cc
|
||||||
+++ b/content/gpu/gpu_main.cc
|
+++ b/content/gpu/gpu_main.cc
|
||||||
@@ -276,8 +276,10 @@ int GpuMain(const MainFunctionParams& parameters) {
|
@@ -274,8 +274,10 @@ int GpuMain(const MainFunctionParams& parameters) {
|
||||||
std::unique_ptr<base::MessagePump> pump(new base::MessagePumpNSRunLoop());
|
std::unique_ptr<base::MessagePump> pump(new base::MessagePumpNSRunLoop());
|
||||||
main_message_loop.reset(new base::MessageLoop(std::move(pump)));
|
main_message_loop.reset(new base::MessageLoop(std::move(pump)));
|
||||||
|
|
||||||
|
|
|
@ -1,53 +1,15 @@
|
||||||
diff --git a/third_party/blink/renderer/core/paint/theme_painter_mac.mm b/third_party/blink/renderer/core/paint/theme_painter_mac.mm
|
From b75117921e735e5d892a7320e1ebec84a2c2fd1a Mon Sep 17 00:00:00 2001
|
||||||
index dc115581a0e1..3466cfd86e9f 100644
|
From: Cheng Zhao <zcbenz@gmail.com>
|
||||||
--- a/third_party/blink/renderer/core/paint/theme_painter_mac.mm
|
Date: Thu, 20 Sep 2018 17:48:49 -0700
|
||||||
+++ b/third_party/blink/renderer/core/paint/theme_painter_mac.mm
|
Subject: mas_blink_no_private_api.patch
|
||||||
@@ -42,6 +42,7 @@
|
|
||||||
|
|
||||||
// The methods in this file are specific to the Mac OS X platform.
|
Guard usages in chromium code of private Mac APIs by MAS_BUILD, so they can
|
||||||
|
be excluded for people who want to submit their apps to the Mac App store.
|
||||||
|
|
||||||
+#ifndef MAS_BUILD
|
diff --git a/third_party/blink/renderer/core/editing/kill_ring_mac.mm b/third_party/blink/renderer/core/editing/kill_ring_mac.mm
|
||||||
// Forward declare Mac SPIs.
|
index 94afefcee81b..2ec7f04c7182 100644
|
||||||
extern "C" {
|
--- a/third_party/blink/renderer/core/editing/kill_ring_mac.mm
|
||||||
void _NSDrawCarbonThemeBezel(NSRect frame, BOOL enabled, BOOL flipped);
|
+++ b/third_party/blink/renderer/core/editing/kill_ring_mac.mm
|
||||||
@@ -51,6 +52,7 @@ void _NSDrawCarbonThemeListBox(NSRect frame,
|
|
||||||
BOOL flipped,
|
|
||||||
BOOL always_yes);
|
|
||||||
}
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
namespace blink {
|
|
||||||
|
|
||||||
@@ -73,10 +75,12 @@ bool ThemePainterMac::PaintTextField(const Node* node,
|
|
||||||
// behavior change while remaining a fragile solution.
|
|
||||||
// https://bugs.chromium.org/p/chromium/issues/detail?id=658085#c3
|
|
||||||
if (!use_ns_text_field_cell) {
|
|
||||||
+#ifndef MAS_BUILD
|
|
||||||
_NSDrawCarbonThemeBezel(
|
|
||||||
CGRect(r),
|
|
||||||
LayoutTheme::IsEnabled(node) && !LayoutTheme::IsReadOnlyControl(node),
|
|
||||||
YES);
|
|
||||||
+#endif
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -162,10 +166,12 @@ bool ThemePainterMac::PaintTextArea(const Node* node,
|
|
||||||
const PaintInfo& paint_info,
|
|
||||||
const IntRect& r) {
|
|
||||||
LocalCurrentGraphicsContext local_context(paint_info.context, r);
|
|
||||||
+#ifndef MAS_BUILD
|
|
||||||
_NSDrawCarbonThemeListBox(
|
|
||||||
CGRect(r),
|
|
||||||
LayoutTheme::IsEnabled(node) && !LayoutTheme::IsReadOnlyControl(node),
|
|
||||||
YES, YES);
|
|
||||||
+#endif
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
diff --git a/third_party/blink/renderer/platform/mac/kill_ring_mac.mm b/third_party/blink/renderer/platform/mac/kill_ring_mac.mm
|
|
||||||
index 98dea7c4c3c9..44b4ae940dc5 100644
|
|
||||||
--- a/third_party/blink/renderer/platform/mac/kill_ring_mac.mm
|
|
||||||
+++ b/third_party/blink/renderer/platform/mac/kill_ring_mac.mm
|
|
||||||
@@ -27,6 +27,7 @@
|
@@ -27,6 +27,7 @@
|
||||||
|
|
||||||
namespace blink {
|
namespace blink {
|
||||||
|
@ -110,3 +72,52 @@ index 98dea7c4c3c9..44b4ae940dc5 100644
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace blink
|
} // namespace blink
|
||||||
|
diff --git a/third_party/blink/renderer/core/paint/theme_painter_mac.mm b/third_party/blink/renderer/core/paint/theme_painter_mac.mm
|
||||||
|
index 7a1260db0a13..bf9cf7046e2f 100644
|
||||||
|
--- a/third_party/blink/renderer/core/paint/theme_painter_mac.mm
|
||||||
|
+++ b/third_party/blink/renderer/core/paint/theme_painter_mac.mm
|
||||||
|
@@ -42,6 +42,7 @@
|
||||||
|
|
||||||
|
// The methods in this file are specific to the Mac OS X platform.
|
||||||
|
|
||||||
|
+#ifndef MAS_BUILD
|
||||||
|
// Forward declare Mac SPIs.
|
||||||
|
extern "C" {
|
||||||
|
void _NSDrawCarbonThemeBezel(NSRect frame, BOOL enabled, BOOL flipped);
|
||||||
|
@@ -51,6 +52,7 @@ void _NSDrawCarbonThemeListBox(NSRect frame,
|
||||||
|
BOOL flipped,
|
||||||
|
BOOL always_yes);
|
||||||
|
}
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
namespace blink {
|
||||||
|
|
||||||
|
@@ -73,10 +75,12 @@ bool ThemePainterMac::PaintTextField(const Node* node,
|
||||||
|
// behavior change while remaining a fragile solution.
|
||||||
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=658085#c3
|
||||||
|
if (!use_ns_text_field_cell) {
|
||||||
|
+#ifndef MAS_BUILD
|
||||||
|
_NSDrawCarbonThemeBezel(
|
||||||
|
CGRect(r),
|
||||||
|
LayoutTheme::IsEnabled(node) && !LayoutTheme::IsReadOnlyControl(node),
|
||||||
|
YES);
|
||||||
|
+#endif
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -162,10 +166,12 @@ bool ThemePainterMac::PaintTextArea(const Node* node,
|
||||||
|
const PaintInfo& paint_info,
|
||||||
|
const IntRect& r) {
|
||||||
|
LocalCurrentGraphicsContext local_context(paint_info.context, r);
|
||||||
|
+#ifndef MAS_BUILD
|
||||||
|
_NSDrawCarbonThemeListBox(
|
||||||
|
CGRect(r),
|
||||||
|
LayoutTheme::IsEnabled(node) && !LayoutTheme::IsReadOnlyControl(node),
|
||||||
|
YES, YES);
|
||||||
|
+#endif
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
|
From 76b7181bb594403e3529a961efcacc6923af7e83 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Cheng Zhao <zcbenz@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:48:52 -0700
|
||||||
|
Subject: mas_no_private_api.patch
|
||||||
|
|
||||||
|
Guard usages in blink of private Mac APIs by MAS_BUILD, so they can be
|
||||||
|
excluded for people who want to submit their apps to the Mac App store.
|
||||||
|
|
||||||
diff --git a/content/browser/accessibility/browser_accessibility_cocoa.h b/content/browser/accessibility/browser_accessibility_cocoa.h
|
diff --git a/content/browser/accessibility/browser_accessibility_cocoa.h b/content/browser/accessibility/browser_accessibility_cocoa.h
|
||||||
index a03585269db6..e7b028760bba 100644
|
index 44c85b5ad571..1714c403edf2 100644
|
||||||
--- a/content/browser/accessibility/browser_accessibility_cocoa.h
|
--- a/content/browser/accessibility/browser_accessibility_cocoa.h
|
||||||
+++ b/content/browser/accessibility/browser_accessibility_cocoa.h
|
+++ b/content/browser/accessibility/browser_accessibility_cocoa.h
|
||||||
@@ -111,7 +111,9 @@ struct AXTextEdit {
|
@@ -111,7 +111,9 @@ struct AXTextEdit {
|
||||||
|
@ -30,10 +38,10 @@ index a03585269db6..e7b028760bba 100644
|
||||||
// is concerned.
|
// is concerned.
|
||||||
@property(nonatomic, readonly) NSString* subrole;
|
@property(nonatomic, readonly) NSString* subrole;
|
||||||
diff --git a/content/browser/accessibility/browser_accessibility_cocoa.mm b/content/browser/accessibility/browser_accessibility_cocoa.mm
|
diff --git a/content/browser/accessibility/browser_accessibility_cocoa.mm b/content/browser/accessibility/browser_accessibility_cocoa.mm
|
||||||
index bc4b972f9c78..fb06c95af750 100644
|
index 07e9862b76a9..efa52aa9de2f 100644
|
||||||
--- a/content/browser/accessibility/browser_accessibility_cocoa.mm
|
--- a/content/browser/accessibility/browser_accessibility_cocoa.mm
|
||||||
+++ b/content/browser/accessibility/browser_accessibility_cocoa.mm
|
+++ b/content/browser/accessibility/browser_accessibility_cocoa.mm
|
||||||
@@ -122,6 +122,7 @@ NSDictionary* attributeToMethodNameMap = nil;
|
@@ -135,6 +135,7 @@ NSDictionary* attributeToMethodNameMap = nil;
|
||||||
// VoiceOver uses -1 to mean "no limit" for AXResultsLimit.
|
// VoiceOver uses -1 to mean "no limit" for AXResultsLimit.
|
||||||
const int kAXResultsLimitNoLimit = -1;
|
const int kAXResultsLimitNoLimit = -1;
|
||||||
|
|
||||||
|
@ -41,7 +49,7 @@ index bc4b972f9c78..fb06c95af750 100644
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
// The following are private accessibility APIs required for cursor navigation
|
// The following are private accessibility APIs required for cursor navigation
|
||||||
@@ -328,6 +329,7 @@ NSAttributedString* GetAttributedTextForTextMarkerRange(
|
@@ -341,6 +342,7 @@ NSAttributedString* GetAttributedTextForTextMarkerRange(
|
||||||
AddMisspelledTextAttributes(text_only_objects, attributed_text);
|
AddMisspelledTextAttributes(text_only_objects, attributed_text);
|
||||||
return [attributed_text attributedSubstringFromRange:range];
|
return [attributed_text attributedSubstringFromRange:range];
|
||||||
}
|
}
|
||||||
|
@ -49,7 +57,7 @@ index bc4b972f9c78..fb06c95af750 100644
|
||||||
|
|
||||||
// Returns an autoreleased copy of the AXNodeData's attribute.
|
// Returns an autoreleased copy of the AXNodeData's attribute.
|
||||||
NSString* NSStringForStringAttribute(
|
NSString* NSStringForStringAttribute(
|
||||||
@@ -581,7 +583,9 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
@@ -595,7 +597,9 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
||||||
{NSAccessibilityDOMIdentifierAttribute, @"domIdentifier"},
|
{NSAccessibilityDOMIdentifierAttribute, @"domIdentifier"},
|
||||||
{NSAccessibilityEditableAncestorAttribute, @"editableAncestor"},
|
{NSAccessibilityEditableAncestorAttribute, @"editableAncestor"},
|
||||||
{NSAccessibilityEnabledAttribute, @"enabled"},
|
{NSAccessibilityEnabledAttribute, @"enabled"},
|
||||||
|
@ -57,9 +65,9 @@ index bc4b972f9c78..fb06c95af750 100644
|
||||||
{NSAccessibilityEndTextMarkerAttribute, @"endTextMarker"},
|
{NSAccessibilityEndTextMarkerAttribute, @"endTextMarker"},
|
||||||
+#endif
|
+#endif
|
||||||
{NSAccessibilityExpandedAttribute, @"expanded"},
|
{NSAccessibilityExpandedAttribute, @"expanded"},
|
||||||
|
{NSAccessibilityFocusableAncestorAttribute, @"focusableAncestor"},
|
||||||
{NSAccessibilityFocusedAttribute, @"focused"},
|
{NSAccessibilityFocusedAttribute, @"focused"},
|
||||||
{NSAccessibilityGrabbedAttribute, @"grabbed"},
|
@@ -630,13 +634,17 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
||||||
@@ -614,13 +618,17 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
|
||||||
{NSAccessibilityRowsAttribute, @"rows"},
|
{NSAccessibilityRowsAttribute, @"rows"},
|
||||||
// TODO(aboxhall): expose
|
// TODO(aboxhall): expose
|
||||||
// NSAccessibilityServesAsTitleForUIElementsAttribute
|
// NSAccessibilityServesAsTitleForUIElementsAttribute
|
||||||
|
@ -77,15 +85,15 @@ index bc4b972f9c78..fb06c95af750 100644
|
||||||
{NSAccessibilitySizeAttribute, @"size"},
|
{NSAccessibilitySizeAttribute, @"size"},
|
||||||
{NSAccessibilitySortDirectionAttribute, @"sortDirection"},
|
{NSAccessibilitySortDirectionAttribute, @"sortDirection"},
|
||||||
{NSAccessibilitySubroleAttribute, @"subrole"},
|
{NSAccessibilitySubroleAttribute, @"subrole"},
|
||||||
@@ -1091,6 +1099,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
@@ -1114,6 +1122,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
||||||
ax::mojom::Restriction::kDisabled];
|
ax::mojom::Restriction::kDisabled];
|
||||||
}
|
}
|
||||||
|
|
||||||
+#ifndef MAS_BUILD
|
+#ifndef MAS_BUILD
|
||||||
// Returns a text marker that points to the last character in the document that
|
// Returns a text marker that points to the last character in the document that
|
||||||
// can be selected with VoiceOver.
|
// can be selected with VoiceOver.
|
||||||
- (id)endTextMarker {
|
- (id)endTextMarker {
|
||||||
@@ -1102,6 +1111,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
@@ -1124,6 +1133,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
||||||
BrowserAccessibilityPositionInstance position = root->CreatePositionAt(0);
|
BrowserAccessibilityPositionInstance position = root->CreatePositionAt(0);
|
||||||
return CreateTextMarker(position->CreatePositionAtEndOfAnchor());
|
return CreateTextMarker(position->CreatePositionAtEndOfAnchor());
|
||||||
}
|
}
|
||||||
|
@ -93,7 +101,7 @@ index bc4b972f9c78..fb06c95af750 100644
|
||||||
|
|
||||||
- (NSNumber*)expanded {
|
- (NSNumber*)expanded {
|
||||||
if (![self instanceActive])
|
if (![self instanceActive])
|
||||||
@@ -1975,6 +1985,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
@@ -2029,6 +2039,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
||||||
return [NSValue valueWithRange:NSMakeRange(selStart, selLength)];
|
return [NSValue valueWithRange:NSMakeRange(selStart, selLength)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -101,7 +109,7 @@ index bc4b972f9c78..fb06c95af750 100644
|
||||||
- (id)selectedTextMarkerRange {
|
- (id)selectedTextMarkerRange {
|
||||||
if (![self instanceActive])
|
if (![self instanceActive])
|
||||||
return nil;
|
return nil;
|
||||||
@@ -2007,6 +2018,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
@@ -2061,6 +2072,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
||||||
anchorAffinity, *focusObject,
|
anchorAffinity, *focusObject,
|
||||||
focusOffset, focusAffinity));
|
focusOffset, focusAffinity));
|
||||||
}
|
}
|
||||||
|
@ -109,7 +117,7 @@ index bc4b972f9c78..fb06c95af750 100644
|
||||||
|
|
||||||
- (NSValue*)size {
|
- (NSValue*)size {
|
||||||
if (![self instanceActive])
|
if (![self instanceActive])
|
||||||
@@ -2039,6 +2051,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
@@ -2093,6 +2105,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -117,7 +125,7 @@ index bc4b972f9c78..fb06c95af750 100644
|
||||||
// Returns a text marker that points to the first character in the document that
|
// Returns a text marker that points to the first character in the document that
|
||||||
// can be selected with VoiceOver.
|
// can be selected with VoiceOver.
|
||||||
- (id)startTextMarker {
|
- (id)startTextMarker {
|
||||||
@@ -2050,6 +2063,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
@@ -2103,6 +2116,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
||||||
BrowserAccessibilityPositionInstance position = root->CreatePositionAt(0);
|
BrowserAccessibilityPositionInstance position = root->CreatePositionAt(0);
|
||||||
return CreateTextMarker(position->CreatePositionAtStartOfAnchor());
|
return CreateTextMarker(position->CreatePositionAtStartOfAnchor());
|
||||||
}
|
}
|
||||||
|
@ -125,22 +133,22 @@ index bc4b972f9c78..fb06c95af750 100644
|
||||||
|
|
||||||
// Returns a subrole based upon the role.
|
// Returns a subrole based upon the role.
|
||||||
- (NSString*) subrole {
|
- (NSString*) subrole {
|
||||||
@@ -2335,12 +2349,14 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
@@ -2405,12 +2419,14 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
||||||
NSMutableAttributedString* attributedValue =
|
NSMutableAttributedString* attributedValue =
|
||||||
[[[NSMutableAttributedString alloc] initWithString:value] autorelease];
|
[[[NSMutableAttributedString alloc] initWithString:value] autorelease];
|
||||||
|
|
||||||
+#ifndef MAS_BUILD
|
+#ifndef MAS_BUILD
|
||||||
if (!browserAccessibility_->IsTextOnlyObject()) {
|
if (!owner_->IsTextOnlyObject()) {
|
||||||
std::vector<const BrowserAccessibility*> textOnlyObjects =
|
std::vector<const BrowserAccessibility*> textOnlyObjects =
|
||||||
BrowserAccessibilityManager::FindTextOnlyObjectsInRange(
|
BrowserAccessibilityManager::FindTextOnlyObjectsInRange(*owner_,
|
||||||
*browserAccessibility_, *browserAccessibility_);
|
*owner_);
|
||||||
AddMisspelledTextAttributes(textOnlyObjects, attributedValue);
|
AddMisspelledTextAttributes(textOnlyObjects, attributedValue);
|
||||||
}
|
}
|
||||||
+#endif
|
+#endif
|
||||||
|
|
||||||
return [attributedValue attributedSubstringFromRange:range];
|
return [attributedValue attributedSubstringFromRange:range];
|
||||||
}
|
}
|
||||||
@@ -2460,6 +2476,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
@@ -2527,6 +2543,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -148,7 +156,7 @@ index bc4b972f9c78..fb06c95af750 100644
|
||||||
if ([attribute isEqualToString:@"AXUIElementForTextMarker"]) {
|
if ([attribute isEqualToString:@"AXUIElementForTextMarker"]) {
|
||||||
BrowserAccessibilityPositionInstance position =
|
BrowserAccessibilityPositionInstance position =
|
||||||
CreatePositionFromTextMarker(parameter);
|
CreatePositionFromTextMarker(parameter);
|
||||||
@@ -2637,6 +2654,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
@@ -2704,6 +2721,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
||||||
NSString* text = GetTextForTextMarkerRange(parameter);
|
NSString* text = GetTextForTextMarkerRange(parameter);
|
||||||
return [NSNumber numberWithInt:[text length]];
|
return [NSNumber numberWithInt:[text length]];
|
||||||
}
|
}
|
||||||
|
@ -156,7 +164,7 @@ index bc4b972f9c78..fb06c95af750 100644
|
||||||
|
|
||||||
if ([attribute isEqualToString:
|
if ([attribute isEqualToString:
|
||||||
NSAccessibilityBoundsForRangeParameterizedAttribute]) {
|
NSAccessibilityBoundsForRangeParameterizedAttribute]) {
|
||||||
@@ -2674,6 +2692,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
@@ -2741,6 +2759,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,7 +172,7 @@ index bc4b972f9c78..fb06c95af750 100644
|
||||||
if ([attribute isEqualToString:
|
if ([attribute isEqualToString:
|
||||||
NSAccessibilityLineTextMarkerRangeForTextMarkerParameterizedAttribute]) {
|
NSAccessibilityLineTextMarkerRangeForTextMarkerParameterizedAttribute]) {
|
||||||
BrowserAccessibilityPositionInstance position =
|
BrowserAccessibilityPositionInstance position =
|
||||||
@@ -2753,6 +2772,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
@@ -2820,6 +2839,7 @@ NSString* const NSAccessibilityRequiredAttributeChrome = @"AXRequired";
|
||||||
|
|
||||||
return @(child->GetIndexInParent());
|
return @(child->GetIndexInParent());
|
||||||
}
|
}
|
||||||
|
@ -173,10 +181,10 @@ index bc4b972f9c78..fb06c95af750 100644
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
diff --git a/content/browser/accessibility/browser_accessibility_manager_mac.mm b/content/browser/accessibility/browser_accessibility_manager_mac.mm
|
diff --git a/content/browser/accessibility/browser_accessibility_manager_mac.mm b/content/browser/accessibility/browser_accessibility_manager_mac.mm
|
||||||
index 134f855de654..d588ed98839d 100644
|
index 8e32a0822607..93bb7273684f 100644
|
||||||
--- a/content/browser/accessibility/browser_accessibility_manager_mac.mm
|
--- a/content/browser/accessibility/browser_accessibility_manager_mac.mm
|
||||||
+++ b/content/browser/accessibility/browser_accessibility_manager_mac.mm
|
+++ b/content/browser/accessibility/browser_accessibility_manager_mac.mm
|
||||||
@@ -441,6 +441,7 @@ NSDictionary* BrowserAccessibilityManagerMac::
|
@@ -437,6 +437,7 @@ NSDictionary* BrowserAccessibilityManagerMac::
|
||||||
[user_info setObject:native_focus_object
|
[user_info setObject:native_focus_object
|
||||||
forKey:NSAccessibilityTextChangeElement];
|
forKey:NSAccessibilityTextChangeElement];
|
||||||
|
|
||||||
|
@ -184,7 +192,7 @@ index 134f855de654..d588ed98839d 100644
|
||||||
id selected_text = [native_focus_object selectedTextMarkerRange];
|
id selected_text = [native_focus_object selectedTextMarkerRange];
|
||||||
if (selected_text) {
|
if (selected_text) {
|
||||||
NSString* const NSAccessibilitySelectedTextMarkerRangeAttribute =
|
NSString* const NSAccessibilitySelectedTextMarkerRangeAttribute =
|
||||||
@@ -448,6 +449,7 @@ NSDictionary* BrowserAccessibilityManagerMac::
|
@@ -444,6 +445,7 @@ NSDictionary* BrowserAccessibilityManagerMac::
|
||||||
[user_info setObject:selected_text
|
[user_info setObject:selected_text
|
||||||
forKey:NSAccessibilitySelectedTextMarkerRangeAttribute];
|
forKey:NSAccessibilitySelectedTextMarkerRangeAttribute];
|
||||||
}
|
}
|
||||||
|
@ -229,18 +237,18 @@ index 1e2cc38d3868..daa934c345e2 100644
|
||||||
|
|
||||||
// You are about to read a pretty disgusting hack. In a static initializer,
|
// You are about to read a pretty disgusting hack. In a static initializer,
|
||||||
diff --git a/device/bluetooth/bluetooth_adapter_mac.mm b/device/bluetooth/bluetooth_adapter_mac.mm
|
diff --git a/device/bluetooth/bluetooth_adapter_mac.mm b/device/bluetooth/bluetooth_adapter_mac.mm
|
||||||
index bb996bfd0876..eea959855615 100644
|
index 8b2092ec78f9..4f2ee8e28097 100644
|
||||||
--- a/device/bluetooth/bluetooth_adapter_mac.mm
|
--- a/device/bluetooth/bluetooth_adapter_mac.mm
|
||||||
+++ b/device/bluetooth/bluetooth_adapter_mac.mm
|
+++ b/device/bluetooth/bluetooth_adapter_mac.mm
|
||||||
@@ -32,6 +32,7 @@
|
@@ -34,6 +34,7 @@
|
||||||
#include "device/bluetooth/bluetooth_low_energy_central_manager_delegate.h"
|
#include "device/bluetooth/bluetooth_low_energy_peripheral_manager_delegate.h"
|
||||||
#include "device/bluetooth/bluetooth_socket_mac.h"
|
#include "device/bluetooth/bluetooth_socket_mac.h"
|
||||||
|
|
||||||
+#ifndef MAS_BUILD
|
+#ifndef MAS_BUILD
|
||||||
extern "C" {
|
extern "C" {
|
||||||
// Undocumented IOBluetooth Preference API [1]. Used by `blueutil` [2] and
|
// Undocumented IOBluetooth Preference API [1]. Used by `blueutil` [2] and
|
||||||
// `Karabiner` [3] to programmatically control the Bluetooth state. Calling the
|
// `Karabiner` [3] to programmatically control the Bluetooth state. Calling the
|
||||||
@@ -45,6 +46,7 @@ extern "C" {
|
@@ -47,6 +48,7 @@ extern "C" {
|
||||||
// [4] https://support.apple.com/kb/PH25091
|
// [4] https://support.apple.com/kb/PH25091
|
||||||
void IOBluetoothPreferenceSetControllerPowerState(int state);
|
void IOBluetoothPreferenceSetControllerPowerState(int state);
|
||||||
}
|
}
|
||||||
|
@ -248,7 +256,7 @@ index bb996bfd0876..eea959855615 100644
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
@@ -118,8 +120,10 @@ BluetoothAdapterMac::BluetoothAdapterMac()
|
@@ -120,8 +122,10 @@ BluetoothAdapterMac::BluetoothAdapterMac()
|
||||||
controller_state_function_(
|
controller_state_function_(
|
||||||
base::BindRepeating(&BluetoothAdapterMac::GetHostControllerState,
|
base::BindRepeating(&BluetoothAdapterMac::GetHostControllerState,
|
||||||
base::Unretained(this))),
|
base::Unretained(this))),
|
||||||
|
@ -259,7 +267,7 @@ index bb996bfd0876..eea959855615 100644
|
||||||
should_update_name_(true),
|
should_update_name_(true),
|
||||||
classic_discovery_manager_(
|
classic_discovery_manager_(
|
||||||
BluetoothDiscoveryManagerMac::CreateClassic(this)),
|
BluetoothDiscoveryManagerMac::CreateClassic(this)),
|
||||||
@@ -302,8 +306,12 @@ bool BluetoothAdapterMac::IsLowEnergyAvailable() {
|
@@ -314,8 +318,12 @@ bool BluetoothAdapterMac::IsLowEnergyAvailable() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool BluetoothAdapterMac::SetPoweredImpl(bool powered) {
|
bool BluetoothAdapterMac::SetPoweredImpl(bool powered) {
|
||||||
|
@ -273,10 +281,10 @@ index bb996bfd0876..eea959855615 100644
|
||||||
|
|
||||||
void BluetoothAdapterMac::RemovePairingDelegateInternal(
|
void BluetoothAdapterMac::RemovePairingDelegateInternal(
|
||||||
diff --git a/media/audio/BUILD.gn b/media/audio/BUILD.gn
|
diff --git a/media/audio/BUILD.gn b/media/audio/BUILD.gn
|
||||||
index 8754161b0c90..7705c0dcc5cf 100644
|
index 585ad87c6cb4..4305c2e67dcc 100644
|
||||||
--- a/media/audio/BUILD.gn
|
--- a/media/audio/BUILD.gn
|
||||||
+++ b/media/audio/BUILD.gn
|
+++ b/media/audio/BUILD.gn
|
||||||
@@ -194,6 +194,12 @@ source_set("audio") {
|
@@ -196,6 +196,12 @@ source_set("audio") {
|
||||||
"mac/scoped_audio_unit.cc",
|
"mac/scoped_audio_unit.cc",
|
||||||
"mac/scoped_audio_unit.h",
|
"mac/scoped_audio_unit.h",
|
||||||
]
|
]
|
||||||
|
@ -290,10 +298,10 @@ index 8754161b0c90..7705c0dcc5cf 100644
|
||||||
"AudioToolbox.framework",
|
"AudioToolbox.framework",
|
||||||
"AudioUnit.framework",
|
"AudioUnit.framework",
|
||||||
diff --git a/media/audio/mac/audio_manager_mac.cc b/media/audio/mac/audio_manager_mac.cc
|
diff --git a/media/audio/mac/audio_manager_mac.cc b/media/audio/mac/audio_manager_mac.cc
|
||||||
index 66a5622f2d3d..b7adea918559 100644
|
index 74dd21d45b4f..d7dd95b4d461 100644
|
||||||
--- a/media/audio/mac/audio_manager_mac.cc
|
--- a/media/audio/mac/audio_manager_mac.cc
|
||||||
+++ b/media/audio/mac/audio_manager_mac.cc
|
+++ b/media/audio/mac/audio_manager_mac.cc
|
||||||
@@ -864,7 +864,7 @@ AudioParameters AudioManagerMac::GetPreferredOutputStreamParameters(
|
@@ -868,7 +868,7 @@ AudioParameters AudioManagerMac::GetPreferredOutputStreamParameters(
|
||||||
|
|
||||||
void AudioManagerMac::InitializeOnAudioThread() {
|
void AudioManagerMac::InitializeOnAudioThread() {
|
||||||
DCHECK(GetTaskRunner()->BelongsToCurrentThread());
|
DCHECK(GetTaskRunner()->BelongsToCurrentThread());
|
||||||
|
@ -415,10 +423,10 @@ index 9073364142e8..2356add74dfa 100644
|
||||||
NOTREACHED();
|
NOTREACHED();
|
||||||
return nullptr;
|
return nullptr;
|
||||||
diff --git a/ui/views/cocoa/bridged_native_widget.mm b/ui/views/cocoa/bridged_native_widget.mm
|
diff --git a/ui/views/cocoa/bridged_native_widget.mm b/ui/views/cocoa/bridged_native_widget.mm
|
||||||
index c37fd6286340..104cc98f731a 100644
|
index 69c5f1f44d7e..8a1d8e7fc0dd 100644
|
||||||
--- a/ui/views/cocoa/bridged_native_widget.mm
|
--- a/ui/views/cocoa/bridged_native_widget.mm
|
||||||
+++ b/ui/views/cocoa/bridged_native_widget.mm
|
+++ b/ui/views/cocoa/bridged_native_widget.mm
|
||||||
@@ -42,6 +42,7 @@
|
@@ -43,6 +43,7 @@
|
||||||
#include "ui/views/widget/widget_delegate.h"
|
#include "ui/views/widget/widget_delegate.h"
|
||||||
#include "ui/views/window/dialog_delegate.h"
|
#include "ui/views/window/dialog_delegate.h"
|
||||||
|
|
||||||
|
@ -426,11 +434,14 @@ index c37fd6286340..104cc98f731a 100644
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
typedef int32_t CGSConnection;
|
typedef int32_t CGSConnection;
|
||||||
@@ -51,6 +52,7 @@ CGError CGSSetWindowBackgroundBlurRadius(CGSConnection connection,
|
@@ -55,6 +56,7 @@ CGError CGSSetWindowBackgroundBlurRadius(CGSConnection connection,
|
||||||
int radius);
|
namespace {
|
||||||
|
constexpr auto kUIPaintTimeout = base::TimeDelta::FromSeconds(5);
|
||||||
}
|
} // namespace
|
||||||
+#endif
|
+#endif
|
||||||
|
|
||||||
// The NSView that hosts the composited CALayer drawing the UI. It fills the
|
// The NSView that hosts the composited CALayer drawing the UI. It fills the
|
||||||
// window but is not hittable so that accessibility hit tests always go to the
|
// window but is not hittable so that accessibility hit tests always go to the
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,21 @@
|
||||||
|
From 49270a5ff41a1808c33e61e832e251979670f6f7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Cheng Zhao <zcbenz@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:46:06 -0700
|
||||||
|
Subject: net_url_request_job.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/net/url_request/url_request_job.h b/net/url_request/url_request_job.h
|
diff --git a/net/url_request/url_request_job.h b/net/url_request/url_request_job.h
|
||||||
index 389315a25d7d..d4e3c0e6c2ba 100644
|
index 7a2239587510..08a3940915c6 100644
|
||||||
--- a/net/url_request/url_request_job.h
|
--- a/net/url_request/url_request_job.h
|
||||||
+++ b/net/url_request/url_request_job.h
|
+++ b/net/url_request/url_request_job.h
|
||||||
@@ -285,6 +285,7 @@ class NET_EXPORT URLRequestJob : public base::PowerObserver {
|
@@ -292,6 +292,7 @@ class NET_EXPORT URLRequestJob : public base::PowerObserver {
|
||||||
void OnCallToDelegate();
|
void OnCallToDelegate(NetLogEventType type);
|
||||||
void OnCallToDelegateComplete();
|
void OnCallToDelegateComplete();
|
||||||
|
|
||||||
+ public:
|
+ public:
|
||||||
// Called to read raw (pre-filtered) data from this Job. Reads at most
|
// Called to read raw (pre-filtered) data from this Job. Reads at most
|
||||||
// |buf_size| bytes into |buf|.
|
// |buf_size| bytes into |buf|.
|
||||||
// Possible return values:
|
// Possible return values:
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
From 528adce1472de7f07de909d451c215c474f9c646 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Cheng Zhao <zcbenz@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:48:16 -0700
|
||||||
|
Subject: no_cache_storage_check.patch
|
||||||
|
|
||||||
|
Do not check for unique origin in CacheStorage, in Electron we may have
|
||||||
|
scripts running without an origin.
|
||||||
|
|
||||||
diff --git a/content/browser/cache_storage/cache_storage.cc b/content/browser/cache_storage/cache_storage.cc
|
diff --git a/content/browser/cache_storage/cache_storage.cc b/content/browser/cache_storage/cache_storage.cc
|
||||||
index d91b54a4d2a1..7f946a5a04c9 100644
|
index d91b54a4d2a1..7f946a5a04c9 100644
|
||||||
--- a/content/browser/cache_storage/cache_storage.cc
|
--- a/content/browser/cache_storage/cache_storage.cc
|
||||||
|
@ -11,3 +19,6 @@ index d91b54a4d2a1..7f946a5a04c9 100644
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ~CacheLoader() {}
|
virtual ~CacheLoader() {}
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
|
From 643954ec09f12c4d97767cbfcfb24e92fbcd5230 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Aleksei Kuzmin <alkuzmin@microsoft.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:46:10 -0700
|
||||||
|
Subject: no_stack_dumping.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/content/app/content_main_runner_impl.cc b/content/app/content_main_runner_impl.cc
|
diff --git a/content/app/content_main_runner_impl.cc b/content/app/content_main_runner_impl.cc
|
||||||
index 83e8990edf17..94b3450bbea5 100644
|
index 8d789ef1b9f7..034fdcad958c 100644
|
||||||
--- a/content/app/content_main_runner_impl.cc
|
--- a/content/app/content_main_runner_impl.cc
|
||||||
+++ b/content/app/content_main_runner_impl.cc
|
+++ b/content/app/content_main_runner_impl.cc
|
||||||
@@ -871,7 +871,7 @@ int ContentMainRunnerImpl::Initialize(const ContentMainParams& params) {
|
@@ -835,7 +835,7 @@ int ContentMainRunnerImpl::Initialize(const ContentMainParams& params) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
|
From 2c3fe795d68b12828a1891c062b77a9b3cddf017 Mon Sep 17 00:00:00 2001
|
||||||
|
From: deepak1556 <hop2deep@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:46:17 -0700
|
||||||
|
Subject: out_of_process_instance.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc
|
diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc
|
||||||
index 8486db85360f..753c93a8c056 100644
|
index 0358d15fb45b..101763db35d1 100644
|
||||||
--- a/pdf/out_of_process_instance.cc
|
--- a/pdf/out_of_process_instance.cc
|
||||||
+++ b/pdf/out_of_process_instance.cc
|
+++ b/pdf/out_of_process_instance.cc
|
||||||
@@ -455,7 +455,9 @@ bool OutOfProcessInstance::Init(uint32_t argc,
|
@@ -455,7 +455,9 @@ bool OutOfProcessInstance::Init(uint32_t argc,
|
||||||
|
@ -13,3 +19,6 @@ index 8486db85360f..753c93a8c056 100644
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Check if the plugin is full frame. This is passed in from JS.
|
// Check if the plugin is full frame. This is passed in from JS.
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
From 9d163de412e3c578003f946641b9f840edfc45a4 Mon Sep 17 00:00:00 2001
|
||||||
|
From: deepak1556 <hop2deep@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:48:09 -0700
|
||||||
|
Subject: pepper_flash.patch
|
||||||
|
|
||||||
|
Allows building chrome pepper flash integration for Electron.
|
||||||
|
|
||||||
diff --git a/chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory.h b/chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory.h
|
diff --git a/chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory.h b/chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory.h
|
||||||
index 735da93c3cab..533f53fbc423 100644
|
index 735da93c3cab..533f53fbc423 100644
|
||||||
--- a/chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory.h
|
--- a/chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory.h
|
||||||
|
@ -482,3 +489,6 @@ index e021c964da3d..e035f0fb9e2b 100644
|
||||||
public:
|
public:
|
||||||
explicit PepperHelper(content::RenderFrame* render_frame);
|
explicit PepperHelper(content::RenderFrame* render_frame);
|
||||||
~PepperHelper() override;
|
~PepperHelper() override;
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
|
From 22107b997c8c2437e90aeccf4ea795682ebc402a Mon Sep 17 00:00:00 2001
|
||||||
|
From: Anonymous <anonymous@electronjs.org>
|
||||||
|
Date: Thu, 20 Sep 2018 17:46:21 -0700
|
||||||
|
Subject: render_widget_host_view_base.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/content/browser/renderer_host/render_widget_host_view_base.cc b/content/browser/renderer_host/render_widget_host_view_base.cc
|
diff --git a/content/browser/renderer_host/render_widget_host_view_base.cc b/content/browser/renderer_host/render_widget_host_view_base.cc
|
||||||
index 1c52a5fd396f..bfaa5a0c7c35 100644
|
index 5561b7a1f386..913b24cff3b2 100644
|
||||||
--- a/content/browser/renderer_host/render_widget_host_view_base.cc
|
--- a/content/browser/renderer_host/render_widget_host_view_base.cc
|
||||||
+++ b/content/browser/renderer_host/render_widget_host_view_base.cc
|
+++ b/content/browser/renderer_host/render_widget_host_view_base.cc
|
||||||
@@ -515,6 +515,15 @@ viz::FrameSinkId RenderWidgetHostViewBase::FrameSinkIdAtPoint(
|
@@ -567,6 +567,15 @@ viz::FrameSinkId RenderWidgetHostViewBase::FrameSinkIdAtPoint(
|
||||||
return frame_sink_id.is_valid() ? frame_sink_id : GetFrameSinkId();
|
return frame_sink_id.is_valid() ? frame_sink_id : GetFrameSinkId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +25,7 @@ index 1c52a5fd396f..bfaa5a0c7c35 100644
|
||||||
const blink::WebMouseEvent& event,
|
const blink::WebMouseEvent& event,
|
||||||
const ui::LatencyInfo& latency) {
|
const ui::LatencyInfo& latency) {
|
||||||
diff --git a/content/browser/renderer_host/render_widget_host_view_base.h b/content/browser/renderer_host/render_widget_host_view_base.h
|
diff --git a/content/browser/renderer_host/render_widget_host_view_base.h b/content/browser/renderer_host/render_widget_host_view_base.h
|
||||||
index 048fd7d3a8bf..1555b278a525 100644
|
index 8ed6ffd3a284..dd7fdbbdee59 100644
|
||||||
--- a/content/browser/renderer_host/render_widget_host_view_base.h
|
--- a/content/browser/renderer_host/render_widget_host_view_base.h
|
||||||
+++ b/content/browser/renderer_host/render_widget_host_view_base.h
|
+++ b/content/browser/renderer_host/render_widget_host_view_base.h
|
||||||
@@ -22,8 +22,10 @@
|
@@ -22,8 +22,10 @@
|
||||||
|
@ -46,7 +52,7 @@ index 048fd7d3a8bf..1555b278a525 100644
|
||||||
class WebCursor;
|
class WebCursor;
|
||||||
struct TextInputState;
|
struct TextInputState;
|
||||||
|
|
||||||
@@ -142,6 +146,9 @@ class CONTENT_EXPORT RenderWidgetHostViewBase
|
@@ -144,6 +148,9 @@ class CONTENT_EXPORT RenderWidgetHostViewBase
|
||||||
TouchSelectionControllerClientManager*
|
TouchSelectionControllerClientManager*
|
||||||
GetTouchSelectionControllerClientManager() override;
|
GetTouchSelectionControllerClientManager() override;
|
||||||
|
|
||||||
|
@ -56,7 +62,7 @@ index 048fd7d3a8bf..1555b278a525 100644
|
||||||
// This only needs to be overridden by RenderWidgetHostViewBase subclasses
|
// This only needs to be overridden by RenderWidgetHostViewBase subclasses
|
||||||
// that handle content embedded within other RenderWidgetHostViews.
|
// that handle content embedded within other RenderWidgetHostViews.
|
||||||
gfx::PointF TransformPointToRootCoordSpaceF(
|
gfx::PointF TransformPointToRootCoordSpaceF(
|
||||||
@@ -346,6 +353,11 @@ class CONTENT_EXPORT RenderWidgetHostViewBase
|
@@ -351,6 +358,11 @@ class CONTENT_EXPORT RenderWidgetHostViewBase
|
||||||
virtual void ProcessGestureEvent(const blink::WebGestureEvent& event,
|
virtual void ProcessGestureEvent(const blink::WebGestureEvent& event,
|
||||||
const ui::LatencyInfo& latency);
|
const ui::LatencyInfo& latency);
|
||||||
|
|
||||||
|
@ -68,3 +74,6 @@ index 048fd7d3a8bf..1555b278a525 100644
|
||||||
// Transform a point that is in the coordinate space of a Surface that is
|
// Transform a point that is in the coordinate space of a Surface that is
|
||||||
// embedded within the RenderWidgetHostViewBase's Surface to the
|
// embedded within the RenderWidgetHostViewBase's Surface to the
|
||||||
// coordinate space of an embedding, or embedded, Surface. Typically this
|
// coordinate space of an embedding, or embedded, Surface. Typically this
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
|
From 7c728945a2edf66fc4c795b6b61634b30c76bd1e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Cheng Zhao <zcbenz@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:46:28 -0700
|
||||||
|
Subject: render_widget_host_view_mac.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/content/browser/renderer_host/render_widget_host_view_cocoa.mm b/content/browser/renderer_host/render_widget_host_view_cocoa.mm
|
diff --git a/content/browser/renderer_host/render_widget_host_view_cocoa.mm b/content/browser/renderer_host/render_widget_host_view_cocoa.mm
|
||||||
index 5b4ae0732914..ea774eb81c75 100644
|
index 8b84322baa80..70d244e01b75 100644
|
||||||
--- a/content/browser/renderer_host/render_widget_host_view_cocoa.mm
|
--- a/content/browser/renderer_host/render_widget_host_view_cocoa.mm
|
||||||
+++ b/content/browser/renderer_host/render_widget_host_view_cocoa.mm
|
+++ b/content/browser/renderer_host/render_widget_host_view_cocoa.mm
|
||||||
@@ -179,6 +179,11 @@ void ExtractUnderlines(NSAttributedString* string,
|
@@ -174,6 +174,11 @@ void ExtractUnderlines(NSAttributedString* string,
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
@ -14,7 +20,7 @@ index 5b4ae0732914..ea774eb81c75 100644
|
||||||
// These are not documented, so use only after checking -respondsToSelector:.
|
// These are not documented, so use only after checking -respondsToSelector:.
|
||||||
@interface NSApplication (UndocumentedSpeechMethods)
|
@interface NSApplication (UndocumentedSpeechMethods)
|
||||||
- (void)speakString:(NSString*)string;
|
- (void)speakString:(NSString*)string;
|
||||||
@@ -363,6 +368,9 @@ void ExtractUnderlines(NSAttributedString* string,
|
@@ -354,6 +359,9 @@ void ExtractUnderlines(NSAttributedString* string,
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)acceptsFirstMouse:(NSEvent*)theEvent {
|
- (BOOL)acceptsFirstMouse:(NSEvent*)theEvent {
|
||||||
|
@ -24,23 +30,7 @@ index 5b4ae0732914..ea774eb81c75 100644
|
||||||
return [self acceptsMouseEventsWhenInactive];
|
return [self acceptsMouseEventsWhenInactive];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -587,6 +595,7 @@ void ExtractUnderlines(NSAttributedString* string,
|
@@ -688,6 +696,10 @@ void ExtractUnderlines(NSAttributedString* string,
|
||||||
if (EventIsReservedBySystem(theEvent))
|
|
||||||
return NO;
|
|
||||||
|
|
||||||
+#if 0
|
|
||||||
// If we return |NO| from this function, cocoa will send the key event to
|
|
||||||
// the menu and only if the menu does not process the event to |keyDown:|. We
|
|
||||||
// want to send the event to a renderer _before_ sending it to the menu, so
|
|
||||||
@@ -600,6 +609,7 @@ void ExtractUnderlines(NSAttributedString* string,
|
|
||||||
DCHECK(![[NSApp mainMenu] performKeyEquivalent:theEvent]);
|
|
||||||
return NO;
|
|
||||||
}
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
// Command key combinations are sent via performKeyEquivalent rather than
|
|
||||||
// keyDown:. We just forward this on and if WebCore doesn't want to handle
|
|
||||||
@@ -699,6 +709,10 @@ void ExtractUnderlines(NSAttributedString* string,
|
|
||||||
eventType == NSKeyDown &&
|
eventType == NSKeyDown &&
|
||||||
!(modifierFlags & NSCommandKeyMask);
|
!(modifierFlags & NSCommandKeyMask);
|
||||||
|
|
||||||
|
@ -50,8 +40,8 @@ index 5b4ae0732914..ea774eb81c75 100644
|
||||||
+
|
+
|
||||||
// We only handle key down events and just simply forward other events.
|
// We only handle key down events and just simply forward other events.
|
||||||
if (eventType != NSKeyDown) {
|
if (eventType != NSKeyDown) {
|
||||||
client_->OnNSViewForwardKeyboardEvent(event, latency_info);
|
localClient_->ForwardKeyboardEvent(event, latency_info);
|
||||||
@@ -1461,9 +1475,11 @@ void ExtractUnderlines(NSAttributedString* string,
|
@@ -1460,9 +1472,11 @@ void ExtractUnderlines(NSAttributedString* string,
|
||||||
// Since this implementation doesn't have to wait any IPC calls, this doesn't
|
// Since this implementation doesn't have to wait any IPC calls, this doesn't
|
||||||
// make any key-typing jank. --hbono 7/23/09
|
// make any key-typing jank. --hbono 7/23/09
|
||||||
//
|
//
|
||||||
|
@ -63,7 +53,7 @@ index 5b4ae0732914..ea774eb81c75 100644
|
||||||
|
|
||||||
- (NSArray*)validAttributesForMarkedText {
|
- (NSArray*)validAttributesForMarkedText {
|
||||||
// This code is just copied from WebKit except renaming variables.
|
// This code is just copied from WebKit except renaming variables.
|
||||||
@@ -1472,7 +1488,10 @@ extern NSString* NSTextInputReplacementRangeAttributeName;
|
@@ -1471,7 +1485,10 @@ extern NSString* NSTextInputReplacementRangeAttributeName;
|
||||||
initWithObjects:NSUnderlineStyleAttributeName,
|
initWithObjects:NSUnderlineStyleAttributeName,
|
||||||
NSUnderlineColorAttributeName,
|
NSUnderlineColorAttributeName,
|
||||||
NSMarkedClauseSegmentAttributeName,
|
NSMarkedClauseSegmentAttributeName,
|
||||||
|
@ -76,11 +66,11 @@ index 5b4ae0732914..ea774eb81c75 100644
|
||||||
return validAttributesForMarkedText_.get();
|
return validAttributesForMarkedText_.get();
|
||||||
}
|
}
|
||||||
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
|
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
|
||||||
index 8b012bcb8f77..077ccbeaa913 100644
|
index 0703dd02c901..7186a054cf55 100644
|
||||||
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
|
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
|
||||||
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
|
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
|
||||||
@@ -53,6 +53,7 @@
|
@@ -54,6 +54,7 @@
|
||||||
#include "ui/events/keycodes/dom/dom_code.h"
|
#include "ui/events/keycodes/dom/dom_keyboard_layout_map.h"
|
||||||
#include "ui/gfx/geometry/dip_util.h"
|
#include "ui/gfx/geometry/dip_util.h"
|
||||||
#include "ui/gfx/mac/coordinate_conversion.h"
|
#include "ui/gfx/mac/coordinate_conversion.h"
|
||||||
+#include "ui/gl/gpu_switching_manager.h"
|
+#include "ui/gl/gpu_switching_manager.h"
|
||||||
|
|
|
@ -1,8 +1,18 @@
|
||||||
|
From a6b7144643673ce4e04f377f4321a4f750f8ffe4 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jeremy Apthorp <nornagon@nornagon.net>
|
||||||
|
Date: Thu, 20 Sep 2018 17:48:59 -0700
|
||||||
|
Subject: resource_file_conflict.patch
|
||||||
|
|
||||||
|
Resolve conflict between //chrome's .pak files and //electron's. The paths
|
||||||
|
that chrome code hardcodes require that we generate resources at these
|
||||||
|
paths, but GN throws errors if there are multiple targets that generate the
|
||||||
|
same files.
|
||||||
|
|
||||||
diff --git a/chrome/BUILD.gn b/chrome/BUILD.gn
|
diff --git a/chrome/BUILD.gn b/chrome/BUILD.gn
|
||||||
index 395d16c7cef2..66d81de66f01 100644
|
index a47af42a5a5a..db8311121e75 100644
|
||||||
--- a/chrome/BUILD.gn
|
--- a/chrome/BUILD.gn
|
||||||
+++ b/chrome/BUILD.gn
|
+++ b/chrome/BUILD.gn
|
||||||
@@ -1652,6 +1652,11 @@ if (is_chrome_branded && !is_android) {
|
@@ -1640,6 +1640,11 @@ if (is_chrome_branded && !is_android) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,7 +24,7 @@ index 395d16c7cef2..66d81de66f01 100644
|
||||||
chrome_paks("packed_resources") {
|
chrome_paks("packed_resources") {
|
||||||
if (is_mac) {
|
if (is_mac) {
|
||||||
output_dir = "$root_gen_dir/repack"
|
output_dir = "$root_gen_dir/repack"
|
||||||
@@ -1673,6 +1678,7 @@ chrome_paks("packed_resources") {
|
@@ -1661,6 +1666,7 @@ chrome_paks("packed_resources") {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,3 +32,6 @@ index 395d16c7cef2..66d81de66f01 100644
|
||||||
|
|
||||||
repack("browser_tests_pak") {
|
repack("browser_tests_pak") {
|
||||||
sources = [
|
sources = [
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
|
From 691dce7bf41c6fbc8ce3bf9fc3fb4ec0ef0cca21 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Anonymous <anonymous@electronjs.org>
|
||||||
|
Date: Thu, 20 Sep 2018 17:46:32 -0700
|
||||||
|
Subject: scoped_clipboard_writer.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/ui/base/clipboard/scoped_clipboard_writer.cc b/ui/base/clipboard/scoped_clipboard_writer.cc
|
diff --git a/ui/base/clipboard/scoped_clipboard_writer.cc b/ui/base/clipboard/scoped_clipboard_writer.cc
|
||||||
index 63b5d47b4069..5c48741a3fc7 100644
|
index 12680a66d17c..6b95e46e3558 100644
|
||||||
--- a/ui/base/clipboard/scoped_clipboard_writer.cc
|
--- a/ui/base/clipboard/scoped_clipboard_writer.cc
|
||||||
+++ b/ui/base/clipboard/scoped_clipboard_writer.cc
|
+++ b/ui/base/clipboard/scoped_clipboard_writer.cc
|
||||||
@@ -103,17 +103,16 @@ void ScopedClipboardWriter::WriteImage(const SkBitmap& bitmap) {
|
@@ -103,17 +103,16 @@ void ScopedClipboardWriter::WriteImage(const SkBitmap& bitmap) {
|
||||||
|
@ -25,7 +31,7 @@ index 63b5d47b4069..5c48741a3fc7 100644
|
||||||
|
|
||||||
Clipboard::ObjectMapParams parameters;
|
Clipboard::ObjectMapParams parameters;
|
||||||
parameters.push_back(format_parameter);
|
parameters.push_back(format_parameter);
|
||||||
@@ -121,6 +120,13 @@ void ScopedClipboardWriter::WritePickledData(
|
@@ -131,6 +130,13 @@ void ScopedClipboardWriter::WriteData(const std::string& type,
|
||||||
objects_[Clipboard::CBF_DATA] = parameters;
|
objects_[Clipboard::CBF_DATA] = parameters;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +46,7 @@ index 63b5d47b4069..5c48741a3fc7 100644
|
||||||
objects_.clear();
|
objects_.clear();
|
||||||
bitmap_.reset();
|
bitmap_.reset();
|
||||||
diff --git a/ui/base/clipboard/scoped_clipboard_writer.h b/ui/base/clipboard/scoped_clipboard_writer.h
|
diff --git a/ui/base/clipboard/scoped_clipboard_writer.h b/ui/base/clipboard/scoped_clipboard_writer.h
|
||||||
index bb889c9dd484..bf6cafd9c55a 100644
|
index 385900eb67de..cf1f803ec123 100644
|
||||||
--- a/ui/base/clipboard/scoped_clipboard_writer.h
|
--- a/ui/base/clipboard/scoped_clipboard_writer.h
|
||||||
+++ b/ui/base/clipboard/scoped_clipboard_writer.h
|
+++ b/ui/base/clipboard/scoped_clipboard_writer.h
|
||||||
@@ -57,6 +57,11 @@ class UI_BASE_EXPORT ScopedClipboardWriter {
|
@@ -57,6 +57,11 @@ class UI_BASE_EXPORT ScopedClipboardWriter {
|
||||||
|
@ -55,3 +61,6 @@ index bb889c9dd484..bf6cafd9c55a 100644
|
||||||
// Adds arbitrary pickled data to clipboard.
|
// Adds arbitrary pickled data to clipboard.
|
||||||
void WritePickledData(const base::Pickle& pickle,
|
void WritePickledData(const base::Pickle& pickle,
|
||||||
const Clipboard::FormatType& format);
|
const Clipboard::FormatType& format);
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,15 @@
|
||||||
|
From cc50dccf546c8bd730fb42e912e0cd231c9b1f84 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Cheng Zhao <zcbenz@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:49:03 -0700
|
||||||
|
Subject: scroll_bounce_flag.patch
|
||||||
|
|
||||||
|
Patch to make scrollBounce option work.
|
||||||
|
|
||||||
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
|
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
|
||||||
index 06f7d4487997..e1deb93f8b0d 100644
|
index c078565cef71..5c31ab7654d0 100644
|
||||||
--- a/content/renderer/render_thread_impl.cc
|
--- a/content/renderer/render_thread_impl.cc
|
||||||
+++ b/content/renderer/render_thread_impl.cc
|
+++ b/content/renderer/render_thread_impl.cc
|
||||||
@@ -1644,7 +1644,7 @@ bool RenderThreadImpl::IsGpuMemoryBufferCompositorResourcesEnabled() {
|
@@ -1610,7 +1610,7 @@ bool RenderThreadImpl::IsGpuMemoryBufferCompositorResourcesEnabled() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RenderThreadImpl::IsElasticOverscrollEnabled() {
|
bool RenderThreadImpl::IsElasticOverscrollEnabled() {
|
||||||
|
@ -10,4 +17,7 @@ index 06f7d4487997..e1deb93f8b0d 100644
|
||||||
+ return base::CommandLine::ForCurrentProcess()->HasSwitch("scroll-bounce");
|
+ return base::CommandLine::ForCurrentProcess()->HasSwitch("scroll-bounce");
|
||||||
}
|
}
|
||||||
|
|
||||||
scoped_refptr<base::SingleThreadTaskRunner>
|
bool RenderThreadImpl::IsUseZoomForDSFEnabled() {
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
|
From 87f31d450894df2b00c6a2d6fb7eb2639b595756 Mon Sep 17 00:00:00 2001
|
||||||
|
From: deepak1556 <hop2deep@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:50:34 -0700
|
||||||
|
Subject: ssl_security_state_tab_helper.patch
|
||||||
|
|
||||||
|
Allows populating security tab info for devtools in Electron.
|
||||||
|
|
||||||
diff --git a/chrome/browser/ssl/security_state_tab_helper.cc b/chrome/browser/ssl/security_state_tab_helper.cc
|
diff --git a/chrome/browser/ssl/security_state_tab_helper.cc b/chrome/browser/ssl/security_state_tab_helper.cc
|
||||||
index 7b12c9d2df52..e75171b86ef1 100644
|
index 58066f3a532b..a1643c6492e3 100644
|
||||||
--- a/chrome/browser/ssl/security_state_tab_helper.cc
|
--- a/chrome/browser/ssl/security_state_tab_helper.cc
|
||||||
+++ b/chrome/browser/ssl/security_state_tab_helper.cc
|
+++ b/chrome/browser/ssl/security_state_tab_helper.cc
|
||||||
@@ -13,17 +13,23 @@
|
@@ -13,17 +13,23 @@
|
||||||
|
@ -83,7 +90,7 @@ index 7b12c9d2df52..e75171b86ef1 100644
|
||||||
safe_browsing::SafeBrowsingService* sb_service =
|
safe_browsing::SafeBrowsingService* sb_service =
|
||||||
g_browser_process->safe_browsing_service();
|
g_browser_process->safe_browsing_service();
|
||||||
if (!sb_service)
|
if (!sb_service)
|
||||||
@@ -323,6 +337,7 @@ SecurityStateTabHelper::GetMaliciousContentStatus() const {
|
@@ -340,6 +354,7 @@ SecurityStateTabHelper::GetMaliciousContentStatus() const {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -91,7 +98,7 @@ index 7b12c9d2df52..e75171b86ef1 100644
|
||||||
return security_state::MALICIOUS_CONTENT_STATUS_NONE;
|
return security_state::MALICIOUS_CONTENT_STATUS_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -343,15 +358,19 @@ std::vector<std::string> SecurityStateTabHelper::GetSecureOriginsAndPatterns()
|
@@ -360,15 +375,19 @@ std::vector<std::string> SecurityStateTabHelper::GetSecureOriginsAndPatterns()
|
||||||
const {
|
const {
|
||||||
const base::CommandLine& command_line =
|
const base::CommandLine& command_line =
|
||||||
*base::CommandLine::ForCurrentProcess();
|
*base::CommandLine::ForCurrentProcess();
|
||||||
|
@ -112,7 +119,7 @@ index 7b12c9d2df52..e75171b86ef1 100644
|
||||||
return secure_origin_whitelist::ParseWhitelist(origins_str);
|
return secure_origin_whitelist::ParseWhitelist(origins_str);
|
||||||
}
|
}
|
||||||
diff --git a/chrome/common/secure_origin_whitelist.cc b/chrome/common/secure_origin_whitelist.cc
|
diff --git a/chrome/common/secure_origin_whitelist.cc b/chrome/common/secure_origin_whitelist.cc
|
||||||
index db9bb54ddbc1..cc7a22bdb920 100644
|
index 3319df136d4d..fbc6eea480d2 100644
|
||||||
--- a/chrome/common/secure_origin_whitelist.cc
|
--- a/chrome/common/secure_origin_whitelist.cc
|
||||||
+++ b/chrome/common/secure_origin_whitelist.cc
|
+++ b/chrome/common/secure_origin_whitelist.cc
|
||||||
@@ -13,7 +13,9 @@
|
@@ -13,7 +13,9 @@
|
||||||
|
@ -125,7 +132,7 @@ index db9bb54ddbc1..cc7a22bdb920 100644
|
||||||
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
|
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
|
||||||
#include "url/gurl.h"
|
#include "url/gurl.h"
|
||||||
#include "url/origin.h"
|
#include "url/origin.h"
|
||||||
@@ -155,7 +157,9 @@ std::vector<std::string> GetWhitelist() {
|
@@ -163,7 +165,9 @@ std::vector<std::string> GetWhitelist() {
|
||||||
|
|
||||||
std::set<std::string> GetSchemesBypassingSecureContextCheck() {
|
std::set<std::string> GetSchemesBypassingSecureContextCheck() {
|
||||||
std::set<std::string> schemes;
|
std::set<std::string> schemes;
|
||||||
|
@ -135,3 +142,6 @@ index db9bb54ddbc1..cc7a22bdb920 100644
|
||||||
return schemes;
|
return schemes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
From a99c5f94fd02a391cde00aedfd613937cb72d558 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Aleksei Kuzmin <alkuzmin@microsoft.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:47:22 -0700
|
||||||
|
Subject: statically_build_power_save_blocker.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/services/device/wake_lock/power_save_blocker/BUILD.gn b/services/device/wake_lock/power_save_blocker/BUILD.gn
|
diff --git a/services/device/wake_lock/power_save_blocker/BUILD.gn b/services/device/wake_lock/power_save_blocker/BUILD.gn
|
||||||
index dfce90f6b791..a2f7f776f4d8 100644
|
index dfce90f6b791..a2f7f776f4d8 100644
|
||||||
--- a/services/device/wake_lock/power_save_blocker/BUILD.gn
|
--- a/services/device/wake_lock/power_save_blocker/BUILD.gn
|
||||||
|
@ -19,3 +25,6 @@ index dfce90f6b791..a2f7f776f4d8 100644
|
||||||
]
|
]
|
||||||
|
|
||||||
sources = [
|
sources = [
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
|
From 62bf8be2412ea4b7fef28d0a6fc2a8baecc8980e Mon Sep 17 00:00:00 2001
|
||||||
|
From: deepak1556 <hop2deep@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:46:39 -0700
|
||||||
|
Subject: stream_resource_handler.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/content/browser/loader/stream_resource_handler.h b/content/browser/loader/stream_resource_handler.h
|
diff --git a/content/browser/loader/stream_resource_handler.h b/content/browser/loader/stream_resource_handler.h
|
||||||
index cb8a2d58d6b8..dbfa64089325 100644
|
index b6f51bba48cd..1ee88dfacee3 100644
|
||||||
--- a/content/browser/loader/stream_resource_handler.h
|
--- a/content/browser/loader/stream_resource_handler.h
|
||||||
+++ b/content/browser/loader/stream_resource_handler.h
|
+++ b/content/browser/loader/stream_resource_handler.h
|
||||||
@@ -11,6 +11,7 @@
|
@@ -11,6 +11,7 @@
|
||||||
|
@ -19,3 +25,6 @@ index cb8a2d58d6b8..dbfa64089325 100644
|
||||||
public:
|
public:
|
||||||
// |origin| will be used to construct the URL for the Stream. See
|
// |origin| will be used to construct the URL for the Stream. See
|
||||||
// WebCore::BlobURL and and WebCore::SecurityOrigin in Blink to understand
|
// WebCore::BlobURL and and WebCore::SecurityOrigin in Blink to understand
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
From 47f675c132ac4d4234f14f0c1ffb7aea407a60f7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Anonymous <anonymous@electronjs.org>
|
||||||
|
Date: Thu, 20 Sep 2018 17:46:43 -0700
|
||||||
|
Subject: thread_capabilities.patch
|
||||||
|
|
||||||
|
Chromium automatically drops all capabilities of renderer threads in
|
||||||
|
Linux, which may cause issues in a context like Electron, where the main
|
||||||
|
and renderer threads are supposed to keep inherited permissions over the
|
||||||
|
system.
|
||||||
|
|
||||||
|
See https://github.com/atom/electron/issues/3666
|
||||||
|
|
||||||
diff --git a/sandbox/linux/services/credentials.cc b/sandbox/linux/services/credentials.cc
|
diff --git a/sandbox/linux/services/credentials.cc b/sandbox/linux/services/credentials.cc
|
||||||
index ad0714a7f5ed..1406e1d53f2f 100644
|
index ad0714a7f5ed..1406e1d53f2f 100644
|
||||||
--- a/sandbox/linux/services/credentials.cc
|
--- a/sandbox/linux/services/credentials.cc
|
||||||
|
@ -13,3 +25,6 @@ index ad0714a7f5ed..1406e1d53f2f 100644
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
From 808f3b08bf415b980b6e47573ca178c333c9c344 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Cheng Zhao <zcbenz@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:46:50 -0700
|
||||||
|
Subject: use_transparent_window.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/ui/gl/gpu_switching_manager.cc b/ui/gl/gpu_switching_manager.cc
|
diff --git a/ui/gl/gpu_switching_manager.cc b/ui/gl/gpu_switching_manager.cc
|
||||||
index be7156465809..4529866b0864 100644
|
index be7156465809..4529866b0864 100644
|
||||||
--- a/ui/gl/gpu_switching_manager.cc
|
--- a/ui/gl/gpu_switching_manager.cc
|
||||||
|
@ -46,3 +52,6 @@ index 4308bbed9398..a7cafcfccdff 100644
|
||||||
void AddObserver(GpuSwitchingObserver* observer);
|
void AddObserver(GpuSwitchingObserver* observer);
|
||||||
void RemoveObserver(GpuSwitchingObserver* observer);
|
void RemoveObserver(GpuSwitchingObserver* observer);
|
||||||
|
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,16 @@
|
||||||
|
From e51d8c2a477d55c279c5935c02dab83ef34f3392 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Nitish Sakhawalkar <nitsakh@icloud.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:47:58 -0700
|
||||||
|
Subject: v8_context_snapshot_generator.patch
|
||||||
|
|
||||||
|
v8_context_snapshot_generator is a build time executable.
|
||||||
|
The patch adds the config.
|
||||||
|
|
||||||
diff --git a/tools/v8_context_snapshot/BUILD.gn b/tools/v8_context_snapshot/BUILD.gn
|
diff --git a/tools/v8_context_snapshot/BUILD.gn b/tools/v8_context_snapshot/BUILD.gn
|
||||||
index d6691a527f25..000105b86f53 100644
|
index b119ec095c7b..47df8af5ef68 100644
|
||||||
--- a/tools/v8_context_snapshot/BUILD.gn
|
--- a/tools/v8_context_snapshot/BUILD.gn
|
||||||
+++ b/tools/v8_context_snapshot/BUILD.gn
|
+++ b/tools/v8_context_snapshot/BUILD.gn
|
||||||
@@ -105,6 +105,7 @@ if (use_v8_context_snapshot) {
|
@@ -114,6 +114,7 @@ if (use_v8_context_snapshot) {
|
||||||
configs += [
|
configs += [
|
||||||
"//v8:external_startup_data",
|
"//v8:external_startup_data",
|
||||||
":disable_icf",
|
":disable_icf",
|
||||||
|
@ -10,3 +18,6 @@ index d6691a527f25..000105b86f53 100644
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
|
From 3fae422b46dec513879ec6d4fd8c8dd4c4cdcd0f Mon Sep 17 00:00:00 2001
|
||||||
|
From: Anonymous <anonymous@electronjs.org>
|
||||||
|
Date: Thu, 20 Sep 2018 17:46:53 -0700
|
||||||
|
Subject: web_contents.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
||||||
index 6ae9bf2f9c6a..6ed6ece96d0f 100644
|
index 26384f823b51..64ad6ca91d93 100644
|
||||||
--- a/content/browser/web_contents/web_contents_impl.cc
|
--- a/content/browser/web_contents/web_contents_impl.cc
|
||||||
+++ b/content/browser/web_contents/web_contents_impl.cc
|
+++ b/content/browser/web_contents/web_contents_impl.cc
|
||||||
@@ -1845,6 +1845,12 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params) {
|
@@ -1931,6 +1931,12 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params) {
|
||||||
std::string unique_name;
|
std::string unique_name;
|
||||||
frame_tree_.root()->SetFrameName(params.main_frame_name, unique_name);
|
frame_tree_.root()->SetFrameName(params.main_frame_name, unique_name);
|
||||||
|
|
||||||
|
@ -15,7 +21,7 @@ index 6ae9bf2f9c6a..6ed6ece96d0f 100644
|
||||||
WebContentsViewDelegate* delegate =
|
WebContentsViewDelegate* delegate =
|
||||||
GetContentClient()->browser()->GetWebContentsViewDelegate(this);
|
GetContentClient()->browser()->GetWebContentsViewDelegate(this);
|
||||||
|
|
||||||
@@ -1860,6 +1866,7 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params) {
|
@@ -1946,6 +1952,7 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params) {
|
||||||
&render_view_host_delegate_view_);
|
&render_view_host_delegate_view_);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,7 +30,7 @@ index 6ae9bf2f9c6a..6ed6ece96d0f 100644
|
||||||
CHECK(view_.get());
|
CHECK(view_.get());
|
||||||
|
|
||||||
diff --git a/content/browser/web_contents/web_contents_view_guest.cc b/content/browser/web_contents/web_contents_view_guest.cc
|
diff --git a/content/browser/web_contents/web_contents_view_guest.cc b/content/browser/web_contents/web_contents_view_guest.cc
|
||||||
index 699570cc1390..63e60667fa7d 100644
|
index 44c68ed25b66..c7b0c747fa41 100644
|
||||||
--- a/content/browser/web_contents/web_contents_view_guest.cc
|
--- a/content/browser/web_contents/web_contents_view_guest.cc
|
||||||
+++ b/content/browser/web_contents/web_contents_view_guest.cc
|
+++ b/content/browser/web_contents/web_contents_view_guest.cc
|
||||||
@@ -67,21 +67,27 @@ gfx::NativeWindow WebContentsViewGuest::GetTopLevelNativeWindow() const {
|
@@ -67,21 +67,27 @@ gfx::NativeWindow WebContentsViewGuest::GetTopLevelNativeWindow() const {
|
||||||
|
@ -38,7 +44,7 @@ index 699570cc1390..63e60667fa7d 100644
|
||||||
// view hierarchy. We add this view as embedder's child here.
|
// view hierarchy. We add this view as embedder's child here.
|
||||||
// This would go in WebContentsViewGuest::CreateView, but that is too early to
|
// This would go in WebContentsViewGuest::CreateView, but that is too early to
|
||||||
// access embedder_web_contents(). Therefore, we do it here.
|
// access embedder_web_contents(). Therefore, we do it here.
|
||||||
if (!base::FeatureList::IsEnabled(features::kMash))
|
if (features::IsAshInBrowserProcess())
|
||||||
- parent_view->GetNativeView()->AddChild(platform_view_->GetNativeView());
|
- parent_view->GetNativeView()->AddChild(platform_view_->GetNativeView());
|
||||||
+ if (parent_view->GetNativeView() != platform_view_->GetNativeView())
|
+ if (parent_view->GetNativeView() != platform_view_->GetNativeView())
|
||||||
+ parent_view->GetNativeView()->AddChild(platform_view_->GetNativeView());
|
+ parent_view->GetNativeView()->AddChild(platform_view_->GetNativeView());
|
||||||
|
@ -49,7 +55,7 @@ index 699570cc1390..63e60667fa7d 100644
|
||||||
#if defined(USE_AURA)
|
#if defined(USE_AURA)
|
||||||
+ if (!platform_view_->GetNativeView())
|
+ if (!platform_view_->GetNativeView())
|
||||||
+ return;
|
+ return;
|
||||||
if (!base::FeatureList::IsEnabled(features::kMash)) {
|
if (features::IsAshInBrowserProcess()) {
|
||||||
- old_parent_view->GetNativeView()->RemoveChild(
|
- old_parent_view->GetNativeView()->RemoveChild(
|
||||||
- platform_view_->GetNativeView());
|
- platform_view_->GetNativeView());
|
||||||
+ if (old_parent_view->GetNativeView() != platform_view_->GetNativeView())
|
+ if (old_parent_view->GetNativeView() != platform_view_->GetNativeView())
|
||||||
|
@ -86,10 +92,10 @@ index 699570cc1390..63e60667fa7d 100644
|
||||||
|
|
||||||
RenderWidgetHostViewBase* WebContentsViewGuest::CreateViewForPopupWidget(
|
RenderWidgetHostViewBase* WebContentsViewGuest::CreateViewForPopupWidget(
|
||||||
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
|
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
|
||||||
index dee5814a247c..7690ce8d404b 100644
|
index 0f82f91e437c..0deb4d93fffb 100644
|
||||||
--- a/content/public/browser/web_contents.h
|
--- a/content/public/browser/web_contents.h
|
||||||
+++ b/content/public/browser/web_contents.h
|
+++ b/content/public/browser/web_contents.h
|
||||||
@@ -74,9 +74,12 @@ class BrowserPluginGuestDelegate;
|
@@ -76,9 +76,12 @@ class BrowserPluginGuestDelegate;
|
||||||
class InterstitialPage;
|
class InterstitialPage;
|
||||||
class RenderFrameHost;
|
class RenderFrameHost;
|
||||||
class RenderViewHost;
|
class RenderViewHost;
|
||||||
|
@ -102,7 +108,7 @@ index dee5814a247c..7690ce8d404b 100644
|
||||||
struct CustomContextMenuContext;
|
struct CustomContextMenuContext;
|
||||||
struct DropData;
|
struct DropData;
|
||||||
struct MHTMLGenerationParams;
|
struct MHTMLGenerationParams;
|
||||||
@@ -213,6 +216,10 @@ class WebContents : public PageNavigator,
|
@@ -215,6 +218,10 @@ class WebContents : public PageNavigator,
|
||||||
kInitializeAndWarmupRendererProcess,
|
kInitializeAndWarmupRendererProcess,
|
||||||
} desired_renderer_state;
|
} desired_renderer_state;
|
||||||
|
|
||||||
|
@ -112,4 +118,7 @@ index dee5814a247c..7690ce8d404b 100644
|
||||||
+
|
+
|
||||||
// Sandboxing flags set on the new WebContents.
|
// Sandboxing flags set on the new WebContents.
|
||||||
blink::WebSandboxFlags starting_sandbox_flags;
|
blink::WebSandboxFlags starting_sandbox_flags;
|
||||||
};
|
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
|
From 2ece85392855af0ea2c9406f98922a869d335bcd Mon Sep 17 00:00:00 2001
|
||||||
|
From: Milan Burda <milan.burda@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:47:01 -0700
|
||||||
|
Subject: webgl_context_attributes.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
|
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
|
||||||
index 4205c92765af..c82360f146d1 100644
|
index a9b86c68fe50..46931503ec2b 100644
|
||||||
--- a/content/renderer/renderer_blink_platform_impl.cc
|
--- a/content/renderer/renderer_blink_platform_impl.cc
|
||||||
+++ b/content/renderer/renderer_blink_platform_impl.cc
|
+++ b/content/renderer/renderer_blink_platform_impl.cc
|
||||||
@@ -1021,8 +1021,10 @@ RendererBlinkPlatformImpl::CreateOffscreenGraphicsContext3DProvider(
|
@@ -997,8 +997,10 @@ RendererBlinkPlatformImpl::CreateOffscreenGraphicsContext3DProvider(
|
||||||
attributes.sample_buffers = 0;
|
attributes.sample_buffers = 0;
|
||||||
attributes.bind_generates_resource = false;
|
attributes.bind_generates_resource = false;
|
||||||
attributes.enable_raster_interface = web_attributes.enable_raster_interface;
|
attributes.enable_raster_interface = web_attributes.enable_raster_interface;
|
||||||
|
@ -16,11 +22,11 @@ index 4205c92765af..c82360f146d1 100644
|
||||||
attributes.fail_if_major_perf_caveat =
|
attributes.fail_if_major_perf_caveat =
|
||||||
web_attributes.fail_if_major_performance_caveat;
|
web_attributes.fail_if_major_performance_caveat;
|
||||||
diff --git a/third_party/blink/public/platform/platform.h b/third_party/blink/public/platform/platform.h
|
diff --git a/third_party/blink/public/platform/platform.h b/third_party/blink/public/platform/platform.h
|
||||||
index f3ec52975650..920d161a1b81 100644
|
index f927253a7e0b..12ada20ec3a3 100644
|
||||||
--- a/third_party/blink/public/platform/platform.h
|
--- a/third_party/blink/public/platform/platform.h
|
||||||
+++ b/third_party/blink/public/platform/platform.h
|
+++ b/third_party/blink/public/platform/platform.h
|
||||||
@@ -493,6 +493,7 @@ class BLINK_PLATFORM_EXPORT Platform {
|
@@ -500,6 +500,7 @@ class BLINK_PLATFORM_EXPORT Platform {
|
||||||
kGLES3ContextType, // GLES 3.0 context
|
kGLES3ContextType, // GLES 3.0 context
|
||||||
};
|
};
|
||||||
struct ContextAttributes {
|
struct ContextAttributes {
|
||||||
+ bool prefer_integrated_gpu = false;
|
+ bool prefer_integrated_gpu = false;
|
||||||
|
@ -28,7 +34,7 @@ index f3ec52975650..920d161a1b81 100644
|
||||||
ContextType context_type = kGLES2ContextType;
|
ContextType context_type = kGLES2ContextType;
|
||||||
// Offscreen contexts usually share a surface for the default frame buffer
|
// Offscreen contexts usually share a surface for the default frame buffer
|
||||||
diff --git a/third_party/blink/renderer/core/html/canvas/canvas_context_creation_attributes_core.h b/third_party/blink/renderer/core/html/canvas/canvas_context_creation_attributes_core.h
|
diff --git a/third_party/blink/renderer/core/html/canvas/canvas_context_creation_attributes_core.h b/third_party/blink/renderer/core/html/canvas/canvas_context_creation_attributes_core.h
|
||||||
index 298e186289a0..5223ae30db6b 100644
|
index 03da0840b0e3..9551675de44d 100644
|
||||||
--- a/third_party/blink/renderer/core/html/canvas/canvas_context_creation_attributes_core.h
|
--- a/third_party/blink/renderer/core/html/canvas/canvas_context_creation_attributes_core.h
|
||||||
+++ b/third_party/blink/renderer/core/html/canvas/canvas_context_creation_attributes_core.h
|
+++ b/third_party/blink/renderer/core/html/canvas/canvas_context_creation_attributes_core.h
|
||||||
@@ -30,6 +30,7 @@ class CORE_EXPORT CanvasContextCreationAttributesCore {
|
@@ -30,6 +30,7 @@ class CORE_EXPORT CanvasContextCreationAttributesCore {
|
||||||
|
@ -65,7 +71,7 @@ index 7b655dd12a77..8969eb7d98f3 100644
|
||||||
[OriginTrialEnabled=WebXR] XRDevice compatibleXRDevice = null;
|
[OriginTrialEnabled=WebXR] XRDevice compatibleXRDevice = null;
|
||||||
};
|
};
|
||||||
diff --git a/third_party/blink/renderer/modules/webgl/webgl_context_attribute_helpers.cc b/third_party/blink/renderer/modules/webgl/webgl_context_attribute_helpers.cc
|
diff --git a/third_party/blink/renderer/modules/webgl/webgl_context_attribute_helpers.cc b/third_party/blink/renderer/modules/webgl/webgl_context_attribute_helpers.cc
|
||||||
index 7274af57b8ee..2a2737da1a56 100644
|
index 3846b2a179d9..bf7c63a81391 100644
|
||||||
--- a/third_party/blink/renderer/modules/webgl/webgl_context_attribute_helpers.cc
|
--- a/third_party/blink/renderer/modules/webgl/webgl_context_attribute_helpers.cc
|
||||||
+++ b/third_party/blink/renderer/modules/webgl/webgl_context_attribute_helpers.cc
|
+++ b/third_party/blink/renderer/modules/webgl/webgl_context_attribute_helpers.cc
|
||||||
@@ -18,6 +18,7 @@ WebGLContextAttributes ToWebGLContextAttributes(
|
@@ -18,6 +18,7 @@ WebGLContextAttributes ToWebGLContextAttributes(
|
||||||
|
@ -77,13 +83,13 @@ index 7274af57b8ee..2a2737da1a56 100644
|
||||||
attrs.fail_if_major_performance_caveat);
|
attrs.fail_if_major_performance_caveat);
|
||||||
result.setCompatibleXRDevice(
|
result.setCompatibleXRDevice(
|
||||||
@@ -30,6 +31,7 @@ Platform::ContextAttributes ToPlatformContextAttributes(
|
@@ -30,6 +31,7 @@ Platform::ContextAttributes ToPlatformContextAttributes(
|
||||||
unsigned web_gl_version,
|
Platform::ContextType context_type,
|
||||||
bool support_own_offscreen_surface) {
|
bool support_own_offscreen_surface) {
|
||||||
Platform::ContextAttributes result;
|
Platform::ContextAttributes result;
|
||||||
+ result.prefer_integrated_gpu = attrs.power_preference == "low-power";
|
+ result.prefer_integrated_gpu = attrs.power_preference == "low-power";
|
||||||
result.fail_if_major_performance_caveat =
|
result.fail_if_major_performance_caveat =
|
||||||
attrs.fail_if_major_performance_caveat;
|
attrs.fail_if_major_performance_caveat;
|
||||||
result.context_type = web_gl_version == 2 ? Platform::kWebGL2ContextType
|
result.context_type = context_type;
|
||||||
diff --git a/third_party/blink/renderer/modules/webgl/webgl_context_attributes.idl b/third_party/blink/renderer/modules/webgl/webgl_context_attributes.idl
|
diff --git a/third_party/blink/renderer/modules/webgl/webgl_context_attributes.idl b/third_party/blink/renderer/modules/webgl/webgl_context_attributes.idl
|
||||||
index 38ca0f6b6a0c..90cfe8497daf 100644
|
index 38ca0f6b6a0c..90cfe8497daf 100644
|
||||||
--- a/third_party/blink/renderer/modules/webgl/webgl_context_attributes.idl
|
--- a/third_party/blink/renderer/modules/webgl/webgl_context_attributes.idl
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
|
From 8154c4c74afebf8f2918cf18179b6c8eda632af6 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Anonymous <anonymous@electronjs.org>
|
||||||
|
Date: Thu, 20 Sep 2018 17:47:15 -0700
|
||||||
|
Subject: webui_in_subframes.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/content/browser/frame_host/render_frame_host_delegate.cc b/content/browser/frame_host/render_frame_host_delegate.cc
|
diff --git a/content/browser/frame_host/render_frame_host_delegate.cc b/content/browser/frame_host/render_frame_host_delegate.cc
|
||||||
index 390bcf09995e..f9090f8ea24a 100644
|
index 26b8eec2bb76..fb3843168f14 100644
|
||||||
--- a/content/browser/frame_host/render_frame_host_delegate.cc
|
--- a/content/browser/frame_host/render_frame_host_delegate.cc
|
||||||
+++ b/content/browser/frame_host/render_frame_host_delegate.cc
|
+++ b/content/browser/frame_host/render_frame_host_delegate.cc
|
||||||
@@ -99,7 +99,9 @@ RenderFrameHostDelegate::GetFocusedFrameIncludingInnerWebContents() {
|
@@ -99,7 +99,9 @@ RenderFrameHostDelegate::GetFocusedFrameIncludingInnerWebContents() {
|
||||||
|
@ -14,10 +20,10 @@ index 390bcf09995e..f9090f8ea24a 100644
|
||||||
}
|
}
|
||||||
|
|
||||||
diff --git a/content/browser/frame_host/render_frame_host_delegate.h b/content/browser/frame_host/render_frame_host_delegate.h
|
diff --git a/content/browser/frame_host/render_frame_host_delegate.h b/content/browser/frame_host/render_frame_host_delegate.h
|
||||||
index cd4a295dfa37..1057c6d33b9e 100644
|
index 7919ac1e5795..03f331915213 100644
|
||||||
--- a/content/browser/frame_host/render_frame_host_delegate.h
|
--- a/content/browser/frame_host/render_frame_host_delegate.h
|
||||||
+++ b/content/browser/frame_host/render_frame_host_delegate.h
|
+++ b/content/browser/frame_host/render_frame_host_delegate.h
|
||||||
@@ -275,7 +275,8 @@ class CONTENT_EXPORT RenderFrameHostDelegate {
|
@@ -278,7 +278,8 @@ class CONTENT_EXPORT RenderFrameHostDelegate {
|
||||||
// Creates a WebUI object for a frame navigating to |url|. If no WebUI
|
// Creates a WebUI object for a frame navigating to |url|. If no WebUI
|
||||||
// applies, returns null.
|
// applies, returns null.
|
||||||
virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(
|
virtual std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(
|
||||||
|
@ -28,10 +34,10 @@ index cd4a295dfa37..1057c6d33b9e 100644
|
||||||
// Called by |frame| to notify that it has received an update on focused
|
// Called by |frame| to notify that it has received an update on focused
|
||||||
// element. |bounds_in_root_view| is the rectangle containing the element that
|
// element. |bounds_in_root_view| is the rectangle containing the element that
|
||||||
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
|
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
|
||||||
index 7a53675a2139..29bb8eaba5c1 100644
|
index 783dc705f748..9fa14c824032 100644
|
||||||
--- a/content/browser/frame_host/render_frame_host_impl.cc
|
--- a/content/browser/frame_host/render_frame_host_impl.cc
|
||||||
+++ b/content/browser/frame_host/render_frame_host_impl.cc
|
+++ b/content/browser/frame_host/render_frame_host_impl.cc
|
||||||
@@ -25,6 +25,7 @@
|
@@ -26,6 +26,7 @@
|
||||||
#include "base/task_scheduler/post_task.h"
|
#include "base/task_scheduler/post_task.h"
|
||||||
#include "base/threading/thread_task_runner_handle.h"
|
#include "base/threading/thread_task_runner_handle.h"
|
||||||
#include "base/time/time.h"
|
#include "base/time/time.h"
|
||||||
|
@ -39,7 +45,7 @@ index 7a53675a2139..29bb8eaba5c1 100644
|
||||||
#include "build/build_config.h"
|
#include "build/build_config.h"
|
||||||
#include "cc/base/switches.h"
|
#include "cc/base/switches.h"
|
||||||
#include "content/browser/accessibility/browser_accessibility_manager.h"
|
#include "content/browser/accessibility/browser_accessibility_manager.h"
|
||||||
@@ -4198,8 +4199,23 @@ bool RenderFrameHostImpl::UpdatePendingWebUI(const GURL& dest_url,
|
@@ -4314,8 +4315,23 @@ bool RenderFrameHostImpl::UpdatePendingWebUI(const GURL& dest_url,
|
||||||
DCHECK(web_ui_);
|
DCHECK(web_ui_);
|
||||||
should_reuse_web_ui_ = true;
|
should_reuse_web_ui_ = true;
|
||||||
} else {
|
} else {
|
||||||
|
@ -65,10 +71,10 @@ index 7a53675a2139..29bb8eaba5c1 100644
|
||||||
pending_web_ui_type_ = new_web_ui_type;
|
pending_web_ui_type_ = new_web_ui_type;
|
||||||
|
|
||||||
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
||||||
index 6ed6ece96d0f..11bf320311bb 100644
|
index 64ad6ca91d93..88211169a7d7 100644
|
||||||
--- a/content/browser/web_contents/web_contents_impl.cc
|
--- a/content/browser/web_contents/web_contents_impl.cc
|
||||||
+++ b/content/browser/web_contents/web_contents_impl.cc
|
+++ b/content/browser/web_contents/web_contents_impl.cc
|
||||||
@@ -752,6 +752,25 @@ RenderFrameHostManager* WebContentsImpl::GetRenderManagerForTesting() {
|
@@ -788,6 +788,25 @@ RenderFrameHostManager* WebContentsImpl::GetRenderManagerForTesting() {
|
||||||
return GetRenderManager();
|
return GetRenderManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,7 +100,7 @@ index 6ed6ece96d0f..11bf320311bb 100644
|
||||||
bool WebContentsImpl::OnMessageReceived(RenderViewHostImpl* render_view_host,
|
bool WebContentsImpl::OnMessageReceived(RenderViewHostImpl* render_view_host,
|
||||||
const IPC::Message& message) {
|
const IPC::Message& message) {
|
||||||
for (auto& observer : observers_) {
|
for (auto& observer : observers_) {
|
||||||
@@ -787,9 +806,10 @@ bool WebContentsImpl::OnMessageReceived(RenderViewHostImpl* render_view_host,
|
@@ -823,9 +842,10 @@ bool WebContentsImpl::OnMessageReceived(RenderViewHostImpl* render_view_host,
|
||||||
|
|
||||||
bool WebContentsImpl::OnMessageReceived(RenderFrameHostImpl* render_frame_host,
|
bool WebContentsImpl::OnMessageReceived(RenderFrameHostImpl* render_frame_host,
|
||||||
const IPC::Message& message) {
|
const IPC::Message& message) {
|
||||||
|
@ -108,7 +114,7 @@ index 6ed6ece96d0f..11bf320311bb 100644
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -5782,8 +5802,9 @@ NavigationControllerImpl& WebContentsImpl::GetControllerForRenderManager() {
|
@@ -5974,8 +5994,9 @@ NavigationControllerImpl& WebContentsImpl::GetControllerForRenderManager() {
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<WebUIImpl> WebContentsImpl::CreateWebUIForRenderFrameHost(
|
std::unique_ptr<WebUIImpl> WebContentsImpl::CreateWebUIForRenderFrameHost(
|
||||||
|
@ -121,10 +127,10 @@ index 6ed6ece96d0f..11bf320311bb 100644
|
||||||
|
|
||||||
NavigationEntry*
|
NavigationEntry*
|
||||||
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
|
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
|
||||||
index cd1c992c7738..5d52d8cb0bc4 100644
|
index d16a99122772..907738e0bf80 100644
|
||||||
--- a/content/browser/web_contents/web_contents_impl.h
|
--- a/content/browser/web_contents/web_contents_impl.h
|
||||||
+++ b/content/browser/web_contents/web_contents_impl.h
|
+++ b/content/browser/web_contents/web_contents_impl.h
|
||||||
@@ -543,7 +543,8 @@ class CONTENT_EXPORT WebContentsImpl : public WebContents,
|
@@ -542,7 +542,8 @@ class CONTENT_EXPORT WebContentsImpl : public WebContents,
|
||||||
SiteInstance* source_site_instance) const override;
|
SiteInstance* source_site_instance) const override;
|
||||||
void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override;
|
void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override;
|
||||||
std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(
|
std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(
|
||||||
|
@ -134,3 +140,6 @@ index cd1c992c7738..5d52d8cb0bc4 100644
|
||||||
void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override;
|
void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override;
|
||||||
void DidCallFocus() override;
|
void DidCallFocus() override;
|
||||||
RenderFrameHost* GetFocusedFrameIncludingInnerWebContents() override;
|
RenderFrameHost* GetFocusedFrameIncludingInnerWebContents() override;
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
|
From 27c9f8e5be435006424d885985f4e017602402fe Mon Sep 17 00:00:00 2001
|
||||||
|
From: Anonymous <anonymous@electronjs.org>
|
||||||
|
Date: Thu, 20 Sep 2018 17:47:04 -0700
|
||||||
|
Subject: webview_cross_drag.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc
|
diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc
|
||||||
index 984fa41d064c..28c018d9fbfc 100644
|
index 713b17948ef7..cd2d022ff53e 100644
|
||||||
--- a/content/browser/web_contents/web_contents_view_aura.cc
|
--- a/content/browser/web_contents/web_contents_view_aura.cc
|
||||||
+++ b/content/browser/web_contents/web_contents_view_aura.cc
|
+++ b/content/browser/web_contents/web_contents_view_aura.cc
|
||||||
@@ -609,6 +609,7 @@ gfx::NativeView WebContentsViewAura::GetRenderWidgetHostViewParent() const {
|
@@ -609,6 +609,7 @@ gfx::NativeView WebContentsViewAura::GetRenderWidgetHostViewParent() const {
|
||||||
|
@ -22,3 +28,6 @@ index cec3bd8a97b8..7a2b4462bd44 100644
|
||||||
return targetRWH->GetProcess()->GetID() == dragStartProcessID_ ||
|
return targetRWH->GetProcess()->GetID() == dragStartProcessID_ ||
|
||||||
GetRenderViewHostID(webContents_->GetRenderViewHost()) !=
|
GetRenderViewHostID(webContents_->GetRenderViewHost()) !=
|
||||||
dragStartViewID_;
|
dragStartViewID_;
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,28 @@
|
||||||
|
From e97c5ed19320a2fc34e8b71ef838d176db8bd5b0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Cheng Zhao <zcbenz@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:49:13 -0700
|
||||||
|
Subject: webview_reattach.patch
|
||||||
|
|
||||||
|
Backports https://chromium-review.googlesource.com/c/chromium/src/+/1161391
|
||||||
|
Fixes webview not working after renderer process restarted.
|
||||||
|
|
||||||
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
||||||
index 11bf320311bb..27f087d4f706 100644
|
index 88211169a7d7..7b2715aea2af 100644
|
||||||
--- a/content/browser/web_contents/web_contents_impl.cc
|
--- a/content/browser/web_contents/web_contents_impl.cc
|
||||||
+++ b/content/browser/web_contents/web_contents_impl.cc
|
+++ b/content/browser/web_contents/web_contents_impl.cc
|
||||||
@@ -4725,6 +4725,11 @@ void WebContentsImpl::NotifyViewSwapped(RenderViewHost* old_host,
|
@@ -4906,6 +4906,12 @@ void WebContentsImpl::NotifyViewSwapped(RenderViewHost* old_host,
|
||||||
for (auto& observer : observers_)
|
|
||||||
observer.RenderViewHostChanged(old_host, new_host);
|
view_->RenderViewHostChanged(old_host, new_host);
|
||||||
|
|
||||||
+ // If this is an inner WebContents that has swapped views, we need to reattach
|
+ // If this is an inner WebContents that has swapped views, we need to reattach
|
||||||
+ // it to its outer WebContents.
|
+ // it to its outer WebContents.
|
||||||
+ if (node_.outer_web_contents())
|
+ if (node_.outer_web_contents())
|
||||||
+ ReattachToOuterWebContentsFrame();
|
+ ReattachToOuterWebContentsFrame();
|
||||||
|
+
|
||||||
+
|
+
|
||||||
// Ensure that the associated embedder gets cleared after a RenderViewHost
|
// Ensure that the associated embedder gets cleared after a RenderViewHost
|
||||||
// gets swapped, so we don't reuse the same embedder next time a
|
// gets swapped, so we don't reuse the same embedder next time a
|
||||||
// RenderViewHost is attached to this WebContents.
|
// RenderViewHost is attached to this WebContents.
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
|
From 8fda73933a1a6d1a25b6160bc3629132ba075bfd Mon Sep 17 00:00:00 2001
|
||||||
|
From: John Kleinschmidt <jkleinsc@github.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:49:45 -0700
|
||||||
|
Subject: windows_cc_wrapper.patch
|
||||||
|
|
||||||
|
Allow use of cc_wrapper (eg sccache).
|
||||||
|
|
||||||
diff --git a/build/toolchain/win/BUILD.gn b/build/toolchain/win/BUILD.gn
|
diff --git a/build/toolchain/win/BUILD.gn b/build/toolchain/win/BUILD.gn
|
||||||
index 286c791613ba..55b5499a1cb2 100644
|
index fdffcdbdbbfe..0b7487e1d288 100644
|
||||||
--- a/build/toolchain/win/BUILD.gn
|
--- a/build/toolchain/win/BUILD.gn
|
||||||
+++ b/build/toolchain/win/BUILD.gn
|
+++ b/build/toolchain/win/BUILD.gn
|
||||||
@@ -6,6 +6,7 @@ import("//build/config/clang/clang.gni")
|
@@ -6,6 +6,7 @@ import("//build/config/clang/clang.gni")
|
||||||
|
@ -25,21 +32,24 @@ index 286c791613ba..55b5499a1cb2 100644
|
||||||
}
|
}
|
||||||
|
|
||||||
# Copy the VS runtime DLL for the default toolchain to the root build directory
|
# Copy the VS runtime DLL for the default toolchain to the root build directory
|
||||||
@@ -381,7 +388,7 @@ if (win_build_host_cpu != "x64") {
|
@@ -404,7 +411,7 @@ if (win_build_host_cpu != "x64") {
|
||||||
msvc_toolchain("win_clang_" + win_build_host_cpu) {
|
msvc_toolchain("win_clang_" + win_build_host_cpu) {
|
||||||
environment = "environment." + win_build_host_cpu
|
environment = "environment." + win_build_host_cpu
|
||||||
prefix = rebase_path("$clang_base_path/bin", root_build_dir)
|
prefix = rebase_path("$clang_base_path/bin", root_build_dir)
|
||||||
- cl = "${goma_prefix}$prefix/${clang_cl}"
|
- cl = "${goma_prefix}$prefix/${clang_cl}"
|
||||||
+ cl = "${clang_prefix}$prefix/${clang_cl}"
|
+ cl = "${clang_prefix}$prefix/${clang_cl}"
|
||||||
sys_include_flags = "${build_cpu_toolchain_data.include_flags_imsvc}"
|
sys_include_flags = "${build_cpu_toolchain_data.include_flags_imsvc}"
|
||||||
|
if (host_os != "win") {
|
||||||
toolchain_args = {
|
# For win cross build.
|
||||||
@@ -422,7 +429,7 @@ template("win_x64_toolchains") {
|
@@ -453,7 +460,7 @@ template("win_x64_toolchains") {
|
||||||
msvc_toolchain("win_clang_" + target_name) {
|
msvc_toolchain("win_clang_" + target_name) {
|
||||||
environment = "environment.x64"
|
environment = "environment.x64"
|
||||||
prefix = rebase_path("$clang_base_path/bin", root_build_dir)
|
prefix = rebase_path("$clang_base_path/bin", root_build_dir)
|
||||||
- cl = "${goma_prefix}$prefix/${clang_cl}"
|
- cl = "${goma_prefix}$prefix/${clang_cl}"
|
||||||
+ cl = "${clang_prefix}$prefix/${clang_cl}"
|
+ cl = "${clang_prefix}$prefix/${clang_cl}"
|
||||||
sys_include_flags = "${x64_toolchain_data.include_flags_imsvc}"
|
sys_include_flags = "${x64_toolchain_data.include_flags_imsvc}"
|
||||||
|
if (host_os != "win") {
|
||||||
|
# For win cross build
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
toolchain_args = {
|
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
|
From d822ef159744a681bee4f1ca8e1a7776a76e6d5e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Cheng Zhao <zcbenz@gmail.com>
|
||||||
|
Date: Thu, 20 Sep 2018 17:47:12 -0700
|
||||||
|
Subject: worker_context_will_destroy.patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h
|
diff --git a/content/public/renderer/content_renderer_client.h b/content/public/renderer/content_renderer_client.h
|
||||||
index 6dd2589d653a..48bb1dbe9750 100644
|
index a2dc7a811e75..5cbfe0e0bef3 100644
|
||||||
--- a/content/public/renderer/content_renderer_client.h
|
--- a/content/public/renderer/content_renderer_client.h
|
||||||
+++ b/content/public/renderer/content_renderer_client.h
|
+++ b/content/public/renderer/content_renderer_client.h
|
||||||
@@ -380,6 +380,11 @@ class CONTENT_EXPORT ContentRendererClient {
|
@@ -377,6 +377,11 @@ class CONTENT_EXPORT ContentRendererClient {
|
||||||
virtual void DidInitializeWorkerContextOnWorkerThread(
|
virtual void DidInitializeWorkerContextOnWorkerThread(
|
||||||
v8::Local<v8::Context> context) {}
|
v8::Local<v8::Context> context) {}
|
||||||
|
|
||||||
|
@ -15,10 +21,10 @@ index 6dd2589d653a..48bb1dbe9750 100644
|
||||||
// An empty URL is returned if the URL is not overriden.
|
// An empty URL is returned if the URL is not overriden.
|
||||||
virtual GURL OverrideFlashEmbedWithHTML(const GURL& url);
|
virtual GURL OverrideFlashEmbedWithHTML(const GURL& url);
|
||||||
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
|
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
|
||||||
index c82360f146d1..e0a90a8a6881 100644
|
index 46931503ec2b..1c2ae4550384 100644
|
||||||
--- a/content/renderer/renderer_blink_platform_impl.cc
|
--- a/content/renderer/renderer_blink_platform_impl.cc
|
||||||
+++ b/content/renderer/renderer_blink_platform_impl.cc
|
+++ b/content/renderer/renderer_blink_platform_impl.cc
|
||||||
@@ -1251,6 +1251,12 @@ void RendererBlinkPlatformImpl::WillStopWorkerThread() {
|
@@ -1108,6 +1108,12 @@ void RendererBlinkPlatformImpl::WillStopWorkerThread() {
|
||||||
WorkerThreadRegistry::Instance()->WillStopCurrentWorkerThread();
|
WorkerThreadRegistry::Instance()->WillStopCurrentWorkerThread();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,22 +38,22 @@ index c82360f146d1..e0a90a8a6881 100644
|
||||||
const v8::Local<v8::Context>& worker) {
|
const v8::Local<v8::Context>& worker) {
|
||||||
GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread(
|
GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread(
|
||||||
diff --git a/content/renderer/renderer_blink_platform_impl.h b/content/renderer/renderer_blink_platform_impl.h
|
diff --git a/content/renderer/renderer_blink_platform_impl.h b/content/renderer/renderer_blink_platform_impl.h
|
||||||
index ecb5ce6d6aa0..dffe3bca1a34 100644
|
index bebcd933b8ce..49d981cc18ea 100644
|
||||||
--- a/content/renderer/renderer_blink_platform_impl.h
|
--- a/content/renderer/renderer_blink_platform_impl.h
|
||||||
+++ b/content/renderer/renderer_blink_platform_impl.h
|
+++ b/content/renderer/renderer_blink_platform_impl.h
|
||||||
@@ -204,6 +204,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
|
@@ -201,6 +201,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
|
||||||
void DidStartWorkerThread() override;
|
void DidStartWorkerThread() override;
|
||||||
void WillStopWorkerThread() override;
|
void WillStopWorkerThread() override;
|
||||||
void WorkerContextCreated(const v8::Local<v8::Context>& worker) override;
|
void WorkerContextCreated(const v8::Local<v8::Context>& worker) override;
|
||||||
+ void WorkerContextWillDestroy(const v8::Local<v8::Context>& worker) override;
|
+ void WorkerContextWillDestroy(const v8::Local<v8::Context>& worker) override;
|
||||||
|
|
||||||
// Set the PlatformEventObserverBase in |platform_event_observers_| associated
|
// Disables the WebSandboxSupport implementation for testing.
|
||||||
// with |type| to |observer|. If there was already an observer associated to
|
// Tests that do not set up a full sandbox environment should call
|
||||||
diff --git a/third_party/blink/public/platform/platform.h b/third_party/blink/public/platform/platform.h
|
diff --git a/third_party/blink/public/platform/platform.h b/third_party/blink/public/platform/platform.h
|
||||||
index 920d161a1b81..f97250ea984e 100644
|
index 12ada20ec3a3..0e1555e5a3c9 100644
|
||||||
--- a/third_party/blink/public/platform/platform.h
|
--- a/third_party/blink/public/platform/platform.h
|
||||||
+++ b/third_party/blink/public/platform/platform.h
|
+++ b/third_party/blink/public/platform/platform.h
|
||||||
@@ -616,6 +616,7 @@ class BLINK_PLATFORM_EXPORT Platform {
|
@@ -626,6 +626,7 @@ class BLINK_PLATFORM_EXPORT Platform {
|
||||||
virtual void DidStartWorkerThread() {}
|
virtual void DidStartWorkerThread() {}
|
||||||
virtual void WillStopWorkerThread() {}
|
virtual void WillStopWorkerThread() {}
|
||||||
virtual void WorkerContextCreated(const v8::Local<v8::Context>& worker) {}
|
virtual void WorkerContextCreated(const v8::Local<v8::Context>& worker) {}
|
||||||
|
@ -56,10 +62,10 @@ index 920d161a1b81..f97250ea984e 100644
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
diff --git a/third_party/blink/renderer/core/workers/worker_thread.cc b/third_party/blink/renderer/core/workers/worker_thread.cc
|
diff --git a/third_party/blink/renderer/core/workers/worker_thread.cc b/third_party/blink/renderer/core/workers/worker_thread.cc
|
||||||
index 7cf818b56c13..7e6e1191c399 100644
|
index 6b4a2ce05520..2ba97d5ec53a 100644
|
||||||
--- a/third_party/blink/renderer/core/workers/worker_thread.cc
|
--- a/third_party/blink/renderer/core/workers/worker_thread.cc
|
||||||
+++ b/third_party/blink/renderer/core/workers/worker_thread.cc
|
+++ b/third_party/blink/renderer/core/workers/worker_thread.cc
|
||||||
@@ -517,6 +517,12 @@ void WorkerThread::PrepareForShutdownOnWorkerThread() {
|
@@ -514,6 +514,12 @@ void WorkerThread::PrepareForShutdownOnWorkerThread() {
|
||||||
SetExitCode(ExitCode::kGracefullyTerminated);
|
SetExitCode(ExitCode::kGracefullyTerminated);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,8 +75,8 @@ index 7cf818b56c13..7e6e1191c399 100644
|
||||||
+ GlobalScope()->ScriptController()->GetContext());
|
+ GlobalScope()->ScriptController()->GetContext());
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
inspector_task_runner_->Dispose();
|
|
||||||
GetWorkerReportingProxy().WillDestroyWorkerGlobalScope();
|
GetWorkerReportingProxy().WillDestroyWorkerGlobalScope();
|
||||||
|
|
||||||
probe::AllAsyncTasksCanceled(GlobalScope());
|
probe::AllAsyncTasksCanceled(GlobalScope());
|
||||||
--
|
--
|
||||||
2.17.0
|
2.17.0
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
diff --git a/BUILD.gn b/BUILD.gn
|
diff --git a/BUILD.gn b/BUILD.gn
|
||||||
index 456a318c1c..283bce15f0 100644
|
index 443694d880..d0ba5ed04e 100644
|
||||||
--- a/BUILD.gn
|
--- a/BUILD.gn
|
||||||
+++ b/BUILD.gn
|
+++ b/BUILD.gn
|
||||||
@@ -195,7 +195,7 @@ config("internal_config") {
|
@@ -212,7 +212,7 @@ config("internal_config") {
|
||||||
"$target_gen_dir",
|
|
||||||
]
|
defines = []
|
||||||
|
|
||||||
- if (is_component_build) {
|
- if (is_component_build) {
|
||||||
+ if (is_component_build || is_electron_build) {
|
+ if (is_component_build || is_electron_build) {
|
||||||
defines = [ "BUILDING_V8_SHARED" ]
|
defines += [ "BUILDING_V8_SHARED" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2674,6 +2674,8 @@ if (current_toolchain == v8_snapshot_toolchain) {
|
@@ -3138,6 +3138,8 @@ if (v8_use_snapshot && current_toolchain == v8_snapshot_toolchain) {
|
||||||
|
|
||||||
configs = [ ":internal_config" ]
|
configs = [ ":internal_config" ]
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,9 +1,9 @@
|
||||||
diff --git a/src/ostreams.h b/src/ostreams.h
|
diff --git a/src/ostreams.h b/src/ostreams.h
|
||||||
index e72c8ee..9f25bca 100644
|
index c6b64a1cd9..236a73d018 100644
|
||||||
--- a/src/ostreams.h
|
--- a/src/ostreams.h
|
||||||
+++ b/src/ostreams.h
|
+++ b/src/ostreams.h
|
||||||
@@ -34,7 +34,7 @@ class OFStreamBase : public std::streambuf {
|
@@ -32,7 +32,7 @@ class OFStreamBase : public std::streambuf {
|
||||||
|
};
|
||||||
|
|
||||||
// An output stream writing to a file.
|
// An output stream writing to a file.
|
||||||
-class V8_EXPORT_PRIVATE OFStream : public std::ostream {
|
-class V8_EXPORT_PRIVATE OFStream : public std::ostream {
|
||||||
|
|
Loading…
Reference in a new issue