Closed
Bug 1126217
Opened 11 years ago
Closed 11 years ago
Cannot create inline Web Worker in Firefox 35 addon
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: andrii.zavada, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36
Steps to reproduce:
I'm developing a XUL based Firefox extension. Tried to create an inline Web Worker using Blob in chrome scope.
Here is a code sample:
Components.utils.import("resource://gre/modules/devtools/Console.jsm");
Components.utils.importGlobalProperties(['Blob', 'URL']);
try {
var blob = new Blob(["function f(){}"], {type: "application/javascript"});
var url = URL.createObjectURL(blob);
var worker = new Worker(url);
} catch(e) {
console.error(e);
}
Actual results:
Got an error: Failed to load script (nsresult = 0x805303f4). The url value looks like this "blob:null/371e34bd-1fbf-4f66-89cc-24d0c1c7bad5"
Expected results:
The Web Worker should be created. The following code works fine in Firefox 33 and older versions.
Comment 1•11 years ago
|
||
This seems to be fixed in Beta36+.
Could you test with latest Beta36[1], Dev37.0a2[2] and Nightly38.a2[3]?
[1] https://www.mozilla.org/en-US/firefox/channel/#beta
[2] https://www.mozilla.org/en-US/firefox/channel/#developer
[3] https://nightly.mozilla.org/
Flags: needinfo?(andrii.zavada)
| Reporter | ||
Comment 2•11 years ago
|
||
(In reply to Alice0775 White from comment #1)
> This seems to be fixed in Beta36+.
> Could you test with latest Beta36[1], Dev37.0a2[2] and Nightly38.a2[3]?
>
> [1] https://www.mozilla.org/en-US/firefox/channel/#beta
> [2] https://www.mozilla.org/en-US/firefox/channel/#developer
> [3] https://nightly.mozilla.org/
The issue is not reproducible in Beta, Dev and Nightly.
Flags: needinfo?(andrii.zavada)
| Reporter | ||
Comment 3•11 years ago
|
||
The issue is still reproducible with bootstrapped XUL extension in Firefox 36.0.4 and 37.0 Beta. However in Firefox 38.0a1 the issue appears to be fixed.
Comment 4•11 years ago
|
||
Are you OK with resolving/worksforme then? I doubt this is important enough to be uplifted to earlier branches and I couldn't quickly find where this got fixed.
Flags: needinfo?(andrii.zavada)
| Reporter | ||
Comment 5•11 years ago
|
||
I'm OK with this. However this bug completely blocks my extension and makes it almost useless.
Flags: needinfo?(andrii.zavada)
Comment 6•11 years ago
|
||
Sorry about that; good thing we have releases at regular intervals, so this will be on release in about 1 month! If you find that this stops working on 38 or nightly, please reopen.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•