-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
replace location instead of navigating to new url #162
base: master
Are you sure you want to change the base?
Conversation
Thanks for the PR, and sorry for the delay. I'm moving into my first home in a few weeks, and things have been crazy. TLDR; This is all a very lengthy explanation to ask… would it be possible to put the I didn't merge immediately because I wasn't 100% certain if
And compared it to that for Location.setHref:
The only difference is
Digging into the navigation scheduler, it looks like
This concerns me slightly for a few reasons:
A couple years ago, the extension was threatened to be taken down because it wasn't obvious enough to users that:
Here's the text of that email: Dear Developer, Protecting users and user choice have been long-standing principles of Google's core philosophy. That is why three years ago, Chrome released an extension-based Settings Overrides API for Chrome on Windows that ensures all users have notice and control over any settings change that take place in their browser. Earlier this year, we implemented the same API for macOS. Starting August 1, the only compliant way to programmatically change the startup page, homepage, search provider setting, or any other setting that has an API is via the appropriate API. If your extension affects changes to any of these functions, it must use the API. Extensions that have been using the Webrequest API (or other mechanisms) to redirect search requests from the new tab page or the omnibox, must now use the search provider and/or new tab page API. After August 1st, extensions redirecting search requests from the new tab page or omnibox without using these APIs will be removed from the store. Extensions that perform automatic redirections from a web page URL must display a prominent notice informing the user of the redirection. For example, if an extension redirects search queries from www.google.com (or any other search provider), the extension's notice must:
Must show the name of the extension (and the brand of search engine, if different) and what will happen Not look similar to a system or Chrome dialog box or user-interface element; for example, disclosures in yellow bars that look similar to Chrome's yellow ("butter") bars are not permitted. Extensions must also comply with other Chrome Web Store policies and Google's Unwanted Software Policy. Sincerely, Chrome Web Store Team © 2016 Google Inc., 1600 Amphitheatre Parkway, Mountain View, CA 94043, USA So, as you can see modifying New Tab Redirect in this way would potentially violate the rules around timely and persistent behavior. As mentioned in the TLDR at the top of this comment, I think wrapping this functionality in an option would address all concerns. It does add an object hash lookup and |
Removes back button functionality when New Tab is opened.