Skip to content

ABP not working on Yandex browser

Environment

  • OS version: macOS Monterey
  • Browser version: Yandex version 22.5.0.1843 (64-bit) | also on Yandex Browser 22.5.1.966
  • Extension version: Adblock Plus 3.14 (only via Chrome Web Store)
  • Last working version: Adblock Plus 3.13

Steps to reproduce

  1. Open yandex.ru in a new tab.
  2. Install Adblock Plus 3.14 via Chrome Web Store.
  3. Open a new tab and navigate to yandex.ru.

Observed behavior

  • After 2)
    • Errors shown in background page:
    Uncaught (in promise) TypeError: Failed to construct 'URL': Invalid URL
        at background.js:354:29
    background.js:19876 Uncaught (in promise) TypeError: Cannot read properties of null (reading '1')
        at parseURL (background.js:19876:32)
        at new FrameInfo (background.js:23193:87)
        at background.js:23256:29
        at async Promise.all (index 0)
        at async discoverExistingFrames (background.js:23245:3)
        at async Module.start (background.js:23346:3)
        at async startAsyncModule (background.js:23588:3)
        at async background.js:23618:9
        at async startAsyncModule (background.js:25751:3)
        at async Module.start (background.js:25789:3)
    • First-run page doesn't open.
  • After 3) Errors shown in background page:
    Error in event handler: TypeError: Failed to construct 'URL': Invalid URL
        at updatePageFrameStructure (chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/ext/background.js:167:17)
        at chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/ext/background.js:292:7
    _generated_background_page.html:1 Error in event handler: TypeError: Cannot read properties of null (reading '1')
        at parseURL (chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/background.js:19876:32)
        at new FrameInfo (chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/background.js:23193:87)
        at recordFrameFromNavigationEvent (chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/background.js:23288:23)
        at onCommitted (chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/background.js:23297:3)
    _generated_background_page.html:1 Error in event handler: TypeError: Failed to construct 'URL': Invalid URL
        at updatePageFrameStructure (chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/ext/background.js:167:17)
        at chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/ext/background.js:292:7
    _generated_background_page.html:1 Error in event handler: TypeError: Cannot read properties of null (reading '1')
        at parseURL (chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/background.js:19876:32)
        at new FrameInfo (chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/background.js:23193:87)
        at recordFrameFromNavigationEvent (chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/background.js:23288:23)
        at onCommitted (chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/background.js:23297:3)
    _generated_background_page.html:1 Error in event handler: TypeError: Failed to construct 'URL': Invalid URL
        at updatePageFrameStructure (chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/ext/background.js:167:17)
        at chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/ext/background.js:292:7
    _generated_background_page.html:1 Error in event handler: TypeError: Cannot read properties of null (reading '1')
        at parseURL (chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/background.js:19876:32)
        at new FrameInfo (chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/background.js:23193:87)
        at recordFrameFromNavigationEvent (chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/background.js:23288:23)
        at onCommitted (chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/background.js:23297:3)
    _generated_background_page.html:1 Error in event handler: TypeError: Cannot read properties of null (reading '1')
        at parseURL (chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/background.js:19876:32)
        at new FrameInfo (chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/background.js:23193:87)
        at recordFrameFromNavigationEvent (chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/background.js:23288:23)
        at onHistoryStateUpdated (chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/background.js:23301:3)
  • Ads are not being blocked on any website.
  • Developer tools panel doesn't show filter hits.
  • Issue report data doesn't contain filter hits.

Expected behavior

  • After 2) First-run page opens.
  • No errors are shown.
  • Ads are blocked.
  • Developer tools panel shows filter hits.
  • Issue report data includes filter hits.

Further information

Example of user report: https://reports.adblockplus.org/8ae1e9b4-dd9d-4768-8042-010f5855913a#tab=subscriptions

For further information see ticket: https://jira.eyeo.com/browse/FDA-2996

Screenshots yandex

This problem appears because the Tab object, which the browser provides to us, doesn't contain a url property. The related EWE issue for it can be found at https://gitlab.com/eyeo/adblockplus/abc/webext-sdk/-/issues/246.

Edited by Thomas Greiner
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information