| 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(() => |