Index: dependencies
diff --git a/dependencies b/dependencies
index 1cf0ab001c0ab1c8c2bb7875c7bef25c5bca328c..aa3b24dd6d0c6e39c476d84a2641d34b9e27e40d 100644
--- a/dependencies
+++ b/dependencies
@@ -2,4 +2,4 @@ _root = hg:https://hg.adblockplus.org/ git:https://github.com/adblockplus/
 _self = buildtools/ensure_dependencies.py
 buildtools = buildtools hg:c830dfa08e2f git:3a925dd
 adblockpluscore = adblockpluscore hg:69a1ff0e91b3 git:a902e17
-adblockplusui = adblockplusui hg:ead38c2013b5 git:0290fb1
+adblockplusui = adblockplusui hg:9546f62e182f git:7411639
Index: lib/notificationHelper.js
diff --git a/lib/notificationHelper.js b/lib/notificationHelper.js
index d0ecabecf5c60b337ebdbf329fcc1ca083d48cac..49a8def40ec93651be93c16fe551d15803042d6e 100644
--- a/lib/notificationHelper.js
+++ b/lib/notificationHelper.js
@@ -294,6 +294,15 @@ exports.shouldDisplay = (method, notificationType) =>
   return methods.includes(method);
 };
 
+/**
+ * Tidies up after a notification was clicked.
+ */
+exports.notificationClicked = () =>
+{
+  if (activeNotification)
+    activeNotification.onClicked();
+};
+
 ext.pages.onLoading.addListener(page =>
 {
   NotificationStorage.showNext(stringifyURL(page.url));
Index: popup.js
diff --git a/popup.js b/popup.js
index fea70225b7b6a231438a0e45ee55d5226eec9c56..1e1081e28eb3fe61069e11472a8d9f36ad0a97c7 100644
--- a/popup.js
+++ b/popup.js
@@ -334,7 +334,7 @@ window.addEventListener("load", () =>
           setPref("notifications_ignoredcategories", true);
 
         notificationElement.hidden = true;
-        notification.onClicked();
+        browser.runtime.sendMessage({type: "notifications.clicked"});
       }
     }, true);
   });
