Closed Bug 924578 Opened 11 years ago Closed 6 years ago

Inline Workers not working on Device

Categories

(Firefox OS Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: tim, Unassigned)

Details

Attachments

(1 file)

Attached file 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.
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
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.
Firefox OS is not being worked on
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: