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

Unified Diff: devtools-panel.js

Issue 29770586: Issue 6670 - Display the rewritten to info if applicable in the devtools (Closed) Base URL: https://hg.adblockplus.org/adblockplusui/
Patch Set: Some CSS style fixes. Created May 17, 2018, 2: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 | « devtools-panel.html ('k') | skin/devtools-panel.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: devtools-panel.js
===================================================================
--- a/devtools-panel.js
+++ b/devtools-panel.js
@@ -104,16 +104,24 @@
{
ext.devtools.panels.openResource(request.url);
event.preventDefault();
}
}, false);
}
}
+ if (request.rewrittenUrl)
+ {
+ let rewrittenUrl = row.querySelector(".rewritten-url > a");
+ rewrittenUrl.textContent = request.rewrittenUrl;
+ rewrittenUrl.setAttribute("href", request.rewrittenUrl);
+ row.querySelector(".rewritten-url").removeAttribute("hidden");
+ }
+
if (filter)
{
let filterElement = row.querySelector(".filter");
let originElement = row.querySelector(".origin");
filterElement.textContent = filter.text;
row.dataset.state = filter.whitelisted ? "whitelisted" : "blocked";
« no previous file with comments | « devtools-panel.html ('k') | skin/devtools-panel.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld