Closed
Bug 1304513
Opened 8 years ago
Closed 8 years ago
Get rid of sdk use in devtools/shared/layout/utils.js
Categories
(DevTools :: Framework, defect, P1)
DevTools
Framework
Tracking
(firefox52 fixed)
Tracking | Status | |
---|---|---|
firefox52 | --- | fixed |
People
(Reporter: bgrins, Assigned: bgrins)
References
Details
(Whiteboard: [devtools-html])
Attachments
(1 file)
Breaking this out from Bug 1291049, there's a call to memoize that we probably don't need and removing it will make bundling easier
Updated•8 years ago
|
Whiteboard: [devtools-html] [triage]
Comment 1•8 years ago
|
||
I looked at this during track 3 and thought that shared/layout/utils wasn't needed;
but maybe that was in error?
Assignee | ||
Comment 2•8 years ago
|
||
(In reply to Tom Tromey :tromey from comment #1)
> I looked at this during track 3 and thought that shared/layout/utils wasn't
> needed;
> but maybe that was in error?
Hm maybe this change was an artifact from when we were compiling everything. Will double check
Assignee | ||
Comment 3•8 years ago
|
||
I see a `require` here so it does end up getting compiled: https://dxr.mozilla.org/mozilla-central/source/devtools/client/framework/selection.js#11. Although it doesn't seem to throw an error anymore when running webpack. Not sure if that's because we are somehow ignoring it, but it doesn't look like it.
Regardless, the change here is pretty trivial and it should lower our footprint / bundle size.
Comment hidden (mozreview-request) |
Updated•8 years ago
|
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Iteration: --- → 52.1 - Oct 3
Flags: qe-verify?
Priority: -- → P1
Whiteboard: [devtools-html] [triage] → [devtools-html]
Assignee | ||
Comment 5•8 years ago
|
||
Comment 6•8 years ago
|
||
mozreview-review |
Comment on attachment 8793559 [details]
Bug 1304513 - Get rid of sdk use in devtools/shared/layout/utils.js;
https://reviewboard.mozilla.org/r/80272/#review79064
Thank you.
::: devtools/shared/layout/utils.js:7
(Diff revision 1)
> * License, v. 2.0. If a copy of the MPL was not distributed with this
> * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
>
> "use strict";
>
> const { Ci, Cc } = require("chrome");
This require and the uses of Ci and Cu will have to go away somehow as well...
Attachment #8793559 -
Flags: review?(ttromey) → review+
Pushed by bgrinstead@mozilla.com:
https://hg.mozilla.org/integration/fx-team/rev/9ff18f836877
Get rid of sdk use in devtools/shared/layout/utils.js;r=tromey
Comment 8•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 52
Updated•8 years ago
|
Flags: qe-verify? → qe-verify-
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•