Chromium 5.0.3xxx : WebWorker can't work in local html file. (It's a bug?)

156 views
Skip to first unread message

fins

unread,
Apr 13, 2010, 1:01:57 PM4/13/10
to Chromium HTML5
WebWorker can't work in local html file ( e.g. url : file://disk-path/mytest.html
).

bug It can work after I deploy the files to a httpserver (e.g. url :
http://localhost/mytest.html )

why?


( chrome 4.1 don't have this bug )

Drew Wilson

unread,
Apr 13, 2010, 3:04:57 PM4/13/10
to fins, Chromium HTML5
Sending from the right email address this time.

-atw

On Tue, Apr 13, 2010 at 12:02 PM, Drew Wilson <atwi...@google.com> wrote:
Does this work with the --allow-file-access-from-files flag passed?

Chrome treats different file URLs as distinct origins by default, which means that you are effectively trying to load a cross-domain script resource for your worker, which generates an exception.

-atw



--
You received this message because you are subscribed to the Google Groups "Chromium HTML5" group.
To post to this group, send email to chromiu...@chromium.org.
To unsubscribe from this group, send email to chromium-html...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-html5/?hl=en.



fins

unread,
Apr 13, 2010, 9:41:43 PM4/13/10
to Chromium HTML5
Thank you. It's OK :)

the switch "--allow-file-access-from-files" will default to on in the
future??

On Apr 14, 3:04 am, Drew Wilson <atwil...@chromium.org> wrote:
> Sending from the right email address this time.
>
> -atw
>

> On Tue, Apr 13, 2010 at 12:02 PM, Drew Wilson <atwil...@google.com> wrote:
> > Does this work with the --allow-file-access-from-files flag passed?
>
> > Chrome treats different file URLs as distinct origins by default, which
> > means that you are effectively trying to load a cross-domain script resource
> > for your worker, which generates an exception.
>
> > -atw
>
> > On Tue, Apr 13, 2010 at 10:01 AM, fins <fin...@gmail.com> wrote:
>
> >>  WebWorker can't work in local html file (  e.g. url :
> >> file://disk-path/mytest.html
> >> ).
>
> >> bug It can work after I deploy the files to a httpserver (e.g. url :
> >>http://localhost/mytest.html)
>
> >> why?
>
> >> ( chrome 4.1 don't have this bug )
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Chromium HTML5" group.

> >> To post to this group, send email to chromium-ht...@chromium.org.


> >> To unsubscribe from this group, send email to

> >> chromium-html5+unsubscr...@chromium.org<chromium-html5%2Bunsubscr...@chromium.org>

PhistucK

unread,
Apr 14, 2010, 12:11:50 AM4/14/10
to fins, Chromium HTML5
No. Apparently, this is the way it is going to be from now on. It is more secured.

☆PhistucK


To post to this group, send email to chromiu...@chromium.org.
To unsubscribe from this group, send email to chromium-html...@chromium.org.

fins

unread,
Apr 14, 2010, 2:46:49 AM4/14/10
to Chromium HTML5
I think this strategy should be set WebWorker exception.

WebWorker security can be strengthened by strengthening the
restrictions on the function of the included js,

I think should not prohibit the WebWorker in the"local" html files
loaded "local" js file,
otherwise it will create difficulties for runing the local html
application(for example: games).

(I'm sorry for my poor English :'( )

> > <chromium-html5%2Bunsubscr...@chromium.org<chromium-html5%252Bunsubscr...@chromium.org>

Reply all
Reply to author
Forward
0 new messages