mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-12 23:12:21 +00:00
Bug 1410985 - Run the pocket-library animation if the item was added, regardless of the position of the Pocket button. r=adw
MozReview-Commit-ID: H5jFPHeusJL --HG-- extra : rebase_source : d2dde89cfb127ac47e0d4ba49c29d26649831f39
This commit is contained in:
parent
2d9fdd1bcf
commit
e42a0ecfec
5
browser/extensions/pocket/bootstrap.js
vendored
5
browser/extensions/pocket/bootstrap.js
vendored
@ -165,6 +165,10 @@ var PocketPageAction = {
|
||||
PocketPageAction.pocketedBrowserInnerWindowID = browser.innerWindowID;
|
||||
},
|
||||
onIframeHidden(iframe, panel) {
|
||||
if (iframe.getAttribute("itemAdded") == "true") {
|
||||
iframe.ownerGlobal.LibraryUI.triggerLibraryAnimation("pocket");
|
||||
}
|
||||
|
||||
if (!PocketPageAction.urlbarNode) {
|
||||
return;
|
||||
}
|
||||
@ -173,7 +177,6 @@ var PocketPageAction = {
|
||||
delete PocketPageAction.urlbarNode;
|
||||
|
||||
if (iframe.getAttribute("itemAdded") == "true") {
|
||||
iframe.ownerGlobal.LibraryUI.triggerLibraryAnimation("pocket");
|
||||
PocketPageAction.innerWindowIDsByBrowser.set(
|
||||
PocketPageAction.pocketedBrowser,
|
||||
PocketPageAction.pocketedBrowserInnerWindowID
|
||||
|
Loading…
x
Reference in New Issue
Block a user