Closed Bug 1292242 Opened 3 years ago Closed 3 years ago

deal with devtools/shared/layout/utils.js

Categories

(DevTools :: Framework, enhancement, P1)

enhancement

Tracking

(firefox51 fixed)

RESOLVED FIXED
Firefox 51
Iteration:
51.2 - Aug 29
Tracking Status
firefox51 --- fixed

People

(Reporter: tromey, Assigned: tromey)

References

Details

(Whiteboard: [reserve-html])

Attachments

(1 file)

Inspector startup require devtools/shared/layout/utils.js.
It's used directly by the inspector for scrollIntoViewIfNeeded,
but perhaps also indirectly as well.
This file requires "chrome", so it needs some cleanup for
de-chrome-ficiation.
It also indirectly require chrome for "memoize", so this dependency
probably needs to be broken.
And, it uses a questionable lazy require of something from server -- but
just to re-export a function, so perhaps this bit can be removed entirely.
Flags: qe-verify-
Priority: -- → P2
Whiteboard: [devtools-html] → [reserve-html]
This is only used for a single function, which I think we can get another way.
Assignee: nobody → ttromey
Status: NEW → ASSIGNED
Iteration: --- → 51.2 - Aug 29
Priority: P2 → P1
Actuall afaict that function is already content-safe, so just moving it to its own module
should suffice.
Comment on attachment 8782069 [details]
Bug 1292242 - move scrollIntoViewIfNeeded to its own module;

https://reviewboard.mozilla.org/r/72330/#review69938

::: devtools/shared/layout/scroll.js:1
(Diff revision 1)
> +/* This Source Code Form is subject to the terms of the Mozilla Public

This file could be somewhere in client/ which would also remove another shared/ dependency.  I don't see a benefit to keeping it in the shared/layout/ folder.  Maybe client/shared?
Attachment #8782069 - Flags: review?(bgrinstead)
Comment on attachment 8782069 [details]
Bug 1292242 - move scrollIntoViewIfNeeded to its own module;

https://reviewboard.mozilla.org/r/72330/#review69976
Attachment #8782069 - Flags: review?(bgrinstead) → review+
Pushed by ttromey@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5ad72122cba9
move scrollIntoViewIfNeeded to its own module; r=bgrins
https://hg.mozilla.org/mozilla-central/rev/5ad72122cba9
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 51
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.