Closed
Bug 1216402
Opened 10 years ago
Closed 3 years ago
Using tabs in sdk gives of use defaultPrevented error
Categories
(Add-on SDK Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: satishck1992, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0
Build ID: 20151001175956
Steps to reproduce:
Using jpm i initialised an add on and used the following code
var tabs = require("sdk/tabs");
function pauseOnDeactivate(tab) {
tab.on("deactivate", tabDeactivate);
}
function tabDeactivate(tab) {
console.log(tab.url + " is deactivated");
}
Actual results:
The console didn't log the intended message and gave of the following error:
"Use of getPreventDefault() is deprecated. Use defaultPrevented instead."
Expected results:
The console should have logged the message.
| Reporter | ||
Updated•10 years ago
|
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Comment 2•3 years ago
|
||
This bug lies at rest in the graveyard.
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•