mirror of
https://github.com/aphrody-labs/cef.git
synced 2026-10-13 21:07:07 +00:00
alloy: Fix crash in ReadAnythingSoftNavigationObserver::OnSoftNavigation (fixes #4234)
This commit is contained in:
1 parent
89749b7e67
commit
f8a915f046
2 files changed
+20
No files matched your search
@@ -377,6 +377,12 @@ patches = [
|
||||
# https://github.com/chromiumembedded/cef/issues/3681
|
||||
'name': 'chrome_browser_printing_oop_osr',
|
||||
},
|
||||
{
|
||||
# alloy: Fix crash in
|
||||
# ReadAnythingSoftNavigationObserver::OnSoftNavigation
|
||||
# https://github.com/chromiumembedded/cef/issues/4234
|
||||
'name': 'chrome_browser_read_anything',
|
||||
},
|
||||
{
|
||||
# Support override of Chrome process singleton behavior.
|
||||
# https://github.com/chromiumembedded/cef/issues/3609
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
diff --git chrome/browser/ui/read_anything/read_anything_soft_navigation_observer.cc chrome/browser/ui/read_anything/read_anything_soft_navigation_observer.cc
|
||||
index 3a57f6d13db4bc3c8a028f79ebd61fb8913f5458..55dacaf0eec94528738dcbf3a8b55a30b3033b7d 100644
|
||||
--- chrome/browser/ui/read_anything/read_anything_soft_navigation_observer.cc
|
||||
+++ chrome/browser/ui/read_anything/read_anything_soft_navigation_observer.cc
|
||||
@@ -44,7 +44,8 @@ void ReadAnythingSoftNavigationObserver::OnSoftNavigation() {
|
||||
if (!web_contents) {
|
||||
return;
|
||||
}
|
||||
- tabs::TabInterface* tab = tabs::TabInterface::GetFromContents(web_contents);
|
||||
+ tabs::TabInterface* tab =
|
||||
+ tabs::TabInterface::MaybeGetFromContents(web_contents);
|
||||
if (!tab) {
|
||||
return;
|
||||
}
|
||||
Reference in new issue
Block a user