Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/content/composer.js

Issue 29325137: Issue 2950 - Don`t rely on Services.mm, it isn`t available before Gecko 39 (Closed)
Patch Set: Created Aug. 27, 2015, 12:12 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/main.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
« no previous file with comments | « no previous file | lib/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld