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

Unified Diff: chrome/content/frameScript.js

Issue 29323439: Issue 2877 - Element Hiding Helper causes tab to crash when selecting some elements (Closed)
Patch Set: Created Aug. 10, 2015, 9:22 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/aardvark.js » ('j') | lib/aardvark.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/frameScript.js
===================================================================
--- a/chrome/content/frameScript.js
+++ b/chrome/content/frameScript.js
@@ -23,17 +23,18 @@
removeMessageListener("ElemHideHelper:Shutdown", onShutdown);
removeMessageListener("ElemHideHelper:GetNodeInfo", onGetNodeInfo);
removeMessageListener("ElemHideHelper:Preview", onTogglePreview);
}
function onGetNodeInfo(message)
{
let nodeInfo = getNodeInfo(message.objects.element);
- message.objects.callback(JSON.stringify(nodeInfo));
+ nodeInfo.messageId = message.data;
+ sendAsyncMessage("ElemHideHelper:GetNodeInfo:Response", nodeInfo);
}
function onTogglePreview(message)
{
togglePreview(message.data.nodeID, message.data.stylesheetData);
if (message.data.forgetNode)
forgetNode(message.data.nodeID);
}
« no previous file with comments | « no previous file | lib/aardvark.js » ('j') | lib/aardvark.js » ('J')

Powered by Google App Engine
This is Rietveld