API to set the new tab page URL
Categories
(WebExtensions :: Frontend, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: mconca, Unassigned)
References
(Depends on 1 open bug)
Details
(Whiteboard: [newtab])
Attachments
(1 file)
360.04 KB,
image/png
|
Details |
Reporter | ||
Updated•7 years ago
|
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Reporter | ||
Comment 3•7 years ago
|
||
Comment 6•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Firefox team, I'd love to help move this conversation/feature forward. Is there a way I can be helpful?
The current options are still subpar for new tab extensions: we either have to iframe the remote content or interrupt the user's typing. Either option leads to bugs, limitations, or user complaints.
Comment hidden (advocacy) |
Comment hidden (advocacy) |
Comment 10•5 years ago
|
||
The issue with this is that even back when this was #1409675, there was arbitrary worry about extensions redirecting users to pages, which isn't really a thing that can happen. Selecting some text is different to selecting some text, then deleting it, then putting in some new text.
Comment 11•5 years ago
|
||
I have seen several things in my search through this bug and related bugs:
- Firefox removed the ability to load a custom url into a new tab. The reason for this I believe was to reduce a reliance on external pages for an action that should be "fast".
- The community countered this by adding a number of extensions that add back in the ability to provide a custom url for a new tab.
- However, there exists a discrepancy between the native functionality and the extension functionality. That is, with extension functionality, a user can not open a new tab and immediately start typing in the Awesomebar.
This is the problem in a nut shell. Some users of Firefox want the ability to:
- Open a tab and have it land on their own custom url.
- Immediately start typing into the Awesomebar upon opening a new tab.
That's the problem. Extension providers are trying to implement this functionality but have been blocked.
(see: https://bugzilla.mozilla.org/show_bug.cgi?id=1409675)
Until Firefox provides a native solution, the easiest course of action is for users using a custom extension is to use <kbd>Ctrl</kbd> + <kbd>T</kbd> followed immediately by <kbd>Ctrl</kbd> + <kbd>L</kbd> to focus the Awesomebar.
Comment 12•5 years ago
|
||
(In reply to Kevin from comment #7)
Firefox team, I'd love to help move this conversation/feature forward. Is there a way I can be helpful?
The current options are still subpar for new tab extensions: we either have to iframe the remote content or interrupt the user's typing. Either option leads to bugs, limitations, or user complaints.
I'd like to see this change implemented as well. A newtab plug-in I've been using lately tends to break when Strict Tracking Protection is enabled because of how Iframes work. I can access the page they are trying to insert via iframe just fine (at least if I disable tracking protection for the page), but the new tab doesn't work the same way and disabling tracking protection seemingly does nothing. For the example in question, see Tab for a Cause.
I even looked to see if I could work around my specific issue by editing the new tab page manually (as a few people here have mentioned) rather than programmatically, and was surprised to see that it's no longer an option, or at least not as simple as "go to settings, find the right option for setting the new tab page, and set it". Interestingly, I can still set my homepage to the page the plugin is trying to use, but that doesn't really do what I want (the newtab page won't be overridden by the custom home page).
(Please note, I am trying to be constructive here, not just offering my opinion in an "I see this too" way. I'm just not sure how I can offer my support toward a resolution other than explain the situation I came across. I'm hoping that a specific use case where the current way things are implemented leads to other bugs is sufficient to demonstrate why this ought to be changed)
Comment 13•5 years ago
|
||
I have one more use-case for this feature that I don't think has been mentioned: optionally allowing users to set a moz-extension://
page as their new tab page.
More specifically, I am the developer of Tab Stash, an extension which offers both a sidebar and tab-based UI for saving and managing tabs. I've received a feature request asking to use the Tab Stash UI as the default "New Tab" page. But I can't offer this option without forcing it on my entire user base (since there is no way to disable a new-tab page set in manifest.json
without disabling the entire extension).
Right now, there is no workaround at all for users to opt-in to Tab Stash (or any other extension) as their new-tab page. The most common method of setting a user-defined new-tab URL, the "New Tab Override" extension, doesn't work because New Tab Override cannot navigate to moz-extension://
URLs for other extensions.
Ideally, I would like to use the proposed API to set the new-tab URL on an opt-in basis--for example, a user could go to the Tab Stash settings and click a checkbox or button to "Set Tab Stash as my New Tab page", and then I would call the API accordingly to set or clear the appropriate moz-extension://
URL.
Comment 14•5 years ago
|
||
The increasing restrictions on third-party cookies make this issue more urgent. Currently, some new tab extensions iframe their HTTPS page within the moz-extension://
new tab page as a workaround to ensure the address bar is cleared for typing. However, we obviously can't expect iframed pages to work as they do when they're the top frame, even when the extension and HTTPS page are owned by the same developer.
In this case, we're left with the option of overriding with a filled address bar (unworkable UX).
Comment 15•3 years ago
|
||
Redirect a needinfo that is pending on an inactive user to the triage owner.
:mixedpuppy, since the bug has recent activity, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•3 years ago
|
Comment 16•2 years ago
|
||
Is there a bug that tracks simply configuring a custom page on new tab to be brought back as a core feature? I don't want to install some random unvetted extension just to achieve this, even if the API supported it, that is in itself dangerous.. in fact, it is probably more likely I would get compromised installing such an extension on Linux/MacOS than getting owned by some random malware that would switch it on me.
All I want is to open a local custom page like file:///home/me/new_tab.html which has everything set up as I want it. Other than that, it should behave exactly the same as default firefox page (url bar gets cleared and focused).
The malware aspect shouldn't be a reason to block useful features like this. Hide the config change behind the master password or something.
Updated•2 years ago
|
Description
•