'sdk/page-worker' is not work in firefox for android 38

RESOLVED INCOMPLETE

Status

RESOLVED INCOMPLETE
4 years ago
a year ago

People

(Reporter: ifree92, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
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.
(Reporter)

Updated

4 years ago
OS: Unspecified → Android
Hardware: Unspecified → ARM
Component: General → General
Product: Firefox for Android → Add-on SDK
Version: Firefox 38 → unspecified
(Reporter)

Comment 1

4 years ago
But in Android Firefox Nightly (ver 49) page-worker is work.
https://bugzilla.mozilla.org/show_bug.cgi?id=1399562
Status: UNCONFIRMED → RESOLVED
Last Resolved: a year ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.