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

Issue 29856567: Issue 6826 - Use contentScripts API for snippets if available

Created:
Aug. 15, 2018, 2:30 p.m. by Manish Jethani
Modified:
Aug. 15, 2018, 3:19 p.m.
Reviewers:
Sebastian Noack
CC:
kzar
Base URL:
https://hg.adblockplus.org/adblockpluschrome/
Visibility:
Public.

Description

Depends on https://codereview.adblockplus.org/29856564/

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -1 line) Patch
M lib/contentFiltering.js View 3 chunks +54 lines, -1 line 0 comments Download

Messages

Total messages: 3
Manish Jethani
Aug. 15, 2018, 2:30 p.m. (2018-08-15 14:30:48 UTC) #1
Manish Jethani
Patch Set 1 Try this on Firefox 59+.
Aug. 15, 2018, 2:32 p.m. (2018-08-15 14:32:26 UTC) #2
Manish Jethani
Aug. 15, 2018, 3:19 p.m. (2018-08-15 15:19:00 UTC) #3
On 2018/08/15 14:32:26, Manish Jethani wrote:
> Patch Set 1
> 
> Try this on Firefox 59+.

You can try with the following document:

  <!DOCTYPE html>
  <script>
    console.log("Hello from document");
  </script>

And the following filter:

  127.0.0.1#$#log 'Hello from snippet'; trace 'Hello from snippet again'

It prints:

  Hello from snippet
  Hello from document
  Hello from snippet again

The last one is after the document's inline script because it's injected as a
<script> element into the DOM.

Powered by Google App Engine
This is Rietveld