Closed Bug 1322858 Opened 9 years ago Closed 9 years ago

Implement AudioWorkletGlobalScope

Categories

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

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla53
Tracking Status
firefox53 --- fixed

People

(Reporter: baku, Assigned: baku)

References

Details

(Keywords: dev-doc-needed)

Attachments

(1 file, 1 obsolete file)

This is somehow needed for having AudioWorkletGlobalScope. In our current implementation, WorkletGlobalScope is a global scope, but in the spec, it's not. There are other interfaces extending WorkletGlobalScope such as AudioWorkletGlobalScope, FakeWorkletGlobalScope and the houdini one. With this bug I want to implement this FakeWorkletGlobalScope and improve our test cases. Maybe, we can also make FakeWorkletGlobalScope to run in a different thread for testing the CC/GC.
Attached patch aw_0_fakeWorklet.patch (obsolete) — Splinter Review
Assignee: nobody → amarchesini
Attachment #8817829 - Flags: review?(bugs)
Comment on attachment 8817829 [details] [diff] [review] aw_0_fakeWorklet.patch FakeWorklet stuff is in non-normative example section of the spec. Why would we want it? https://drafts.css-houdini.org/worklets/#examples I don't think we should to add this. Better would be to add the AudioWorkletGlobalScope, even if not all the features were implemented immediately. And of course behind some flag.
Attachment #8817829 - Flags: review?(bugs) → review-
Summary: Implement FakeWorkletGlobalScope → Implement AudioWorkletGlobalScope
This is not going to be exposed to content soon. But I need it in order to continue the AudioWorklet implementation.
Attachment #8817829 - Attachment is obsolete: true
Attachment #8817977 - Flags: review?(bugs)
Comment on attachment 8817977 [details] [diff] [review] aw_W1_global.patch ok, preliminary patch, and main thread only.
Attachment #8817977 - Flags: review?(bugs) → review+
Pushed by amarchesini@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/ed5c93dfd7dd Implement AudioWorkletGlobalScope - main-thread only - not meant to be exposed yet, r=smaug
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Depends on: 1324169
AudioWorkletGlobalScope.webidl claims the origin of the file is https://www.w3.org/TR/worklets-1/#fakeworkletglobalscope but that spec doesn't define AudioWorkletGlobalScope at all. Should that be linking to https://webaudio.github.io/web-audio-api/#AudioWorkletGlobalScope or something?
Flags: needinfo?(amarchesini)
Flags: needinfo?(amarchesini)
Pushed by amarchesini@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/84af9d1e82d1 Fix the URL of the AudioWorklet spec in webidl files, r=me
FYI AudioWorkletGlobalScope specficiation has changed since this was shipped. It now has the following new attributes: readonly attribute unsigned long long currentFrame; readonly attribute double currentTime; readonly attribute float sampleRate; I will update the webidl files as part of bug 1458446.
Blocks: 1460896
Documentation team note: AudioWorklet is currently not expected to ship enabled by default until sometime early in 2019. Given that and some things which are still in flux, we are holding off on documenting it until it’s closer to ready. See bug 1473176, “Document AudioWorklet”.
Component: DOM → DOM: Core & HTML
Type: defect → enhancement
Blocks: 1473176
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: