Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please Keep the Address Bar empty when Its Background Color #252

Closed
amiga-500 opened this issue Aug 26, 2021 · 2 comments
Closed

Please Keep the Address Bar empty when Its Background Color #252

amiga-500 opened this issue Aug 26, 2021 · 2 comments
Assignees

Comments

@amiga-500
Copy link

I understand you trigger a html page to set the background color but because of that, when opening a new tab, i cant begin to use the address bar to type something without first having to clear the entire line. It's a bit cumbersome. Maybe u can load the webpage and clear the address bar by using javascript?

@HHCHunter
Copy link

Unfortunately this is a bug/feature(?) and is potentially intended behavior.
I also agree that this behavior shouldn't be like this, however it's a Mozilla issue.

@Juraj-Masiar
Copy link

Hello,
I have a good news for you.
The bug that causes this (https://bugzilla.mozilla.org/show_bug.cgi?id=1409675) will occur ONLY if the New tab URL doesn't match the URL you have in your manifest file:

  "chrome_url_overrides" : {
    "newtab": "html/newtab.html"
  },

And that's what you are doing, for example when you select the "background color" option, you will use:

html/options.html

So what you should do instead is keep loading html/newtab.html no matter what, but detect that user has "background color" option and simply remove the body and set the background (for example).
And your URL will remain empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants