Skip to content
This repository has been archived by the owner on Dec 1, 2017. It is now read-only.

Commit

Permalink
Bug 1239780 - Port Bug 1101817 - Part 5: Remove WeakMap.prototype.cle…
Browse files Browse the repository at this point in the history
…ar from Loop addon. Also account for different Firefox versions. r=Mardak.
  • Loading branch information
Standard8 committed Jan 14, 2016
1 parent 42ab05c commit 8d69900
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion add-on/chrome/modules/MozLoopService.jsm
Expand Up @@ -950,7 +950,13 @@ var MozLoopServiceInternal = {
let window = chatbox.contentWindow;

function socialFrameChanged(eventName) {
UITour.availableTargetsCache.clear();
// `clearAvailableTargetsCache` is new in Firefox 46. The else branch
// supports Firefox 45.
if ("clearAvailableTargetsCache" in UITour) {
UITour.clearAvailableTargetsCache();
} else {
UITour.availableTargetsCache.clear();
}
UITour.notify(eventName);

if (eventName == "Loop:ChatWindowDetached" || eventName == "Loop:ChatWindowAttached") {
Expand Down

0 comments on commit 8d69900

Please sign in to comment.