Autofill addresses learn more link is not blue
Categories
(Toolkit :: UI Widgets, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox65 | --- | unaffected |
firefox66 | --- | unaffected |
firefox67 | --- | fixed |
People
(Reporter: asa, Assigned: surkov)
References
(Blocks 1 open bug)
Details
(Keywords: regression)
Attachments
(2 files)
8.58 KB,
image/png
|
Details | |
959 bytes,
patch
|
MattN
:
review+
|
Details | Diff | Splinter Review |
The learn more link for autofill addresses implemented in bug 1386922 isn't blue like other links in the preferences panel.
Comment 1•6 years ago
|
||
I would guess this is a de-XBL regression from bug 1527495. Since this is the second regression from that bug with the same cause, maybe all the changes in that bug should be audited?
https://phabricator.services.mozilla.com/D19595#change-6AYEJQKqnxaM
Assignee | ||
Comment 2•6 years ago
|
||
Formautofill sets className which overrides text-link class we set in constructor (https://searchfox.org/mozilla-central/source/browser/extensions/formautofill/FormAutofillPreferences.jsm#89). If setting it after an element is attached to DOM, then it will solve this kind of problems.
Assignee | ||
Comment 3•6 years ago
|
||
(In reply to Matthew N. [:MattN] (PM me if requests are blocking you) from comment #1)
I would guess this is a de-XBL regression from bug 1527495. Since this is the second regression from that bug with the same cause, maybe all the changes in that bug should be audited?
is it something QA can help with?
Comment 4•6 years ago
|
||
Comment 5•6 years ago
|
||
(In reply to Matthew N. [:MattN] (PM me if requests are blocking you) from comment #4)
Shouldn't we also do
super.connectedCallback()
?
There's not currently a connectedCallback implemented on the base Custom Element class.
Comment 6•6 years ago
|
||
(In reply to Brian Grinstead [:bgrins] from comment #5)
(In reply to Matthew N. [:MattN] (PM me if requests are blocking you) from comment #4)
Shouldn't we also do
super.connectedCallback()
?There's not currently a connectedCallback implemented on the base Custom Element class.
But that could change at any time, right? Why not make the code future-proof now?
Comment 7•6 years ago
|
||
(In reply to Matthew N. [:MattN] (PM me if requests are blocking you) from comment #4)
Shouldn't we also do
super.connectedCallback()
?There's not currently a connectedCallback implemented on the base Custom Element class.
But that could change at any time, right? Why not make the code future-proof now?
Wouldn't it throw if we added it here? super.connectedCallback
would be undefined.
Comment 8•6 years ago
|
||
(In reply to Brian Grinstead [:bgrins] from comment #7)
(In reply to Matthew N. [:MattN] (PM me if requests are blocking you) from comment #4)
Shouldn't we also do
super.connectedCallback()
?There's not currently a connectedCallback implemented on the base Custom Element class.
But that could change at any time, right? Why not make the code future-proof now?
Wouldn't it throw if we added it here?
super.connectedCallback
would be undefined.
Oh yeah, in Web Payments code we would check if it was truthy:
if (super.connectedCallback) {
super.connectedCallback()
}
I wish it was defined on HTMLElement so you wouldn't have to check that.
Comment 9•6 years ago
|
||
If we wanted to enforce calls to super it would probably make sense to implement an empty function in the base class to avoid that check. I'm not sure I see a benefit to doing that eagerly instead of waiting until we need it and then updating consumers at that time (if we want to do this now we'll have to go through that same process anyway).
Relatedly, there's a bit of a complication here around delayConnectedCallback (should the call to super happen before or after that?), which can go away once XBL is removed from the frontend.
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Description
•