Access to chrome:// urls launched from script now restricted.

172 views
Skip to first unread message

Toady Smith

unread,
Aug 22, 2015, 7:35:55 PM8/22/15
to Chromium-extensions
Hello,

My chrome extension in the web store uses a chrome://restart url, The URL is relatively safe in terms of how its used, In chrome 45-46 using chrome.tabs.create({url: "chrome://restart"}); even with [tabs] in the permissions section
no longer works, Using a standard url does.

Is there a new method for this, My extension relies on this to work.



Unchecked runtime.lastError while running tabs.create: I'm sorry. I'm afraid I can't do that.
    at Object.callback (chrome-extension://digedclaffobckmjphdjmbmmcbfjnhoo/js/overlay.js:143:33)reportIfUnchecked @ extensions::lastError:133



Any help here would be greatly appreciated thank you.

Mike Olsen

unread,
Aug 22, 2015, 7:59:25 PM8/22/15
to Toady Smith, Chromium-extensions
we also heavily use this feature as well, removing it would be horrible for us



Mike Olsen

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/f4e75582-c0b7-4e79-99df-5d547dee8ad7%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Ellis Antaya

unread,
Aug 23, 2015, 4:33:50 PM8/23/15
to Mike Olsen, Toady Smith, Chromium-extensions

In which use case do you need to restart?
How about this instead :
window.document.location.reload()


PhistucK

unread,
Aug 24, 2015, 1:58:35 AM8/24/15
to Ellis Antaya, Mike Olsen, Toady Smith, Chromium-extensions
chrome:restart restarts the entire browser. Your code "restarts" the current tab.


PhistucK

Ellis Antaya

unread,
Aug 24, 2015, 8:28:01 AM8/24/15
to PhistucK, Mike Olsen, Toady Smith, Chromium-extensions

I know the difference between them :)
but in which use case do you need to restart the entire browser?

PhistucK

unread,
Aug 24, 2015, 8:30:42 AM8/24/15
to Ellis Antaya, Mike Olsen, Toady Smith, Chromium-extensions
Did you go to the page of the extension? This is exactly its purpose - to restart the browser by clicking on a browser action button. Some people need it, apparently (13,000+ of them).


PhistucK

Ellis Antaya

unread,
Aug 24, 2015, 9:13:17 AM8/24/15
to PhistucK, Mike Olsen, Toady Smith, Chromium-extensions
hum ok, no i didnt know about that kind of extension.
i prefer use a bookmark that targets the chrome://restart url ;)



1100101000111101
" Unfortunately, no one can be told what The Matrix is.  You have to see it for yourself. "

PhistucK

unread,
Aug 24, 2015, 9:16:34 AM8/24/15
to Ellis Antaya, Mike Olsen, Toady Smith, Chromium-extensions
This only works if you have the bookmarks bar visible, but it can take essential room, so I guess the extension helped with that.


PhistucK

Rob Wu

unread,
Sep 1, 2015, 1:33:13 PM9/1/15
to PhistucK, Ellis Antaya, Mike Olsen, Toady Smith, Chromium-extensions
Not being able to use chrome://restart was an intentional change: https://code.google.com/p/chromium/issues/detail?id=508192

If you have some use cases for wanting to quit and/or reload the browser, you could try to post a feature request for a proper API at https://crbug.com/new.

Kind regards,
 Rob
 https://robwu.nl

Mike Olsen

unread,
Sep 1, 2015, 8:30:49 PM9/1/15
to Rob Wu, PhistucK, Ellis Antaya, Toady Smith, Chromium-extensions
still appears to work in todays chrome 45 release



Mike Olsen
Reply all
Reply to author
Forward
0 new messages