custom error (about:...) pages

Talk about code development, features, specific bugzilla bugs, enhancements, patches, and other highly technical things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific referenced Bugzilla bugs, mercurial, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Most "bug reports" do not belong in this board and should initially be posted in Community Support or other relevant support boards.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
Post Reply
User avatar
a930c9fd
New to the forum
New to the forum
Posts: 2
Joined: 2020-10-15, 23:32

custom error (about:...) pages

Post by a930c9fd » 2020-10-15, 23:44

hi, i'm new to Palemoon and XUL extension development, i'm familiar with JS and modified some addons already.
I'm wondering, is it possible to overlay for example the "server not found" error page (not a site's own 404 page, but the browser's embedded one) ?
i like to add useful links to it. eg. lookup on web archive, traceroute/ping, check ssl scores, etc...

User avatar
Isengrim
Board Warrior
Board Warrior
Posts: 1282
Joined: 2015-09-08, 22:54
Location: 127.0.0.1
Contact:

Re: custom error (about:...) pages

Post by Isengrim » 2020-10-16, 03:07

The two pages you're probably interested in are about:neterror and about:certerror. Both of these are XHTML, not XUL, so you won't be able to overlay them like you do in XUL. Your add-on will probably have to run some JavaScript to inject content into these pages. Might be doable, but I suspect it'll be a bit tricky.
a.k.a. Ascrod
Linux Mint 19.3 Cinnamon (64-bit), Debian Bullseye (64-bit), Windows 7 (64-bit)
"As long as there is someone who will appreciate the work involved in the creation, the effort is time well spent." ~ Tetsuzou Kamadani, Cave Story

User avatar
moonbat
Moon Magic practitioner
Moon Magic practitioner
Posts: 2287
Joined: 2015-12-09, 15:45

Re: custom error (about:...) pages

Post by moonbat » 2020-10-16, 04:31

There's already Fierr which provides an enhanced error page, take a look at it first.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 20 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
Advanced URL Builder(fork)|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
letmeindude
Fanatic
Fanatic
Posts: 145
Joined: 2018-10-09, 08:56

Re: custom error (about:...) pages

Post by letmeindude » 2020-10-16, 09:56

You can fork ErrorZilla Plus.
This extension is a replacement of Firefox official error page, which adds some useful tools to aid your troubleshooting.

The tools include:
- Google Cache (view the page cached by Google)
- Coralize (use Coral CDN proxy to connect again)
- Wayback (view an earlier version of this page)
- Ping (use a server to ping the target server)
- Trace (trace the network route from you to the server)
- Whois (look up who owns the website)
- Proxify (use your custom web proxy to connect)

User avatar
a930c9fd
New to the forum
New to the forum
Posts: 2
Joined: 2020-10-15, 23:32

Re: custom error (about:...) pages

Post by a930c9fd » 2020-10-16, 11:28

guys, thanks a lot, that's what i've searched for!

Post Reply