Index: chrome/content/composer.js |
=================================================================== |
--- a/chrome/content/composer.js |
+++ b/chrome/content/composer.js |
@@ -488,17 +488,19 @@ function fillAttributes(nodeData) |
// Add custom CSS entry |
node = createAttribute("advanced", nodeData.customCSS, list.getAttribute("_labelcustom"), nodeData.customCSS.selected); |
list.appendChild(node); |
} |
} |
function togglePreview(preview, forgetNode) |
{ |
- Services.mm.broadcastAsyncMessage("ElemHideHelper:Preview", { |
+ let messageManager = Cc["@mozilla.org/globalmessagemanager;1"] |
+ .getService(Ci.nsIMessageBroadcaster); |
+ messageManager.broadcastAsyncMessage("ElemHideHelper:Preview", { |
nodeID: nodeID, |
stylesheetData: preview ? stylesheetData : null, |
forgetNode: !!forgetNode |
}); |
} |
function changeDomain(node) { |
domainData.selected = node.getAttribute("value"); |