Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • W webext-sdk
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 97
    • Issues 97
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • eyeoeyeo
  • adblockplus
  • abc
  • webext-sdk
  • Issues
  • #246
Closed
Open
Issue created Jun 07, 2022 by Thomas Greiner@ThomasGreinerReporter

Error when accessing Tab.url property on Yandex Browser

Environment

  • Browser and full version: Yandex Browser 100.0.4896.1879 beta
  • Extension using this toolkit: Adblock Plus 3.14 (only via Chrome Web Store)
  • Commit hash: 0.4.0

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.

Actual behavior

  • After 2) EWE-related errors shown in background page:
    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)
  • After 3) EWE-related errors shown in background page:
    _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)
  • Filters don't work.

Expected behavior

  • No errors are being thrown.
  • Filters work as expected.

Further information

This issue was originally reported at adblockinc/ext/adblockplus/adblockplusui#1160 (closed).

This problem appears because the Tab object, which the browser provides to us, doesn't contain a url property.

Assignee
Assign to
Time tracking