mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 04:22:28 +00:00
Browser: Add error page
Add a simple HTML error page that gets loaded into the HtmlView when loading the page fails. Closes #1210 and #1516
This commit is contained in:
parent
b1365d94f4
commit
021d78f8f7
Notes:
sideshowbarker
2024-07-19 08:01:04 +09:00
Author: https://github.com/linusg
Commit: 021d78f8f7
Pull-request: https://github.com/SerenityOS/serenity/pull/1557
Issue: https://github.com/SerenityOS/serenity/issues/1210
Reviewed-by: https://github.com/awesomekling ✅
Reviewed-by: https://github.com/bugaevc
5 changed files with 79 additions and 28 deletions
21
Base/res/html/error.html
Normal file
21
Base/res/html/error.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Error!</title>
|
||||
<style>
|
||||
h1 {
|
||||
display: inline;
|
||||
}
|
||||
header {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<img src="file:///res/icons/32x32/msgbox-warning.png" alt="Warning" width="24" height="24">
|
||||
<h1>Failed to load %s</h1>
|
||||
</header>
|
||||
<p>Error: %s</p>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue