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

Unified Diff: lib/child/elemHideEmulation.js

Issue 29397620: Issue 5055 - Update adblockpluscore dependency to revision d0715e99bd3b and adblockplusui to 8ceaab… (Closed) Base URL: https://hg.adblockplus.org/adblockplus
Patch Set: Show effective selectors in blockable items Created March 29, 2017, 1:27 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 | « ext/common.js ('k') | metadata.gecko » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/child/elemHideEmulation.js
===================================================================
--- a/lib/child/elemHideEmulation.js
+++ b/lib/child/elemHideEmulation.js
@@ -80,32 +80,31 @@
// "inheritance" for about:blank and data: frames.
docDomain = new URL(getFrames(subject)[0].location).hostname;
}
catch (e)
{
// Invalid URL?
}
- for (let filter of filters)
+ for (let i = 0; i < filters.length; i++)
{
RequestNotifier.addNodeData(subject.document, subject.top, {
contentType: "ELEMHIDE",
docDomain: docDomain,
thirdParty: false,
- // TODO: Show the actual matching selector here?
- location: filter.replace(/^.*?##/, ""),
- filter: filter,
+ location: "##" + selectors[i],
+ filter: filters[i],
filterType: "elemhideemulation"
});
}
}
);
- handler.load(() => handler.apply());
+ handler.apply();
};
subject.addEventListener("load", onReady);
};
Services.obs.addObserver(onContentWindow, "content-document-global-created",
false);
onShutdown.add(() =>
« no previous file with comments | « ext/common.js ('k') | metadata.gecko » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld