mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add callbacks for unresponsive render process (fixes #3661)
The client can optionally wait or terminate the render process. Expose process exit codes via OnRenderProcessTerminated and CefGetExitCode (fixes #2126). cefclient: Add a new https://tests/hang page for testing hang behavior. cefclient: Move message and resource handling to a new BaseClientHandler class to support loading of test pages in default Chrome UI windows.
This commit is contained in:
29
patch/patches/chrome_sad_tab_error.patch
Normal file
29
patch/patches/chrome_sad_tab_error.patch
Normal file
@ -0,0 +1,29 @@
|
||||
diff --git chrome/browser/ui/views/sad_tab_view.cc chrome/browser/ui/views/sad_tab_view.cc
|
||||
index 26d1d804f74e7..87f411df5a49c 100644
|
||||
--- chrome/browser/ui/views/sad_tab_view.cc
|
||||
+++ chrome/browser/ui/views/sad_tab_view.cc
|
||||
@@ -680,6 +680,11 @@ void SadTabView::OnBoundsChanged(const gfx::Rect& previous_bounds) {
|
||||
title_->SizeToFit(max_width);
|
||||
}
|
||||
|
||||
+// static
|
||||
+std::u16string SadTabView::ErrorToString(int error_code) {
|
||||
+ return ::ErrorToString(error_code);
|
||||
+}
|
||||
+
|
||||
SadTab* SadTab::Create(content::WebContents* web_contents, SadTabKind kind) {
|
||||
return new SadTabView(web_contents, kind);
|
||||
}
|
||||
diff --git chrome/browser/ui/views/sad_tab_view.h chrome/browser/ui/views/sad_tab_view.h
|
||||
index d6cb0e1a28eb2..59aca7bbb17c3 100644
|
||||
--- chrome/browser/ui/views/sad_tab_view.h
|
||||
+++ chrome/browser/ui/views/sad_tab_view.h
|
||||
@@ -56,6 +56,8 @@ class SadTabView : public SadTab, public views::View {
|
||||
// Overridden from views::View:
|
||||
void OnBoundsChanged(const gfx::Rect& previous_bounds) override;
|
||||
|
||||
+ static std::u16string ErrorToString(int error_code);
|
||||
+
|
||||
protected:
|
||||
// Overridden from views::View:
|
||||
void OnPaint(gfx::Canvas* canvas) override;
|
Reference in New Issue
Block a user