Closed
Bug 1164288
Opened 10 years ago
Closed 8 years ago
'sdk/page-worker' is not work in firefox for android 38
Categories
(Add-on SDK Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: ifree92, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36 OPR/29.0.1795.47
Steps to reproduce:
In main.js I have next source code:
var pageWorker = require("sdk/page-worker");
var tmpWorker;
tmpWorker = pageWorker.Page({
contentScript: 'console.log("Im loaded!!");'
});
When i run my addon on Android Firefox 38, in console nothing.
Actual results:
I've tried to attach to pageWorker a file, and more more combinations, but it don't work.
var self = require('sdk/self');
var pageWorker = require("sdk/page-worker");
var tmpWorker;
tmpWorker = pageWorker.Page({
contentScriptFile: self.data.url('example.js')
});
Where example.js is:
console.log("background activate");
Expected results:
But it work on Desktop Firefox 38, and work on Android Firefox 37. But on Android Firefox 38 it don't work.
Updated•10 years ago
|
Product: Firefox for Android → Add-on SDK
Version: Firefox 38 → unspecified
But in Android Firefox Nightly (ver 49) page-worker is work.
Comment 2•8 years ago
|
||
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•