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

Unified Diff: lib/aardvark.js

Issue 29323107: Issue 2816 - Restore Preview functionality (Closed)
Patch Set: Fixed nit and shutdown failures Created July 31, 2015, 2:36 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
Index: lib/aardvark.js
===================================================================
--- a/lib/aardvark.js
+++ b/lib/aardvark.js
@@ -572,21 +572,24 @@ let Aardvark = exports.Aardvark =
if (!elem)
return false;
this.browser.selectedBrowser.messageManager.sendAsyncMessage(
"ElemHideHelper:GetNodeInfo",
null,
{
element: elem,
- callback: (nodeData, host) =>
+ callback: (response) =>
{
+ response = JSON.parse(response);
+ if (!response.nodeData)
+ return;
+
this.window.openDialog("chrome://elemhidehelper/content/composer.xul",
- "_blank", "chrome,centerscreen,resizable,dialog=no", nodeData,
- host);
+ "_blank", "chrome,centerscreen,resizable,dialog=no", response);
this.quit();
}
}
);
return false;
},
blinkElement: function(elem)

Powered by Google App Engine
This is Rietveld