Closed Bug 1142650 Opened 10 years ago Closed 7 years ago

Content script run on tab open interrupted on tab ready

Categories

(Add-on SDK Graveyard :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: elie.michel, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0 Build ID: 20150224222119 Steps to reproduce: Create an addon using SDK like so: **main.js** ``` var tabs = require('sdk/tabs'); tabs.open({ url: 'http://www.wikipedia.org', onOpen: function (tab) { console.log('OPENED'); worker = tab.attach({ contentScriptFile: './content.js' }); } }); ``` **content.js** ``` var go = function () { console.log('test'); window.setTimeout(go, 50); } go(); ``` Actual results: It would echo some `test` and as soon as the tab has been loaded, nothing. Expected results: It should have continued echoing `test`.
Component: Untriaged → Tabbed Browser
Component: Tabbed Browser → General
Product: Firefox → Add-on SDK
Version: 36 Branch → unspecified
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.