1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:07:36 +00:00

Browser+LibWebView: Run with the JavaScript bytecode VM by default

The AST interpreter is still available behind a new `--ast` flag.
This commit is contained in:
Andreas Kling 2023-07-25 17:42:22 +02:00
parent c3e5487f00
commit a3e97ea153
9 changed files with 25 additions and 7 deletions

View file

@ -50,7 +50,7 @@ public:
void broadcast_window_size(Gfx::IntSize);
private:
explicit BrowserWindow(CookieJar&, URL);
BrowserWindow(CookieJar&, URL, WebView::UseJavaScriptBytecode);
void build_menus();
ErrorOr<void> load_search_engines(GUI::Menu& settings_menu);
@ -86,6 +86,8 @@ private:
RefPtr<GUI::Action> m_disable_user_agent_spoofing;
RefPtr<GUI::Action> m_disable_search_engine_action;
RefPtr<GUI::Action> m_change_homepage_action;
WebView::UseJavaScriptBytecode m_use_javascript_bytecode {};
};
}