Closed
Bug 779869
Opened 13 years ago
Closed 12 years ago
"ready" tab event is not fired for images
Categories
(Add-on SDK Graveyard :: General, defect, P3)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: zer0, Unassigned)
References
Details
If an image is opened in the browser (or with tab's API), the tab's event "ready" is not fired. Here a simple add-on to reproduce it:
const tabs = require("tabs");
// Both ready and open are fired
tabs.open({
url: "https://www.mozilla.org/",
onReady: function(tab){
console.log("ready", tab.title, tab.contentType);
},
onOpen: function(tab){
console.log("open", tab.title, tab.contentType);
}
});
// Only open is fired
tabs.open({
url: "https://www.mozilla.org/media/img/home/firefox.png",
onReady: function(tab){
console.log("ready", tab.title, tab.contentType);
},
onOpen: function(tab){
console.log("open", tab.title, tab.contentType);
}
});
Priority: -- → P3
Comment 1•12 years ago
|
||
A tab's `pageshow` event was added in bug 671305 since URLs that do not have DOMs don't fire a ready event. Opening another bug for it since `onPageShow` isn't available for tabs however (must be done via tabs.on('pageshow')).
Matteo, can we close this?
Flags: needinfo?(zer0)
Comment 2•12 years ago
|
||
Closing this due to pageshow event being added in bug 671305
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
Updated•12 years ago
|
Flags: needinfo?(zer0)
You need to log in
before you can comment on or make changes to this bug.
Description
•