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: Added comment linking to bug report Created July 31, 2015, 3:09 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 | « chrome/content/frameScript.js ('k') | lib/inspectorObserver.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « chrome/content/frameScript.js ('k') | lib/inspectorObserver.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld