Closed Bug 1512943 Opened 6 years ago Closed 6 years ago

[de-xbl] convert timepicker-hour to custom element.

Categories

(Calendar :: Lightning Only, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: arshad, Assigned: arshad)

References

Details

Attachments

(1 file, 5 obsolete files)

No description provided.
Assignee: nobody → arshdkhn1
Status: NEW → ASSIGNED
Blocks: 1512941
Attached patch timepicker-hour.patch (obsolete) β€” β€” Splinter Review
Attachment #9030414 - Flags: feedback?(mkmelin+mozilla)
Comment on attachment 9030414 [details] [diff] [review] timepicker-hour.patch Review of attachment 9030414 [details] [diff] [review]: ----------------------------------------------------------------- The patch doesn't include the removal of the binding ::: common/bindings/datetimepicker.js @@ +83,5 @@ > + return; > + } > + > + if (this.hasAttribute("label")) { > + this.label.setAttribute("value", this.getAttribute("label")); you're not handling the removal of label here (same below) ::: mail/base/content/customElements.js @@ +10,5 @@ > "chrome://messenger/content/mailWidgets.js", > "chrome://messenger/content/generalBindings.js", > "chrome://messenger/content/statuspanel.js", > "chrome://messenger/content/foldersummary.js", > + "chrome://messenger/content/datetimepicker.js", belongs in lighthing ::: mail/base/jar.mn @@ +38,5 @@ > * content/messenger/viewSource.xul (../../common/src/viewSource.xul) > * content/messenger/datetimepicker.xml (../../common/bindings/datetimepicker.xml) > content/messenger/generalBindings.xml (../../common/bindings/generalBindings.xml) > content/messenger/generalBindings.js (../../common/bindings/generalBindings.js) > + content/messenger/datetimepicker.js (../../common/bindings/datetimepicker.js) this too, belongs in lightning
Attachment #9030414 - Flags: feedback?(mkmelin+mozilla) → feedback-
Attached patch timepicker-hour.patch (obsolete) β€” β€” Splinter Review
This patch should be applied on top of timepicker-minute patch.
Attachment #9030414 - Attachment is obsolete: true

See Bug 1512941 for the timepicker-hour patch changes.

Attached patch timepicker-hour.patch (obsolete) β€” β€” Splinter Review
Attachment #9030696 - Attachment is obsolete: true
Attachment #9047948 - Flags: review+
Comment on attachment 9047948 [details] [diff] [review] timepicker-hour.patch (this is not reviewed yet)
Attachment #9047948 - Flags: review+ → feedback?(mkmelin+mozilla)

(In reply to Magnus Melin [:mkmelin] from comment #7)

Comment on attachment 9047948 [details] [diff] [review]
timepicker-hour.patch

(this is not reviewed yet)

Fallen reviewed it in https://bugzilla.mozilla.org/show_bug.cgi?id=1512941#c24

Attached patch timepicker-hour.patch (obsolete) β€” β€” Splinter Review

is it ok now?

Attachment #9047948 - Attachment is obsolete: true
Attachment #9047948 - Flags: feedback?(mkmelin+mozilla)
Attachment #9047957 - Flags: review+
Attachment #9047957 - Flags: feedback?(mkmelin+mozilla)
Comment on attachment 9047957 [details] [diff] [review] timepicker-hour.patch Review of attachment 9047957 [details] [diff] [review]: ----------------------------------------------------------------- ::: calendar/resources/content/datetimepickers/datetimepickers.js @@ +185,5 @@ > + > + disconnectedCallback() { > + while (this.hasChildNodes()) { > + this.firstChild.removeChild(); > + } I think it's preferable to instead in connectedCallback() check this.hasChildNodes(), and if there are, don't add again
Attached patch timepicker-hour.patch (obsolete) β€” β€” Splinter Review
Attachment #9047957 - Attachment is obsolete: true
Attachment #9047957 - Flags: feedback?(mkmelin+mozilla)
Attachment #9047988 - Flags: review+
Attachment #9047988 - Flags: feedback?(mkmelin+mozilla)
Attachment #9047988 - Flags: feedback?(mkmelin+mozilla) → feedback+
Attached patch timepicker-hour.patch β€” β€” Splinter Review
Attachment #9047988 - Attachment is obsolete: true
Attachment #9048057 - Flags: review+
Attachment #9048057 - Flags: feedback+
Keywords: checkin-needed

Hmm, did you check your try before requesting checkin?

(In reply to Jorg K (GMT+1) from comment #14)

Hmm, did you check your try before requesting checkin?
https://bugzilla.mozilla.org/show_bug.cgi?id=1512943#c12

Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/c099a18f37b3
Convert timepicker-hour binding to custom element. r=philipp DONTBUILD

Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Keywords: checkin-needed
Resolution: --- → FIXED

A few remarks:
The patch provided here did NOT apply. It had a hunk

-                let makeFormatRegExp = function (string) {
+                let makeFormatRegExp = function(string) {

which seemed to have moved into the patch from bug 1512942.

Also, would you mind including the word "binding" in your commit messages, I add it every time. Have you never noticed?
Lastly, https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/How_to_Submit_a_Patch says that the commit message should look like this:
Bug 123456 - Change this thing to work better by doing something. r=reviewers
so no colon or semicolon.

As for the reviewer. You can used the IRC name, for Philipp that would be "Fallen" (uppercase), but Philipp's colleague MMD consistently uses "philipp". This has been discussed before, and Philipp said that he's OK with both.

Target Milestone: --- → 6.9
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: