When reloading a local file, the browser throws a domexception
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: elia.schenker, Unassigned)
Details
Attachments
(1 file)
|
823 bytes,
text/html
|
Details |
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
Comment 1•3 years ago
|
||
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.
Comment 2•3 years ago
|
||
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.
Description
•