Closed Bug 1006912 Opened 10 years ago Closed 10 years ago

Web Audio Editor needs to be destroyed and recreated after used

Categories

(DevTools Graveyard :: Web Audio Editor, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 32

People

(Reporter: jsantell, Assigned: jsantell)

References

Details

Attachments

(1 file, 2 obsolete files)

From the ContentObserver refactoring I think, the 'start-context' event doesn't get emitted from the web audio actor when refreshing.

Currently, the first node created fires the start-context event, as well as a node for the AudioDestination. Since we can't hook into constructors with ContentObserver/CallWatcher, this was done instead of listening for the actual AudioContext creation. The front and back end needs to be rewritten to handle persisting across reloads.
Assignee: nobody → jsantell
This is actually a show stopper.
Depends on: 1007345
No longer depends on: 1007345
Bug 1008497 may solve this issue as we'll have real events for AudioContext creation
Depends on: 1008497
Depends on: 1013544
No longer depends on: 1008497
Depends on 1013544 due to test changes, and I don't want to deal with merging patch magic right now
Attached patch 1006912-wae-must-persist.patch (obsolete) — Splinter Review
Was holding off on r?ing this as it'll need rebased as it also moves the `clickGraphNode` fn in tests to `head.js`, which is also done in bug 1013544, but I'll deal with rebasing later, just want to land this ASAP, as this is the bug that makes you close/open toolbox again upon refreshing the page
Attachment #8429428 - Flags: review?(vporof)
No longer depends on: 1013544
Attached patch 1006912-wae-must-persist.patch (obsolete) — Splinter Review
Now that the other patches landed, rebased against that.
Attachment #8429428 - Attachment is obsolete: true
Attachment #8429428 - Flags: review?(vporof)
Attachment #8429786 - Flags: review?(vporof)
Comment on attachment 8429786 [details] [diff] [review]
1006912-wae-must-persist.patch

Review of attachment 8429786 [details] [diff] [review]:
-----------------------------------------------------------------

::: browser/devtools/webaudioeditor/webaudioeditor-controller.js
@@ +214,5 @@
>    /**
>     * Called for each location change in the debugged tab.
>     */
>    _onTabNavigated: function(event) {
> +    let controller = this;

You could turn _onTabNavigated into a Task to avoid so much indentation. Then you don't even need to cache |this| anymore.

_onTabNavigated: Task.spawn(function*(event) {

}),
Attachment #8429786 - Flags: review?(vporof) → review+
Ah, yes, switched that over to a `Task.async`, and this horrible bug is fixed!
Attachment #8429786 - Attachment is obsolete: true
Attachment #8430215 - Flags: review+
Do you have a link to a recent Try run by chance? :)
Keywords: checkin-needed
Hm, thought I did but couldn't find it, reran it with success: https://tbpl.mozilla.org/?tree=Try&rev=2b69ade18951

A crash in the webgl editor, possibly related to bug 937088 or bug 1009319, but this patch wouldn't affect that tool in anyway. Rerunning 10.6 opt build for sanity checking though: https://tbpl.mozilla.org/?tree=Try&rev=9e818f9abad4
Keywords: checkin-needed
You know you can just retrigger jobs on the existing push, right? :)

See https://wiki.mozilla.org/Sheriffing/How:To:Recommended_Try_Practices
https://hg.mozilla.org/integration/fx-team/rev/27c882b46de9
Flags: in-testsuite+
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Ah, that would've helped too -- thanks!
https://hg.mozilla.org/mozilla-central/rev/27c882b46de9
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 32
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: