Closed Bug 1279795 Opened 10 years ago Closed 9 years ago

Problem with Workers only on localhost Error: Failed to load script (nsresult = 0x804b0050)

Categories

(Core :: DOM: Service Workers, defect)

45 Branch
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: kdesi, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 Build ID: 20160607223741 Steps to reproduce: Only on localhost and FF 45, 47 (tested) throw error var worker_autocomplete = new Worker ('bin/javascript/worker_autocomplete.js'); throw: Error: Failed to load script (nsresult = 0x804b0050) Actual results: Before I have FF (Iceweasel) 38.8 all work OK, Chromium OK, Chrome OK and other browsers OK. When I upgrade Iceweasel on version 45 throw this error. I test on FireFox 47 same error. I remind, this error only on localhost Expected results: Broken CORS? Kinder joke?
Component: Untriaged → DOM: Service Workers
Product: Firefox → Core
baku's been looking at some worker stuff recently. Any thoughts, Andrea?
Flags: needinfo?(amarchesini)
I cannot reproduce this issue. I need more info.
Flags: needinfo?(amarchesini)
The best would be if you can provide an example or a STR. And NI me directly. Thanks!
Flags: needinfo?(kdesi)
All JavaScript code with workers have this problem on localhost. Problem is that almost none developer use workers. I write on Github educational code for workers https://github.com/bedna-KU/PHPXHR and this throw the same error. Before code works OK (older versions FF). On others browsers work OK. Workers is technology of the future, each processes have own thread and no freeze browser. Please, how can I help?
> Please, how can I help? Thanks for this PHPXHR! I tested it locally and it works fine: I run it using apache+php5 locally, loading it from http://localhost/PHPXHR Can you tell me if your setup is similar to mine? Thanks!
firefox -v Mozilla Firefox 47.0 php -v PHP 5.6.22-0+deb8u1 (cli) (built: Jun 9 2016 07:14:06) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies apache2 -v Server version: Apache/2.4.10 (Debian) Server built: Nov 28 2015 14:05:48 Firefox prefs.js http://pastebin.com/2QTzKdvX apache2.conf http://pastebin.com/kMmu6Dsi php.ini http://pastebin.com/tjSCcHN9 PHPXHR in Chromium have output: STATUS: * Send text to worker: LEL * Spawn worker writer * OK, file writed * Spawn worker reader * Terminate worker writer * Text from file: LEL * Terminate worker reader and console is empty. In FireFox: STATUS: * Send text to worker: LEL and in console: Error: Failed to load script (nsresult = 0x804b0050)
I remove .mozilla directory from home, and all works OK.
Per comment 8, closing this as WORKSFORME. Please feel free to reopen it, if I misunderstand something. Thanks.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(kdesi)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.