Closed Bug 1834049 Opened 1 years ago Closed 1 years ago

Creating MediaRecorder on canvas stream without context causes `NS_ERROR_NOT_INITIALIZED`

Categories

(Core :: Graphics: Canvas2D, defect, P3)

Firefox 113
defect

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: 32jojo32, Assigned: bradwerth)

References

Details

Attachments

(3 files)

Attached file canvas.html

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36

Steps to reproduce:

  1. Open the provided page
  2. Open console and you see the error

Actual results:

Error is thrown

Expected results:

No error thrown - chrome, safari works OK

The Bugbug bot thinks this bug should belong to the 'Core::Graphics: Canvas2D' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Graphics: Canvas2D
Product: Firefox → Core

I can reproduce. It's not clear that the spec requires the context to be created. I put together a quick patch to ignore that requirement and there was no error, but I'm not sure if that's a "fix". I'll upload the patch and ask Lee to review.

Severity: -- → S3
Priority: -- → P3

The spec does not seem to require a current context, so there's no reason
to require it here. If later calls within
HTMLCanvasElement::CaptureStream need a current context, they'll have
their own failure messages which will hopefully clarify where exactly we
need the context to exist.

Assignee: nobody → bwerth
Pushed by bwerth@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6d4600975de9 Permit canvas captureStream without initializing the context. r=lsalzman

Backed out for causing wpt failures in MediaStreamTrack-contentHint.html

Flags: needinfo?(bwerth)
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(bwerth)
Pushed by bwerth@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c07d9e5fbc57 Permit canvas captureStream without initializing the context. r=lsalzman https://hg.mozilla.org/integration/autoland/rev/e06cac16fcf2 Part 2: Update test expectations. r=lsalzman
Status: ASSIGNED → RESOLVED
Closed: 1 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
Regressions: 1836824
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: