Allow extensions to set a web page as the new tab page with cleared omnibox [feature request]
Reported by
ke...@tabforacause.org,
Sep 18 2017
|
||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.18 Safari/537.36 Steps to reproduce the problem: 1. Install a new tab redirect extension (for example, New Tab Redirect: https://chrome.google.com/webstore/detail/new-tab-redirect/icpgjfneehieebagbmdbhnlpiopdcmna) 2. Go to the options page in New Tab Redirect. Enter a redirect URL and click "Save". Check the box "Always update tab, not redirect. (Enable for cursor in the address bar)" 3. Open a tab. Note that the omnibox behavior is somewhat unreliable: sometimes the tab update will overwrite the text you're typing, and sometimes the omnibox will not highlight as expected. What is the expected behavior? There's not a clean way for Chrome extensions to set the new tab page to an HTTP webpage and while also keeping the omnibox clear or highlighted. Extensions (such as New Tab Redirect) have worked around this by calling `chrome.tabs.update` after a new tab is created. However, this has problems: * The tab update can happen after a user starts typing into the omnibox, overwriting their query or preventing navigation * Whether the omnibox URL will remain highlighted after update appears to be undocumented and unreliable. Extension developers are hoping the behavior doesn't change, but it sometimes regresses: Chrome 61 regression: https://bugs.chromium.org/p/chromium/issues/detail?id=766012 Chrome 34 regression: https://bugs.chromium.org/p/chromium/issues/detail?id=362322 Ongoing issue since 2014: https://github.com/jimschubert/NewTab-Redirect/issues/50 Potential fixes: * Allow setting the manifest chrome_url_overrides.newtab value to an HTTP or HTTPS page. Clear or highlight the omnibox URL when opening a new tab. (This won't solve the problem for extension developers that need a dynamic URL, however. Allow for dynamically setting the new tab override URL?) * Add a new property to chrome.tabs.create and chrome.tabs.update that sets the omnibox to be highlighted (e.g. an omniboxHighlighted boolean). * Or at the very least, document/guarantee that chrome.tabs.update will keep a highlighted URL. What went wrong? When overriding a new tab page with a web page, the omnibox behavior is unpredictable and a poor user experience. WebStore page: https://chrome.google.com/webstore/detail/new-tab-redirect/icpgjfneehieebagbmdbhnlpiopdcmna Did this work before? N/A Chrome version: 62.0.3202.18 Channel: beta OS Version: OS X 10.12.6 Flash Version: Note: this isn't specific to New Tab Redirect, but to extension development in general. Let me know if there's a more appropriate place to discuss this feature request.
,
Sep 19 2017
Able to reproduce on reported version 62.0.3202.18 and issue seems to be fixed on latest canary 63.0.3219.0 with the mentioned steps below on Ubuntu 14.04, windows and Mac 10.12.6. 1.Installed the New Tab Redirect Extension 2.Entered a redirect URL and clicked ""Save"". Checked the box ""Always update tab, not redirect. (Enable for cursor in the address bar)"" 3.Opened a New tab. In M63, the URL is getting highlighted. Attaching the screenshot for reference. @Reporter: Could you please check the same on latest canary and update. You can download canary builds from the below link https://www.chromium.org/getting-involved/dev-channel.
,
Sep 19 2017
The URL highlighting is working for me in both 63.0.3219.0 and 62.0.3202.18. However, can we rely on this continuing to work? This is a feature request, not a bug report, because the way Chrome extensions are currently replacing the new tab page with a web page feels like a workaround. I don't believe there are any official examples for how to do this. Historically, the URL highlighting behavior has been unreliable. As mentioned in comment #1 - can this use case be clearly supported by Chrome extensions? Or, at the very least, can the Chrome team document that the `chrome.tabs.update` approach that extensions are using will reliably highlight the URL going forward?
,
Sep 19 2017
Thank you for providing more feedback. Adding requester "keerthana.v@techmahindra.com" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Sep 20 2017
Considering it as a feature request and marking it as untriaged for further inputs as per comment#3. Thanks!
,
Sep 20 2017
,
Jan 17 2018
Can we get an update on whether this feature is in consideration? Thanks!
,
Nov 30
Triage: Related to issue 797916. yyushkina@ has been thinking about things in this area. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by james.sc...@gmail.com
, Sep 19 2017313 bytes
313 bytes View Download