Inline Workers not working on Device

UNCONFIRMED
Unassigned

Status

Firefox OS
General
UNCONFIRMED
4 years ago
4 years ago

People

(Reporter: Tim Caswell, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

37.81 KB, application/zip
Details
(Reporter)

Description

4 years ago
Created attachment 814512 [details]
moz-app.zip

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.8 Safari/537.36

Steps to reproduce:

Create a simple app that creates an inline web worker using code from a string.
I then attach a listener to the worker's message output and start the worker.

https://gist.github.com/creationix/75cb3d540418980f32a8


Actual results:

Nothing happens when testing on a real device (Keon running v1.1)  When running in the simulator it works correctly.  Also for reference, Chrome Apps also permit this usage of web workers.

I assume there is some kind of CSP related error, but I can't see it anywhere.




Expected results:

The real device should have worked like the simulator and output a message to the screen.

Updated

4 years ago
Component: General → DOM: Workers
Product: Boot2Gecko → Core
This sounds like a Simulator bug. Myk, where should this go?
Component: DOM: Workers → General
Product: Core → Boot2Gecko
(Reporter)

Comment 2

4 years ago
Are you not supposed to be able to use inline workers in privileged apps?  If you are, then the bug isn't in the simulator, but the actual device image.

Having this feature enables a whole class of extensible apps.  This is why I'm exploring it.
You need to log in before you can comment on or make changes to this bug.