Closed Bug 1165565 Opened 5 years ago Closed 5 years ago

Add-ons can't use sdk/tabs - "modelFor is not defined" error on Firefox for Android

Categories

(Core :: General, defect, major)

40 Branch
ARM
Android
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 1163816

People

(Reporter: s2and, Unassigned)

Details

My add-on tries this:

var tabs = require("sdk/tabs");

Console shows this:

[JavaScript Error: "ReferenceError: modelFor is not defined"]
Message: ReferenceError: modelFor is not defined
Stack:
@resource://gre/modules/commonjs/sdk/tabs/tab-fennec.js:13:154

Both 40 and 41 branches has the same issue. 38 and 39 work fine. What is "modelFor" there for?
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1163816
Moving from Core::Untriaged to Core::General https://bugzilla.mozilla.org/show_bug.cgi?id=1407598
Component: Untriaged → General
You need to log in before you can comment on or make changes to this bug.