mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 09:36:08 +00: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
Notes:
github-actions[bot]
2025-08-04 09:51:39 +00:00
Author: https://github.com/AtkinsSJ
Commit: d65d46f4f0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5576
3 changed files with 9 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue