mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWebView+UI: Generate the application debug menu
By migrating the debug menu to LibWebView, the AppKit and Qt UIs are now in sync - the AppKit UI was previously missing some actions. Further, this inadvertently fixes bugs around applying debug settings to new web views, especially across site-isolated processes. We were previously not applying settings appropriately; this now "just works" in the LibWebView infra.
This commit is contained in:
parent
5d8d9b337a
commit
9c99c48f47
Notes:
github-actions[bot]
2025-09-11 18:25:07 +00:00
Author: https://github.com/trflynn89
Commit: 9c99c48f47
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6062
15 changed files with 212 additions and 632 deletions
|
|
@ -523,11 +523,6 @@ int Tab::tab_index()
|
|||
return m_window->tab_index(this);
|
||||
}
|
||||
|
||||
void Tab::debug_request(ByteString const& request, ByteString const& argument)
|
||||
{
|
||||
m_view->debug_request(request, argument);
|
||||
}
|
||||
|
||||
void Tab::resizeEvent(QResizeEvent* event)
|
||||
{
|
||||
QWidget::resizeEvent(event);
|
||||
|
|
@ -587,36 +582,4 @@ void Tab::find_next()
|
|||
m_find_in_page->find_next();
|
||||
}
|
||||
|
||||
void Tab::set_block_popups(bool enabled)
|
||||
{
|
||||
debug_request("block-pop-ups", enabled ? "on" : "off");
|
||||
}
|
||||
|
||||
void Tab::set_line_box_borders(bool enabled)
|
||||
{
|
||||
debug_request("set-line-box-borders", enabled ? "on" : "off");
|
||||
}
|
||||
|
||||
void Tab::set_scripting(bool enabled)
|
||||
{
|
||||
debug_request("scripting", enabled ? "on" : "off");
|
||||
}
|
||||
|
||||
void Tab::set_content_filtering(bool const enabled)
|
||||
{
|
||||
debug_request("content-filtering", enabled ? "on" : "off");
|
||||
}
|
||||
|
||||
void Tab::set_user_agent_string(ByteString const& user_agent)
|
||||
{
|
||||
debug_request("spoof-user-agent", user_agent);
|
||||
// Clear the cache to ensure requests are re-done with the new user agent.
|
||||
debug_request("clear-cache");
|
||||
}
|
||||
|
||||
void Tab::set_navigator_compatibility_mode(ByteString const& compatibility_mode)
|
||||
{
|
||||
debug_request("navigator-compatibility-mode", compatibility_mode);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue