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

Unified Diff: lib/aardvark.js

Issue 29322778: Issue 2816 - Partial fix for EHH button in inspector tool, preview functionality still broken (Closed)
Patch Set: Preemptively fixed some nits and compatibility info Created July 29, 2015, 12:41 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
@@ -567,19 +567,30 @@ let Aardvark = exports.Aardvark =
return false;
},
select: function(elem)
{
if (!elem)
return false;
- this.window.openDialog("chrome://elemhidehelper/content/composer.xul", "_blank",
- "chrome,centerscreen,resizable,dialog=no", elem);
- this.quit();
+ this.browser.selectedBrowser.messageManager.sendAsyncMessage(
+ "ElemHideHelper:GetNodeInfo",
+ null,
+ {
+ element: elem,
+ callback: (nodeData, host) =>
+ {
+ this.window.openDialog("chrome://elemhidehelper/content/composer.xul",
+ "_blank", "chrome,centerscreen,resizable,dialog=no", nodeData,
+ host);
+ this.quit();
+ }
+ }
+ );
return false;
},
blinkElement: function(elem)
{
if (!elem)
return false;
« 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