Bug 923719: Uplift Addon SDK to Firefox. r=me

bece20a...24471bc
This commit is contained in:
Dave Townsend
2013-10-04 16:48:52 -07:00
parent 455343ab11
commit 1e587ea578
61 changed files with 2202 additions and 1741 deletions

View File

@@ -81,6 +81,10 @@ function isOpen(panel) {
}
exports.isOpen = isOpen;
function isOpening(panel) {
return panel.state === "showing"
}
exports.isOpening = isOpening
function close(panel) {
// Sometimes "TypeError: panel.hidePopup is not a function" is thrown
@@ -363,8 +367,10 @@ function style(panel) {
}
exports.style = style;
function getContentFrame(panel) isOpen(panel) ? panel.firstChild :
panel.backgroundFrame
let getContentFrame = panel =>
(isOpen(panel) || isOpening(panel)) ?
panel.firstChild :
panel.backgroundFrame
exports.getContentFrame = getContentFrame;
function getContentDocument(panel) getContentFrame(panel).contentDocument