Closed
Bug 1344630
Opened 4 years ago
Closed 4 years ago
Display parsed value in the corresponding column instead of showing JSON string
Categories
(Toolkit :: Form Manager, enhancement, P3)
Tracking
()
RESOLVED
FIXED
mozilla55
| Tracking | Status | |
|---|---|---|
| firefox55 | --- | fixed |
People
(Reporter: ralin, Assigned: ralin)
References
Details
(Whiteboard: [form autofill:M1])
Attachments
(1 file)
Right now we display whole JSON string as label & comment, which should be replaced with primary & secondary value in parsed result.
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
Comment 3•4 years ago
|
||
| mozreview-review | ||
Comment on attachment 8843860 [details] Bug 1344630 - Display parsed primary and secondary value in profile item. https://reviewboard.mozilla.org/r/117484/#review119090 getStyleAt provides a type for recognizing which kind of type an item belongs to, and formautofill.xml looks like for "autofill-profile" only. Please add a logic to make sure the item is "autofill-profile" before using formautofill.xml. ::: browser/extensions/formautofill/content/formautofill.xml:68 (Diff revision 1) > <![CDATA[ > let outerBoxRect = this.parentNode.getBoundingClientRect(); > - let value = this.getAttribute("ac-value"); > + let {primary, secondary} = JSON.parse(this.getAttribute("ac-value")); > - let comment = this.getAttribute("ac-comment"); > > - this._comment.textContent = comment; > + this._comment.textContent = primary; The primary label should be assigned to label, the secondary is for comment. ::: browser/extensions/formautofill/content/formautofill.xml:75 (Diff revision 1) > > // Make item fit in popup as XUL box could not constrain > // item's width > this._itemBox.style.width = outerBoxRect.width + "px"; > // Use two-lines layout when width is smaller than 150px > if (outerBoxRect.width <= 150) { Since the fonts of AutoComplete Popup is different with the focused input, we have to file a new bug to refine the condition of two-line case.
Attachment #8843860 -
Flags: review?(selee)
| Assignee | ||
Comment 4•4 years ago
|
||
| mozreview-review-reply | ||
Comment on attachment 8843860 [details] Bug 1344630 - Display parsed primary and secondary value in profile item. https://reviewboard.mozilla.org/r/117484/#review119090 Thanks for reviewing. As this stylesheet is only imported by our extension, so we should be able to ensure "formautofill.xml" is used properly. https://dxr.mozilla.org/mozilla-central/source/browser/extensions/formautofill/content/formautofill.css#5-13 > The primary label should be assigned to label, the secondary is for comment. ah! My fault didn't find this careless mistake... fixed in new revision. > Since the fonts of AutoComplete Popup is different with the focused input, we have to file a new bug to refine the condition of two-line case. yeah, we should start test on different coner cases to find out how to optimize the condition (in a spun off bug).
| Assignee | ||
Comment 5•4 years ago
|
||
Comment on attachment 8843860 [details] Bug 1344630 - Display parsed primary and secondary value in profile item. Sorry to add back review flag in this way, since review(for revision 1) cancel just happened right after I pushed revision 2.
Attachment #8843860 -
Flags: review?(selee)
Comment 6•4 years ago
|
||
| mozreview-review | ||
Comment on attachment 8843860 [details] Bug 1344630 - Display parsed primary and secondary value in profile item. https://reviewboard.mozilla.org/r/117484/#review119130 Looks good to me!
Attachment #8843860 -
Flags: review?(selee) → review+
| Assignee | ||
Updated•4 years ago
|
Keywords: checkin-needed
Comment 7•4 years ago
|
||
seems this still need a final review/ship-it in mozreview before we can use the autoland feature. Can you fix this in mozreview? thanks
Flags: needinfo?(selee)
Keywords: checkin-needed
Comment 8•4 years ago
|
||
| mozreview-review | ||
Comment on attachment 8843860 [details] Bug 1344630 - Display parsed primary and secondary value in profile item. https://reviewboard.mozilla.org/r/117484/#review119438
Comment 9•4 years ago
|
||
Hey Tomcat, I think I already did a final review at https://reviewboard.mozilla.org/r/117484/#review119130 However, I gave it a r+ in mozreview again. https://reviewboard.mozilla.org/r/117484/#review119438 Could you check if I did it correctly?
Flags: needinfo?(selee)
Updated•4 years ago
|
Flags: needinfo?(cbook)
Updated•4 years ago
|
Keywords: checkin-needed
Comment 10•4 years ago
|
||
Do you have Level 3 commit access? Because that's required for Autoland. If you do and it's still not working, you may need to manually associate your LDAP account with MozReview: http://mozilla-version-control-tools.readthedocs.io/en/latest/mozreview/install.html#manually-associating-your-ldap-account-with-mozreview
Flags: needinfo?(cbook)
Keywords: checkin-needed
Comment 11•4 years ago
|
||
Hey Ryan, Thanks. I don't have lv3 yet. Hey MattN, Could you help to land this bug? thanks.
Flags: needinfo?(MattN+bmo)
Updated•4 years ago
|
Attachment #8843860 -
Flags: review?(MattN+bmo)
Comment 12•4 years ago
|
||
| mozreview-review | ||
Comment on attachment 8843860 [details] Bug 1344630 - Display parsed primary and secondary value in profile item. https://reviewboard.mozilla.org/r/117484/#review119904
Attachment #8843860 -
Flags: review?(MattN+bmo) → review+
Comment 13•4 years ago
|
||
Pushed by mozilla@noorenberghe.ca: https://hg.mozilla.org/integration/autoland/rev/1ecb6fcbdb2a Display parsed primary and secondary value in profile item. r=MattN,seanlee
Comment 15•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/1ecb6fcbdb2a
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Comment 16•4 years ago
|
||
As per San-Francisco meeting with :vchen, marking this bug as qe-.
Flags: qe-verify-
You need to log in
before you can comment on or make changes to this bug.
Description
•