Opened on 03/28/2019 at 01:24:03 PM

Closed on 08/29/2019 at 05:43:18 PM

#7418 closed defect (rejected)

Subframe request blocked in whitelisted frame

Reported by: greiner Assignee:
Priority: Unknown Milestone:
Module: Platform Keywords: closed-in-favor-of-gitlab
Cc: sebastian, greiner Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: no Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

Description

Environment

Ubuntu 16.04
Chrome 71
Adblock Plus 3.4.3 / 3.4.2

How to reproduce

  1. Add the custom filters /ad.htm^ and @@/sub.htm$document
  2. Create top.htm, sub.htm and ad.htm and launch static web server (see file contents below)
  3. Open top.htm (e.g. http://localhost:8080/top.htm)

Example file contents

top.htm

<iframe src="sub.htm" height="500"></iframe>

sub.htm

<strong>With srcdoc</strong>
<iframe srcdoc=""></iframe>

<strong>Without srcdoc</strong>
<iframe></iframe>

<script>
let iframes = document.querySelectorAll("iframe");
for (let iframe of iframes) {
  iframe.contentDocument.write(`
    <iframe src="ad.htm"></iframe> 
  `);
}
</script>

ad.htm

ADVERTISEMENT

Observed behavior

  • Frame under heading "With srcdoc" failed to load
  • Frame under heading "Without srcdoc" loads successfully
  • Request to ad.htm is shown in DevTools as being blocked by filter /ad.htm^

Expected behavior

  • Both frames load successfully
  • Request to ad.htm is not shown in DevTools as being blocked

Further information

This ticket refers to an edge case related to subframes that we didn't cover in #7305.

Attachments (0)

Change History (2)

comment:1 Changed on 03/28/2019 at 09:21:05 PM by sebastian

  • Cc sebastian greiner added

comment:2 Changed on 08/29/2019 at 05:43:18 PM by sebastian

  • Keywords closed-in-favor-of-gitlab added
  • Resolution set to rejected
  • Status changed from new to closed

Sorry, but we switched to GitLab. If this issue is still relevant, please file it again in the new issue tracker.

Add Comment

Modify Ticket

Change Properties
Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none).
 
Note: See TracTickets for help on using tickets.