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)

defect

Tracking

(firefox52 fixed)

RESOLVED FIXED
Firefox 52
Iteration:
52.1 - Oct 3
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
Whiteboard: [devtools-html] [triage]
I looked at this during track 3 and thought that shared/layout/utils wasn't needed; but maybe that was in error?
(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
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.
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Iteration: --- → 52.1 - Oct 3
Flags: qe-verify?
Priority: -- → P1
Whiteboard: [devtools-html] [triage] → [devtools-html]
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
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 52
Flags: qe-verify? → qe-verify-
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: