Open Bug 1745201 Opened 3 years ago Updated 3 years ago

When reloading a local file, the browser throws a domexception

Categories

(Core :: DOM: Core & HTML, defect)

Firefox 95
defect

Tracking

()

UNCONFIRMED

People

(Reporter: elia.schenker, Unassigned)

Details

Attachments

(1 file)

Steps to reproduce:

I created a simple local html and javascript file which calls the beginPath() function of the canvas 2d context (canvas.getContext("2d")).

Actual results:

This function throws a domexception. For some bizarre reason, this doesn't happen, when I upload the javascript file to a server and run it from there. It also only happens when said method is called in a class.

Expected results:

The domexception shouldn't have been thrown

The Bugbug bot thinks this bug should belong to the 'Core::Canvas: 2D' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Canvas: 2D
Product: Firefox → Core

The DOM exception is not actually thrown by the canvas code. If I remove the canvas and script from the testcase, so that it's essentially an empty head and body html file, it still throws the exception when I reload the page. In fact, if I literally make it an empty file, it throws the exception as well. I am seeing this in the console:

"DOMException: JSWindowActorChild.sendAsyncMessage: JSWindowActorChild cannot send at the moment"

I am going to forward this to the DOM triage queue for them to take a look at.

Severity: -- → S3
Component: Canvas: 2D → DOM: Core & HTML
Summary: When running the beginPath Method of the canvas in a local file, the browser throws a domexception → When reloading a local file, the browser throws a domexception
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: