Closed
Bug 1467586
Opened 6 years ago
Closed 6 years ago
Only load the <input type="time/date"> picker code when it's used
Categories
(Core :: Layout: Form Controls, enhancement)
Core
Layout: Form Controls
Tracking
()
RESOLVED
FIXED
mozilla62
Tracking | Status | |
---|---|---|
firefox62 | --- | fixed |
People
(Reporter: Felipe, Assigned: Felipe)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxperf:p1])
Attachments
(2 files)
(deleted),
text/x-review-board-request
|
mconley
:
review+
|
Details |
Bug 1467586 - Convert the DateTimePickerListener object into a class to be instantiated when needed.
(deleted),
text/x-review-board-request
|
mconley
:
review+
|
Details |
This code is loaded unconditionally in browser-content.js, but it could be instantiated only when used. Not only that, this feature is actually disabled by default, so we should skip loading it unless it's toggled on.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•6 years ago
|
Summary: Only load the time picker code when it's used → Only load the <input type="time"> picker code when it's used
Comment 3•6 years ago
|
||
mozreview-review |
Comment on attachment 8984288 [details]
Bug 1467586 - Part 0. hg cp the DateTimePickerListener object to a new file, and rename the DateTimePickerHelper.
https://reviewboard.mozilla.org/r/250096/#review256776
Thanks!
Attachment #8984288 -
Flags: review?(mconley) → review+
Comment 4•6 years ago
|
||
mozreview-review |
Comment on attachment 8984289 [details]
Bug 1467586 - Convert the DateTimePickerListener object into a class to be instantiated when needed.
https://reviewboard.mozilla.org/r/250098/#review256778
This is great! Assuming this passes the datetime picker mochitests, this looks good to go from me. Good work!
Attachment #8984289 -
Flags: review?(mconley) → review+
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 7•6 years ago
|
||
I made a small change because I misunderstood the meaning of the pref. The pref only blocks the code for input type="time", but this code is also used for input type="date". So I moved the pref check back to its original location, and then just declared the object as a lazy proxy.
Summary: Only load the <input type="time"> picker code when it's used → Only load the <input type="time/date"> picker code when it's used
Pushed by felipc@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/5f8e35e87a21
Part 0. hg cp the DateTimePickerListener object to a new file, and rename the DateTimePickerHelper. r=mconley
https://hg.mozilla.org/integration/autoland/rev/79476ed91dec
Convert the DateTimePickerListener object into a class to be instantiated when needed. r=mconley
Comment 9•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/5f8e35e87a21
https://hg.mozilla.org/mozilla-central/rev/79476ed91dec
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in
before you can comment on or make changes to this bug.
Description
•