diff --git a/browser/base/content/social-content.js b/browser/base/content/social-content.js index bea71cb7c43e..fc8fd88b4bb6 100644 --- a/browser/base/content/social-content.js +++ b/browser/base/content/social-content.js @@ -64,6 +64,11 @@ SocialErrorListener = { }, receiveMessage(message) { + if (!content) { + Cu.reportError("Message received whilst `content` is null: " + message.name); + return; + } + let document = content.document; switch (message.name) {