[Pkg-mozext-commits] [tabmixplus] 13/61: Make sure docShell exit before processing message to the content
David Prévot
taffit at moszumanska.debian.org
Fri Aug 28 19:09:17 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit a4357c9096c9316c572e2c268bccaea913c082d0
Author: onemen <tabmix.onemen at gmail.com>
Date: Mon Jul 13 20:56:01 2015 +0300
Make sure docShell exit before processing message to the content
---
chrome/content/content.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/chrome/content/content.js b/chrome/content/content.js
index 16165dc..d69e387 100644
--- a/chrome/content/content.js
+++ b/chrome/content/content.js
@@ -50,6 +50,11 @@ let TabmixContentHandler = {
},
receiveMessage: function ({name, data}) {
+ // The docShell might be gone. Don't process messages,
+ // that will just lead to errors anyway.
+ if (!docShell) {
+ return;
+ }
switch (name) {
case "Tabmix:restorePermissions":
let disallow = new Set(data.disallow && data.disallow.split(","));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git
More information about the Pkg-mozext-commits
mailing list