mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 17:28:30 +00:00
Ladybird+LibWebView: Respawn with same JS interpreter after crash
WebView::ViewImplementation now remembers which JS interpreter it started with, and uses the same setting if the WebContent process crashes and we have to spawn a new one.
This commit is contained in:
@@ -25,7 +25,8 @@ REGISTER_WIDGET(WebView, OutOfProcessWebView)
|
||||
|
||||
namespace WebView {
|
||||
|
||||
OutOfProcessWebView::OutOfProcessWebView()
|
||||
OutOfProcessWebView::OutOfProcessWebView(UseJavaScriptBytecode use_javascript_bytecode)
|
||||
: ViewImplementation(use_javascript_bytecode)
|
||||
{
|
||||
set_should_hide_unnecessary_scrollbars(true);
|
||||
set_focus_policy(GUI::FocusPolicy::StrongFocus);
|
||||
@@ -35,7 +36,7 @@ OutOfProcessWebView::OutOfProcessWebView()
|
||||
|
||||
OutOfProcessWebView::~OutOfProcessWebView() = default;
|
||||
|
||||
void OutOfProcessWebView::create_client(EnableCallgrindProfiling, UseJavaScriptBytecode)
|
||||
void OutOfProcessWebView::create_client(EnableCallgrindProfiling)
|
||||
{
|
||||
m_client_state = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user