Closed
Bug 1502947
Opened 6 years ago
Closed 6 years ago
Add helper function to MozXULElement for inheriting attributes
Categories
(Toolkit :: UI Widgets, task, P3)
Toolkit
UI Widgets
Tracking
()
RESOLVED
FIXED
mozilla65
Tracking | Status | |
---|---|---|
firefox65 | --- | fixed |
People
(Reporter: bgrins, Assigned: surkov)
References
Details
Attachments
(1 file, 2 obsolete files)
5.58 KB,
patch
|
bgrins
:
review+
|
Details | Diff | Splinter Review |
We want this for a number of bugs, so I'm going to spin this out of Bug 1455433 and make a separate bug for it.
Reporter | ||
Updated•6 years ago
|
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Updated•6 years ago
|
Priority: -- → P3
Assignee | ||
Comment 1•6 years ago
|
||
Attachment #9020977 -
Flags: review?(paolo.mozmail)
Reporter | ||
Comment 2•6 years ago
|
||
Comment on attachment 9020977 [details] [diff] [review]
patch
Review of attachment 9020977 [details] [diff] [review]:
-----------------------------------------------------------------
Stealing review, looks good. Thanks Alex.
::: toolkit/content/tests/chrome/test_custom_element_base.xul
@@ +93,5 @@
> + let el = document.querySelector("inherited-element");
> + ok(el, "element exists");
> +
> + is(el.label.getAttribute("foo"), "fuagra", "predefined attribute @foo");
> + ok(!el.label.hasAttribute("boo"), "boo", "predefined attribute @boo");
Nit: the second parameter here should be removed (since this is `ok` and not `is`)
Attachment #9020977 -
Flags: review?(paolo.mozmail) → review+
Reporter | ||
Comment 3•6 years ago
|
||
With nit addressed and commit message
Attachment #9020977 -
Attachment is obsolete: true
Attachment #9021247 -
Flags: review+
Reporter | ||
Comment 4•6 years ago
|
||
Updated jsdoc comment to not reference attrs as an array
Attachment #9021247 -
Attachment is obsolete: true
Reporter | ||
Updated•6 years ago
|
Attachment #9021248 -
Flags: review+
Reporter | ||
Updated•6 years ago
|
Keywords: checkin-needed
Pushed by bgrinstead@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/2596473d8286
Add helper function to MozXULElement for inheriting attributes;r=bgrins
Keywords: checkin-needed
Assignee | ||
Comment 6•6 years ago
|
||
(In reply to Brian Grinstead [:bgrins] from comment #3)
> Created attachment 9021247 [details] [diff] [review]
> inheritAttribute.patch
>
> With nit addressed and commit message
thank you!
Comment 7•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox65:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Updated•6 years ago
|
Type: enhancement → task
You need to log in
before you can comment on or make changes to this bug.
Description
•