Closed
Bug 1321509
Opened 8 years ago
Closed 8 years ago
Land inspector html using webpack / devtools-local-toolbox
Categories
(DevTools :: Inspector, defect, P1)
Tracking
(firefox53 fixed)
Tracking | Status | |
---|---|---|
firefox53 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
Details
(Whiteboard: [devtools-html] )
Attachments
(5 files)
(deleted),
text/x-review-board-request
|
bgrins
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
bgrins
:
review+
tromey
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
tromey
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
zer0
:
review+
|
Details |
(deleted),
text/x-review-board-request
|
pbro
:
review+
|
Details |
Let's continue the review from Bug 1291049, to get a clean mozreview board.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 4•8 years ago
|
||
Comment on attachment 8816074 [details]
Bug 1321509 - move client/package.json to sourceeditor;
Forwarding r+ from bug 1291049
Attachment #8816074 -
Flags: review?(bgrinstead) → review+
Assignee | ||
Comment 5•8 years ago
|
||
Comment on attachment 8816076 [details]
Bug 1321509 - allow non devtools prefs to be loaded in webpack prefs loader;
Forwarding r+ for bug 1291049.
Attachment #8816076 -
Flags: review?(ttromey) → review+
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Updated•8 years ago
|
Comment 13•8 years ago
|
||
mozreview-review |
Comment on attachment 8816076 [details]
Bug 1321509 - allow non devtools prefs to be loaded in webpack prefs loader;
https://reviewboard.mozilla.org/r/96870/#review97172
Thanks. This is still ok :)
Attachment #8816076 -
Flags: review?(ttromey) → review+
Comment 14•8 years ago
|
||
mozreview-review |
Comment on attachment 8816074 [details]
Bug 1321509 - move client/package.json to sourceeditor;
https://reviewboard.mozilla.org/r/96866/#review97176
Attachment #8816074 -
Flags: review+
Assignee | ||
Comment 15•8 years ago
|
||
Talos comparison ongoing: https://treeherder.mozilla.org/perf.html#/compare?originalProject=try&originalRevision=7172f400caf7baa0f5c5e872715c8fbf56c757a6&newProject=try&newRevision=4caeed724dee4ed439ebe038b3e57a8e4e30b9ca&framework=1&filter=damp&showOnlyImportant=0
(looks samey so far, but only a few runs completed)
Try : https://treeherder.mozilla.org/#/jobs?repo=try&revision=0cf8d4f0326d4ca14633ca4786c868c47452a65f
(looks good)
Comment 16•8 years ago
|
||
mozreview-review |
Comment on attachment 8816075 [details]
Bug 1321509 - use devtools-local-toolbox to load the inspector in content;
https://reviewboard.mozilla.org/r/96868/#review97270
Thank you. I think this addressed all my comments from earlier. I found one more little nit, a typo.
::: devtools/client/inspector/webpack/prefs-loader.js:14
(Diff revision 3)
> +const PREF_RX = new RegExp("^ *pref\\(\"devtools");
> +
> +module.exports = function (content) {
> + this.cacheable && this.cacheable();
> +
> + // If we're reading devtools.js we have to do some reprocessing.
Typo, "preprocessing"
Attachment #8816075 -
Flags: review?(ttromey) → review+
Comment 17•8 years ago
|
||
mozreview-review |
Comment on attachment 8816075 [details]
Bug 1321509 - use devtools-local-toolbox to load the inspector in content;
https://reviewboard.mozilla.org/r/96868/#review97276
::: devtools/client/inspector/local-toolbox.js:74
(Diff revision 3)
> +
> +/**
> + * Called each time a childList mutation is received on the main document.
> + * Check the iframes currently loaded in the document and call fixStylesheets if needed.
> + */
> +function fixStylesheetsOnMutation() {
Thanks. This will work for now and hopefully we can get rid of this step by making theme-switching work in content (or somehow changing the way themes are loaded to make it easier).
I was also thinking that we could build a shim for theme-switching that does run in content and then rewrite paths to point to that, but let's not rush into that.
Attachment #8816075 -
Flags: review?(bgrinstead) → review+
Comment 18•8 years ago
|
||
mozreview-review |
Comment on attachment 8816090 [details]
Bug 1321509 - Remove unused parameters from node-highlight event;
https://reviewboard.mozilla.org/r/96890/#review97766
Looks good. I didn't even know we had that extra parameter, and it doesn't seem to be used anyway.
Attachment #8816090 -
Flags: review?(pbrosset) → review+
Comment 19•8 years ago
|
||
mozreview-review |
Comment on attachment 8816089 [details]
Bug 1321509 - remove references to Array.slice in addon-sdk util/object;
https://reviewboard.mozilla.org/r/96888/#review97812
::: addon-sdk/source/lib/sdk/util/object.js:53
(Diff revision 1)
> * properties from all following arguments.
> * `extend(source1, source2, source3)` is equivalent of
> * `merge(Object.create(source1), source2, source3)`.
> */
> function extend(source) {
> let rest = Array.slice(arguments, 1);
You want probably to refactor also this `Array.slice`, I guess.
Comment 20•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8816089 [details]
Bug 1321509 - remove references to Array.slice in addon-sdk util/object;
https://reviewboard.mozilla.org/r/96888/#review97812
r+ with the comment below addressed.
Also, since you're creating a new array instance everytime you call `slice`, in three different function, it could be worthy using this approach instead: https://dxr.mozilla.org/mozilla-central/source/addon-sdk/source/lib/sdk/core/heritage.js#16-22 : you could either add in the same file (`object` module), or just to the `./array` module – since is already `require`d.
Comment 21•8 years ago
|
||
mozreview-review |
Comment on attachment 8816089 [details]
Bug 1321509 - remove references to Array.slice in addon-sdk util/object;
https://reviewboard.mozilla.org/r/96888/#review97820
Attachment #8816089 -
Flags: review?(zer0) → review+
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 27•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8816089 [details]
Bug 1321509 - remove references to Array.slice in addon-sdk util/object;
https://reviewboard.mozilla.org/r/96888/#review97812
Thanks for the review Matteo! Added a similar approach to the one in heritage.js. Try : https://treeherder.mozilla.org/#/jobs?repo=try&revision=d1309f3a296a32a51d89bddd25e5c5f9a7ba2b33
Assignee | ||
Comment 28•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8816075 [details]
Bug 1321509 - use devtools-local-toolbox to load the inspector in content;
https://reviewboard.mozilla.org/r/96868/#review97276
> Thanks. This will work for now and hopefully we can get rid of this step by making theme-switching work in content (or somehow changing the way themes are loaded to make it easier).
>
> I was also thinking that we could build a shim for theme-switching that does run in content and then rewrite paths to point to that, but let's not rush into that.
I guess we should have a follow up to figure out how we handle themes in content. As we are in mc our approach differs a bit from the one used by debugger.html for now.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 32•8 years ago
|
||
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/61d6fe7c6390
move client/package.json to sourceeditor;r=bgrins
https://hg.mozilla.org/integration/autoland/rev/d72c318a4f42
remove references to Array.slice in addon-sdk util/object;r=zer0
https://hg.mozilla.org/integration/autoland/rev/b9b90a3362ea
use devtools-local-toolbox to load the inspector in content;r=bgrins,tromey
https://hg.mozilla.org/integration/autoland/rev/e858457cd353
allow non devtools prefs to be loaded in webpack prefs loader;r=tromey
https://hg.mozilla.org/integration/autoland/rev/91e1d8b0cdeb
Remove unused parameters from node-highlight event;r=pbro
Comment 33•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/61d6fe7c6390
https://hg.mozilla.org/mozilla-central/rev/d72c318a4f42
https://hg.mozilla.org/mozilla-central/rev/b9b90a3362ea
https://hg.mozilla.org/mozilla-central/rev/e858457cd353
https://hg.mozilla.org/mozilla-central/rev/91e1d8b0cdeb
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox53:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 53
Comment 36•8 years ago
|
||
Hi Julien,
This issue is marked with qe-verify? flag. Does it need manual QA? If it does, can you please provide some guidelines? Thank you!
Flags: needinfo?(jdescottes)
Assignee | ||
Comment 37•8 years ago
|
||
No need for QA on this one, thanks!
Flags: qe-verify?
Flags: qe-verify-
Flags: needinfo?(jdescottes)
Updated•7 years ago
|
Attachment #8816075 -
Flags: review?(jlaster)
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•