Opened 8 weeks ago

Last modified 7 weeks ago

#7420 new defect

abort-current-inline-script snippet does not work in Edge

Reported by: Ross Assignee:
Priority: P4 Milestone:
Module: Core Keywords:
Cc: sebastian, kzar, mjethani, geo Blocked By:
Blocking: Platform: Edge
Ready: no Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

Description (last modified by mjethani)

Environment

ABP 0.9.14.2284
Edge 44.17763.1.0

How to reproduce

  1. Serve document below.
  2. Add filter.
  3. Refresh page.

Example

Document:

<!DOCTYPE html>
<html>
<body>
  <p id="target">Not run yet.</p>
  <script>
    let target = document.getElementById("target");
    target.innerHTML = "Script was aborted";

    document.querySelector("#foo");

    target.innerHTML = "Script was not aborted";
  </script>
</body>
</html>

Filter:

<host>#$#abort-current-inline-script document.querySelector

Observed behaviour

The filter has no effect.

Expected behaviour

The snippet to cause the script to abort, as it does in Chrome/Firefox.

Notes

Before investigating this issue, bear in mind that abort-current-inline-script does not work in general (#7421, #7422). If there is a specific issue here that may also apply to other snippets, a better way would be to try a different snippet.

It seems log works but trace does not work on Edge; perhaps this is not about abort-current-inline-script then.

Change History (6)

comment:1 follow-up: Changed 8 weeks ago by sebastian

Is that related as well to ticket:7409#comment:8?

comment:2 Changed 7 weeks ago by mjethani

  • Summary changed from abort-current-inline snippet does not work in Edge to abort-current-inline-script snippet does not work in Edge

comment:3 in reply to: ↑ 1 Changed 7 weeks ago by mjethani

Replying to sebastian:

Is that related as well to ticket:7409#comment:8?

The easy way to find out, Ross, would be to use the filter #$#trace Hello. If it does not print, it is the same issue and applies to all "type 2" snippets (snippets which use a <script> element).

comment:4 follow-up: Changed 7 weeks ago by Ross

#$#log works but #$#trace does not in Edge.

ABP 0.9.14.2284
Edge 44.17763.1.0

comment:5 Changed 7 weeks ago by mjethani

  • Description modified (diff)

comment:6 in reply to: ↑ 4 Changed 7 weeks ago by mjethani

Replying to Ross:

#$#log works but #$#trace does not in Edge.

I have added a Notes section based on this. It may not be about abort-current-inline-script after all but rather about <script> tag injection. I would look into log and trace instead.

Note: See TracTickets for help on using tickets.