Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#4035 closed defect (fixed)

A page gets closed if it was opened as popup and contains blocked resources

Reported by: scheer Assignee: pavelz
Priority: P2 Milestone: Adblock-Browser-for-iOS-1.4.0
Module: Adblock-Browser-for-iOS Keywords:
Cc: mario Blocked By:
Blocking: Platform: Adblock Browser for iOS
Ready: yes Confidential: no
Tester: Scheer Verified working: yes
Review URL(s):

Description (last modified by pavelz)

When the user attempts to open certain sites from, the page starts opening as a new tab as expected, but gets closed immediately. Some of these pages are and


ABB 1.3.2
iPhone 6 Plus S
iOS 9.3.1

How to reproduce

  1. Visit
  2. Open an article from

Observed behaviour

The opened window is immediately closed and the user is brought back to

Expected behaviour

The news article window from should remain open.

Attachments (1)

CoreTime.txt (52.2 KB) - added by scheer 4 years ago.

Download all attachments as: .zip

Change History (8)

Changed 4 years ago by scheer

comment:1 Changed 4 years ago by mario

  • Priority changed from Unknown to P2
  • Ready set

comment:2 Changed 4 years ago by pavelz

  • Owner set to pavelz

The bug is triggered by the new ABP popup handling code. When popup creation is catched in webNavigation.onCreatedNavigationTarget, extension creates an additional temporary listener to webRequest.onBeforeRequest, restricted to resourceType=main_frame. Due to a bug in Kitt core, this additional listener is called for ALL requests from the popup, not only main_frame. If there is a resource in the popup which has to be blocked, this new listener considers it main_frame and closes the whole popup as blocked. In case of, the blocked content is either from or But it would happen equally for any other page with blockable content, if it happens to get opened as popup.

comment:3 Changed 4 years ago by pavelz

  • Cc mario added
  • Description modified (diff)
  • Summary changed from chrome.tabs.remove closes when opened from to A page gets closed if it was opened as popup and contains blocked resources

@mario reworded issue summary, please review

comment:5 Changed 4 years ago by pavelz

  • Resolution set to fixed
  • Status changed from new to closed

comment:6 Changed 4 years ago by mario

  • Milestone set to Adblock-Browser-for-iOS-next

comment:7 Changed 4 years ago by scheer

  • Tester changed from Unknown to Scheer
  • Verified working set

I have now opened varying pages from with no adverse effects. Opening previous culprits such as now open with no issues at all.

ABB 1.4.0 (996)
iPhone 6s Plus
iOS 9.3.1

Note: See TracTickets for help on using tickets.