Slim accessibility attributes
Categories
(Core :: Disability Access APIs, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox91 | --- | fixed |
People
(Reporter: eeejay, Assigned: eeejay)
References
Details
Attachments
(7 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Our current Attributes
implementation is very string heavy even though most of the keys are known and most of the values are non-strings like integers and booleans. This causes a lot of malloc/free churn when sending attributes over IPC, and is very inefficient for storage.
In addition platforms like Mac and Android parse attributes in order to translate them to OS APIs. The parsing of strings is expensive and error prone.
We should transition away from a string value/key container to an atom key container with variant values that minimize the usage of strings whenever possible.
Assignee | ||
Comment 1•3 years ago
|
||
Assignee | ||
Comment 2•3 years ago
|
||
Depends on D116782
Assignee | ||
Comment 3•3 years ago
|
||
Depends on D116783
Assignee | ||
Comment 4•3 years ago
|
||
Depends on D116784
Assignee | ||
Comment 5•3 years ago
|
||
ATK, Windows and XPCOM expect aria attribute keys to be stripped of
their aria- prefix. We should still store the item using the aria_ atom
and then strip the prefix when converting the key to a string.
Depends on D116785
Assignee | ||
Comment 6•3 years ago
|
||
Keys should be static atoms whenever possible.
Depends on D116786
Assignee | ||
Comment 7•3 years ago
|
||
Depends on D116787
Comment 9•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/72a777be6fc9
https://hg.mozilla.org/mozilla-central/rev/feb0084b0516
https://hg.mozilla.org/mozilla-central/rev/6cb25bd53234
https://hg.mozilla.org/mozilla-central/rev/9d3bd0953170
https://hg.mozilla.org/mozilla-central/rev/70b2a36dcba5
https://hg.mozilla.org/mozilla-central/rev/21dbd7977236
https://hg.mozilla.org/mozilla-central/rev/898f0910781b
Description
•