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 )
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.
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>
To post to this group, send email to chromiu...@chromium.org.
To unsubscribe from this group, send email to chromium-html...@chromium.org.
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>