chrome-extension:// links open about:blank

1,632 views
Skip to first unread message

Josh Bjelovuk

unread,
Nov 18, 2013, 7:08:34 PM11/18/13
to chromium-...@chromium.org
http://stackoverflow.com/questions/20019829/chrome-extension-links-open-aboutblank

Anybody know why this is happening all of a sudden or have a fix?

Shane Weng

unread,
Nov 19, 2013, 9:18:58 PM11/19/13
to chromium-...@chromium.org
I also try this sample extension (https://developer.chrome.com/extensions/examples/extensions/oauth_contacts/manifest.json) , it also show about blank page. It was working before I updated to the new chrome version today.

Paulie

unread,
Nov 19, 2013, 10:29:53 PM11/19/13
to chromium-...@chromium.org
Yes I just checked my extension I have the same issue. Looks like a bug to me. You could use message passing to the background page and then open the page from there. I have posted this suggestion to your question on stackoverflow. 

One fix if you don't have too many links to open could be to send a message to the background page and then call a function from within the background page to open your window.

I checked and both and chrome.tabs.create and the standard javascript window.open will open an html file in the extension.

Chuck Han

unread,
Dec 9, 2013, 7:42:48 PM12/9/13
to chromium-...@chromium.org
I can open a chrome extension with the following code on localhost, but can't do it if the code is not on localhost:

<button onclick="window.open('chrome-extension://pdeelgamlgannhelgoegilelnnojegoh/index.html')">test</button>

Any ideas?

Thanks in advance, Chuck

On Monday, November 18, 2013 4:08:34 PM UTC-8, Josh Bjelovuk wrote:

Josh Bjelovuk

unread,
Dec 9, 2013, 7:47:50 PM12/9/13
to chromium-...@chromium.org
The web accessible resources solution from Stack Overflow solved this for me.

Shane Weng

unread,
Dec 9, 2013, 10:57:50 PM12/9/13
to chromium-...@chromium.org
You may try getURL instead:
  string chrome.extension.getURL(string path)
Reply all
Reply to author
Forward
0 new messages