Closed Bug 844492 Opened 11 years ago Closed 7 years ago

tab not found in windows.activeWindow.tabs in tabs.on('open') event

Categories

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

defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: evold, Unassigned)

References

Details

This test fails:

exports.testTabsOnOpen__ = function(assert, done) {
  tabs.on('open', function(tab) {
    for each (let t in windows.activeWindow.tabs) {
      if (t === tab) {
        assert.pass('tab found');
        return done();
      }
    }
    assert.fail('tab not found');
  });

  tabs.open({
    url: "about:mozilla"
  });
};

It should pass.
https://bugzilla.mozilla.org/show_bug.cgi?id=1399562
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.