Closed
Bug 1467586
Opened 7 years ago
Closed 7 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)
|
59 bytes,
text/x-review-board-request
|
mconley
:
review+
|
Details |
|
Bug 1467586 - Convert the DateTimePickerListener object into a class to be instantiated when needed.
59 bytes,
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•7 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•7 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•7 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•7 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•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/5f8e35e87a21
https://hg.mozilla.org/mozilla-central/rev/79476ed91dec
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in
before you can comment on or make changes to this bug.
Description
•