Redirect app to a local url using app.window.create

44 views
Skip to first unread message

Mark

unread,
Jun 2, 2017, 12:21:00 PM6/2/17
to Chromium-Apps-Announce
I'm developing a chrome app which downloads a package containing another index.html file which I would like to redirect to. This package is stored in the local file system inside the app which in principle should be accessible for app.window.create. However the error I get is:

Unchecked runtime.lastError while running app.window.create: The URL used for window creation must be local for security reasons.

I have to download and load this package because it is updated every day with new content. Is there any solution to this or work around?

PhistucK

unread,
Jun 2, 2017, 12:46:13 PM6/2/17
to Mark, Chromium-Apps-Announce
Does loading it in an iFrame work?


PhistucK

--
You received this message because you are subscribed to the Google Groups "Chromium-Apps-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-apps+unsubscribe@chromium.org.
To post to this group, send email to chromi...@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-apps/.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Mark

unread,
Jun 2, 2017, 1:26:08 PM6/2/17
to Chromium-Apps-Announce, mabug...@gmail.com
I'll look into that. However that would require a lot of re-factoring of what I currently have and i'm hoping for an easier solution 


On Friday, June 2, 2017 at 12:46:13 PM UTC-4, PhistucK wrote:
Does loading it in an iFrame work?


PhistucK

On Fri, Jun 2, 2017 at 7:21 PM, Mark <mabug...@gmail.com> wrote:
I'm developing a chrome app which downloads a package containing another index.html file which I would like to redirect to. This package is stored in the local file system inside the app which in principle should be accessible for app.window.create. However the error I get is:

Unchecked runtime.lastError while running app.window.create: The URL used for window creation must be local for security reasons.

I have to download and load this package because it is updated every day with new content. Is there any solution to this or work around?

--
You received this message because you are subscribed to the Google Groups "Chromium-Apps-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-app...@chromium.org.

PhistucK

unread,
Jun 2, 2017, 1:48:01 PM6/2/17
to Mark, Chromium-Apps-Announce
You can search crbug.com for an existing issue and star it. If you cannot find one, file a new issue using the "New issue" link on the same page.
Please, do not add a "+1" or "Me too" or "Confirmed" (or similar) comment. It just wastes the time of Chrome engineers and sends unnecessary e-mails to all of the people who starred the issue.

You can reply with a link to the found or created issue and might get triaged (and fixed) faster.

Thank you.



PhistucK

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-apps+unsubscribe@chromium.org.
Reply all
Reply to author
Forward
0 new messages