Closed
Bug 1471567
Opened 6 years ago
Closed 6 years ago
Standardize Web Audio Panel initialization
Categories
(DevTools Graveyard :: Web Audio Editor, enhancement)
DevTools Graveyard
Web Audio Editor
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: ochameau, Assigned: ochameau)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Per the following RFC:
https://github.com/devtools-html/rfcs/issues/48
And in order to unblock Promise.jsm removal and especially allow landing bug 1388054, we should refactor all document scripts like includes.js, controllers.js, views/*.js to be loaded as a module, via DevTools module loader.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•6 years ago
|
Attachment #8988146 -
Flags: review?(jdescottes)
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → poirot.alex
Assignee | ||
Comment 3•6 years ago
|
||
Waiting for try results before asking for review...
I tried to split this refactoring in multiple patches, but only manage to split out the switch from chrome: to resource: URLs.
The rest had to include:
* switch from script tags to browser loader modules
* Instanciate a browser loader from definitions
* use `exports.foo` everywhere and do the right require() everywhere to import symbols explicitely instead of relying on shared globals of script tags
* merge inludes.js into panel.js, but also moved specifics to other modules, like findWhere into models
* expose all symbols used by tests on panel and refactor tests to fetch them from panel instead of window
If I refactor another panel as complex as web audio, I'll try to better split the changes if possible.
Comment hidden (mozreview-request) |
Assignee | ||
Updated•6 years ago
|
Attachment #8988145 -
Flags: review?(jdescottes)
Attachment #8988146 -
Flags: review?(jdescottes)
Comment 5•6 years ago
|
||
mozreview-review |
Comment on attachment 8988145 [details]
Bug 1471567 - Move JS files from chrome to resource URL.
https://reviewboard.mozilla.org/r/253396/#review260434
Attachment #8988145 -
Flags: review?(jdescottes) → review+
Comment 6•6 years ago
|
||
mozreview-review |
Comment on attachment 8988146 [details]
Bug 1471567 - Standardize Web audio editor panel initialization.
https://reviewboard.mozilla.org/r/253398/#review260438
Looks good, but clearing the r? based on our current discussion on the performance impacts of this kind of refactors.
::: devtools/client/webaudioeditor/panel.js:17
(Diff revision 2)
> +const { gAudioNodes } = require("./nodes");
> +const { $, $$ } = require("./views/utils");
> +const { EVENTS } = require("./events");
> +const { MARKER_STYLING } = require("./views/context");
> +const { AutomationView } = require("./views/automation");
> +const { ContextView } = require("./views/context");
can we group this one with const { MARKER_STYLING } and have a single require?
Attachment #8988146 -
Flags: review?(jdescottes)
Comment 7•6 years ago
|
||
The code behind DevTools:Web Audio Editor has gone away. Closing this bug as INVALID
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
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
•