Skip to content

Script error always thrown on page load #10817

@kalkih

Description

@kalkih

Steps to reproduce

  1. Visit: https://kalkih.github.io/firefox-script-error-ios/
  2. An alert with the thrown ErrorEvent is shown.

The example to reproduce the issue consists of a window.addEventListener("error") which fires on the error and displays it in an alert
Source code for the example: https://github.com/kalkih/firefox-script-error-ios/blob/main/index.html

Expected behavior

No error should be thrown on page load

Actual behavior

An error is thrown on page load which fires the window.addEventListener("error")

Device & build information

  • Device: iPhone 13 Pro Max running iOS 15.4.1
  • Build version: Build version: 100.1 (9384)

Notes

With "Enhanced Tracking Protection" switched to on, the error doesn't seem to be thrown when accessing a root page. Can be reproduced by serving the index.html page in the example locally on "/"

┆Issue is synchronized with this Jira Task

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug 🐞This is a bug with existing functionality not behaving as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions