Skip to content

Conversation

@felipeerias
Copy link
Collaborator

@felipeerias felipeerias commented May 5, 2025

About pages are provided by a native UI. However, sometimes an error message can be seen for a brief moment before that native UI is displayed.

This change shows a plain color page for about:// URLs instead of the standard error page to avoid those unwanted content flashes.

Fixes #1834

About pages are provided by a native UI. However, sometimes
an error message can be seen for a brief moment before that
native UI is displayed.

This change shows a plain color page for about:// URLs instead of
the standard error page to avoid those unwanted content flashes.

Fixes #1834
@felipeerias felipeerias force-pushed the felipeerias/errorPlaceholder branch from 808d6eb to 75c7f61 Compare May 5, 2025 11:13
Copy link
Member

@javifernandez javifernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "solution" seems to solve the issue. However, I wonder whether we should keep the html (or even the bytes) in memory given that we are going to create it for every navigation, if I have understood the issue properly.

@felipeerias felipeerias changed the title Web engine shows a plain color page while loading about: URLs Web engine shows a plain color page while loading about:// URLs May 6, 2025
Copy link
Member

@svillar svillar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I don't fully understand the problem. Looks like this is something that happens with the new tab page? Also why an error is shown? Shouldn't we fix that instead of showing a plain color page?

@felipeerias
Copy link
Collaborator Author

The idea was to integrate the new tab with the rest of the navigation so back/forward, etc. work as expected.
Previously we tried to implement it separately, but it was too messy because you basically end up replicating that back/forward navigation to know when you should show the new tab again.

As a result, about://newtab is loaded by the session (but the library URLs are not).

The error message is shown because about://newtab is an invalid or unrecognized URL from the point of view of the Web engine.

Wolvic uses about: for local pages that are provided by the engine (e.g. about:config), and about:// for those that are provided by a native UI (e.g. about://bookmarks).

@felipeerias
Copy link
Collaborator Author

Gecko also shows an error for about:newtab FWIW

@felipeerias felipeerias added the release_candidate PR that should be part of the next release label May 16, 2025
Copy link
Member

@javifernandez javifernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As commented offline this is not the right solution for the issue described in the bug report. We should add the new Wolvic's about-page in Gecko, so it's properly recognized as a valid url.

However, this solution won't be on time for the release and the issue has been classified as blocker. I can accept this temporary solution for now.

@svillar
Copy link
Member

svillar commented May 20, 2025

As commented offline this is not the right solution for the issue described in the bug report. We should add the new Wolvic's about-page in Gecko, so it's properly recognized as a valid url.

However, this solution won't be on time for the release and the issue has been classified as blocker. I can accept this temporary solution for now.

If we want to do this, please apply the patch in the release branch but let's not land it in main

@javifernandez javifernandez added release_candidate PR that should be part of the next release and removed release_candidate PR that should be part of the next release labels May 23, 2025
Copy link
Contributor

@shynekomaid shynekomaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest height: 100dvh; Because something tells me that if I change the window size, there may be a white stripe at the bottom.

<!DOCTYPE html>
<html>
<head>
<style>html, body { margin: 0; height: 100%; background: %backgroundColor%; }</style>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest height: 100dvh; Because something tells me that if I change the window size, there may be a white stripe at the bottom.

@svillar svillar removed the release_candidate PR that should be part of the next release label Oct 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Invalid Address" page shown when navigation from the NewTabs homepage

5 participants