mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01:00
UI/Qt: Add "Dump CSS Errors" menu item
Dumps out any CSS errors that have appeared since launch.
This commit is contained in:
parent
1adddb158a
commit
d65d46f4f0
BIN
Base/res/icons/16x16/error.png
Normal file
BIN
Base/res/icons/16x16/error.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 278 B |
|
|
@ -3,7 +3,7 @@
|
||||||
* Copyright (c) 2022, Matthew Costa <ucosty@gmail.com>
|
* Copyright (c) 2022, Matthew Costa <ucosty@gmail.com>
|
||||||
* Copyright (c) 2022, Filiph Sandström <filiph.sandstrom@filfatstudios.com>
|
* Copyright (c) 2022, Filiph Sandström <filiph.sandstrom@filfatstudios.com>
|
||||||
* Copyright (c) 2023, Linus Groh <linusg@serenityos.org>
|
* Copyright (c) 2023, Linus Groh <linusg@serenityos.org>
|
||||||
* Copyright (c) 2024, Sam Atkins <sam@ladybird.org>
|
* Copyright (c) 2024-2025, Sam Atkins <sam@ladybird.org>
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
|
@ -431,6 +431,13 @@ BrowserWindow::BrowserWindow(Vector<URL::URL> const& initial_urls, IsPopupWindow
|
||||||
debug_request("dump-all-resolved-styles");
|
debug_request("dump-all-resolved-styles");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
auto* dump_css_errors_action = new QAction("Dump CSS &Errors", this);
|
||||||
|
dump_css_errors_action->setIcon(load_icon_from_uri("resource://icons/16x16/error.png"sv));
|
||||||
|
debug_menu->addAction(dump_css_errors_action);
|
||||||
|
QObject::connect(dump_css_errors_action, &QAction::triggered, this, [this] {
|
||||||
|
debug_request("dump-all-css-errors");
|
||||||
|
});
|
||||||
|
|
||||||
auto* dump_cookies_action = new QAction("Dump C&ookies", this);
|
auto* dump_cookies_action = new QAction("Dump C&ookies", this);
|
||||||
dump_cookies_action->setIcon(load_icon_from_uri("resource://icons/browser/cookie.png"sv));
|
dump_cookies_action->setIcon(load_icon_from_uri("resource://icons/browser/cookie.png"sv));
|
||||||
debug_menu->addAction(dump_cookies_action);
|
debug_menu->addAction(dump_cookies_action);
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ set(16x16_ICONS
|
||||||
close-tab.png
|
close-tab.png
|
||||||
download.png
|
download.png
|
||||||
edit-copy.png
|
edit-copy.png
|
||||||
|
error.png
|
||||||
filetype-css.png
|
filetype-css.png
|
||||||
filetype-folder-open.png
|
filetype-folder-open.png
|
||||||
filetype-html.png
|
filetype-html.png
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user