Closed
Bug 1006912
Opened 11 years ago
Closed 11 years ago
Web Audio Editor needs to be destroyed and recreated after used
Categories
(DevTools Graveyard :: Web Audio Editor, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 32
People
(Reporter: jsantell, Assigned: jsantell)
References
Details
Attachments
(1 file, 2 obsolete files)
15.91 KB,
patch
|
jsantell
:
review+
|
Details | Diff | Splinter Review |
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 | ||
Updated•11 years ago
|
Assignee: nobody → jsantell
Assignee | ||
Comment 1•11 years ago
|
||
This is actually a show stopper.
Assignee | ||
Updated•11 years ago
|
Blocks: webaudioeditorv1
Assignee | ||
Comment 2•11 years ago
|
||
Bug 1008497 may solve this issue as we'll have real events for AudioContext creation
Depends on: 1008497
Assignee | ||
Updated•11 years ago
|
Assignee | ||
Comment 3•11 years ago
|
||
Depends on 1013544 due to test changes, and I don't want to deal with merging patch magic right now
Assignee | ||
Comment 4•11 years ago
|
||
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)
Assignee | ||
Comment 5•11 years ago
|
||
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 6•11 years ago
|
||
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+
Assignee | ||
Comment 7•11 years ago
|
||
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+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 8•11 years ago
|
||
Do you have a link to a recent Try run by chance? :)
Keywords: checkin-needed
Assignee | ||
Comment 9•11 years ago
|
||
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
Comment 10•11 years ago
|
||
You know you can just retrigger jobs on the existing push, right? :)
See https://wiki.mozilla.org/Sheriffing/How:To:Recommended_Try_Practices
Comment 11•11 years ago
|
||
Assignee | ||
Comment 12•11 years ago
|
||
Ah, that would've helped too -- thanks!
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 32
Updated•7 years ago
|
Product: Firefox → DevTools
Updated•6 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•