Closed
Bug 1241453
Opened 7 years ago
Closed 7 years ago
start exposing proxied accessibles to js
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
mozilla47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: tbsaunde, Assigned: tbsaunde)
References
Details
Attachments
(18 files)
No description provided.
Assignee | ||
Comment 1•7 years ago
|
||
We have several places that store either a ProxyAccessible* or an Accessible* in the same member using a uintptr_t and stealing the lowest bit of the pointer. The goal of the AccessibleOrProxy class is to make this simpler and consolidate the logic involved in doing it.
Attachment #8710364 -
Flags: review?(dbolter)
Assignee | ||
Comment 2•7 years ago
|
||
Attachment #8710365 -
Flags: review?(dbolter)
Assignee | ||
Comment 3•7 years ago
|
||
Attachment #8710366 -
Flags: review?(dbolter)
Assignee | ||
Comment 4•7 years ago
|
||
We can simplify it some to make better use of AccessibleOrProxy.
Attachment #8710367 -
Flags: review?(dbolter)
Assignee | ||
Comment 5•7 years ago
|
||
Attachment #8710368 -
Flags: review?(dbolter)
Assignee | ||
Comment 6•7 years ago
|
||
Attachment #8710369 -
Flags: review?(dbolter)
Assignee | ||
Comment 7•7 years ago
|
||
Attachment #8710370 -
Flags: review?(dbolter)
Assignee | ||
Comment 8•7 years ago
|
||
Attachment #8710371 -
Flags: review?(dbolter)
Assignee | ||
Comment 9•7 years ago
|
||
Attachment #8710374 -
Flags: review?(dbolter)
Assignee | ||
Comment 10•7 years ago
|
||
Attachment #8710375 -
Flags: review?(dbolter)
Assignee | ||
Comment 11•7 years ago
|
||
Attachment #8710377 -
Flags: review?(dbolter)
Assignee | ||
Comment 12•7 years ago
|
||
Attachment #8710378 -
Flags: review?(dbolter)
Assignee | ||
Comment 13•7 years ago
|
||
Attachment #8710379 -
Flags: review?(dbolter)
Assignee | ||
Comment 14•7 years ago
|
||
Attachment #8710380 -
Flags: review?(dbolter)
Assignee | ||
Comment 15•7 years ago
|
||
Attachment #8710381 -
Flags: review?(dbolter)
Assignee | ||
Comment 16•7 years ago
|
||
Attachment #8710382 -
Flags: review?(dbolter)
Assignee | ||
Comment 17•7 years ago
|
||
Attachment #8710383 -
Flags: review?(dbolter)
Updated•7 years ago
|
Assignee: nobody → tbsaunde+mozbugs
Status: NEW → ASSIGNED
Comment 18•7 years ago
|
||
Comment on attachment 8710369 [details] [diff] [review] allow constructing xpcAccessibles with proxies Review of attachment 8710369 [details] [diff] [review]: ----------------------------------------------------------------- why do you need this?
Assignee | ||
Comment 19•7 years ago
|
||
(In reply to alexander :surkov from comment #18) > Comment on attachment 8710369 [details] [diff] [review] > allow constructing xpcAccessibles with proxies > > Review of attachment 8710369 [details] [diff] [review]: > ----------------------------------------------------------------- > > why do you need this? for the later patches in the series?
Comment 20•7 years ago
|
||
(In reply to Trevor Saunders (:tbsaunde) from comment #19) > (In reply to alexander :surkov from comment #18) > > Comment on attachment 8710369 [details] [diff] [review] > > allow constructing xpcAccessibles with proxies > > > > Review of attachment 8710369 [details] [diff] [review]: > > ----------------------------------------------------------------- > > > > why do you need this? > > for the later patches in the series? I was rather asking about the bug in whole. I see you may be using that for e10s layer testing, are there other consumers/reasons?
Assignee | ||
Comment 21•7 years ago
|
||
(In reply to alexander :surkov from comment #20) > (In reply to Trevor Saunders (:tbsaunde) from comment #19) > > (In reply to alexander :surkov from comment #18) > > > Comment on attachment 8710369 [details] [diff] [review] > > > allow constructing xpcAccessibles with proxies > > > > > > Review of attachment 8710369 [details] [diff] [review]: > > > ----------------------------------------------------------------- > > > > > > why do you need this? > > > > for the later patches in the series? > > I was rather asking about the bug in whole. I see you may be using that for > e10s layer testing, are there other consumers/reasons? that wasn't really clear since you commented on a random patch. I think testing is the only thing currently needing this.
Comment 22•7 years ago
|
||
Is it okay if I get to reviews on Monday or do we need this sooner? (I might get to them this afternoon)
Comment 23•7 years ago
|
||
Comment on attachment 8710364 [details] [diff] [review] add an AccessibleOrProxy class Review of attachment 8710364 [details] [diff] [review]: ----------------------------------------------------------------- ::: accessible/base/AccessibleOrProxy.h @@ +18,5 @@ > + /** > + * This class stores an Accessible* or a ProxyAccessible* in a safe manner > + * with size sizeof(void*). > + */ > +class AccessibleOrProxy Should probably remove the comment indent.
Attachment #8710364 -
Flags: review?(dbolter) → review+
Updated•7 years ago
|
Attachment #8710365 -
Flags: review?(dbolter) → review+
Updated•7 years ago
|
Attachment #8710366 -
Flags: review?(dbolter) → review+
Updated•7 years ago
|
Attachment #8710367 -
Flags: review?(dbolter) → review+
Updated•7 years ago
|
Attachment #8710368 -
Flags: review?(dbolter) → review+
Updated•7 years ago
|
Attachment #8710369 -
Flags: review?(dbolter) → review+
Comment 24•7 years ago
|
||
Comment on attachment 8710370 [details] [diff] [review] allow xpcAccessibleDocument::mCache to use proxies as keys Review of attachment 8710370 [details] [diff] [review]: ----------------------------------------------------------------- (Aside: I'm just reviewing for what you've done here, not reviewing for anything you might have missed)
Attachment #8710370 -
Flags: review?(dbolter) → review+
Comment 25•7 years ago
|
||
Comment on attachment 8710371 [details] [diff] [review] fixup xpcAccessible Intl() methods to not assume mIntl is always an Accessible Review of attachment 8710371 [details] [diff] [review]: ----------------------------------------------------------------- ::: accessible/xpcom/xpcAccessibleHyperText.h @@ +45,5 @@ > private: > + HyperTextAccessible* Intl() > + { > + if (Accessible* acc = mIntl.AsAccessible()) { > + return acc->AsHyperText(); nit: need more indent on return.
Attachment #8710371 -
Flags: review?(dbolter) → review+
Updated•7 years ago
|
Attachment #8710374 -
Flags: review?(dbolter) → review+
Comment 26•7 years ago
|
||
Comment on attachment 8710375 [details] [diff] [review] assert accessibles are only added to non remote xpcAccessibleDocuments Review of attachment 8710375 [details] [diff] [review]: ----------------------------------------------------------------- ::: accessible/xpcom/xpcAccessibleDocument.h @@ +29,4 @@ > > xpcAccessibleDocument(ProxyAccessible* aProxy, uint32_t aInterfaces) : > + xpcAccessibleHyperText(aProxy, aInterfaces), mCache(kDefaultCacheLength), > + mRemote(true) {} nit: more (double) indent for mRemote initializer
Attachment #8710375 -
Flags: review?(dbolter) → review+
Updated•7 years ago
|
Attachment #8710377 -
Flags: review?(dbolter) → review+
Comment 27•7 years ago
|
||
Comment on attachment 8710378 [details] [diff] [review] add DocAccessibleParent::GetXPCAccessible() Review of attachment 8710378 [details] [diff] [review]: ----------------------------------------------------------------- ::: accessible/ipc/DocAccessibleParent.cpp @@ +294,5 @@ > } > > +xpcAccessibleGeneric* > +DocAccessibleParent::GetXPCAccessible(ProxyAccessible* aProxy) > +{ Should we assert mRemote here?
Updated•7 years ago
|
Attachment #8710379 -
Flags: review?(dbolter) → review+
Updated•7 years ago
|
Attachment #8710380 -
Flags: review?(dbolter) → review+
Updated•7 years ago
|
Attachment #8710378 -
Flags: review?(dbolter) → review+
Updated•7 years ago
|
Attachment #8710381 -
Flags: review?(dbolter) → review+
Updated•7 years ago
|
Attachment #8710382 -
Flags: review?(dbolter) → review+
Updated•7 years ago
|
Attachment #8710383 -
Flags: review?(dbolter) → review+
Assignee | ||
Comment 28•7 years ago
|
||
We need to handle the case that accessibility is enabled in a child process, but not the parent. The easiest way to do that is to change from using a member to using a static pointer to a hash table.
Attachment #8711636 -
Flags: review?(dbolter)
Updated•7 years ago
|
Attachment #8711636 -
Flags: review?(dbolter) → review+
Comment 29•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/f35ea53092d7 https://hg.mozilla.org/integration/mozilla-inbound/rev/028866ac3b66 https://hg.mozilla.org/integration/mozilla-inbound/rev/8c4c77b8e2e3 https://hg.mozilla.org/integration/mozilla-inbound/rev/8dbc0a23db6b https://hg.mozilla.org/integration/mozilla-inbound/rev/1dc79d4dac30 https://hg.mozilla.org/integration/mozilla-inbound/rev/cb2fb56c44aa https://hg.mozilla.org/integration/mozilla-inbound/rev/f97fa91a4a9e https://hg.mozilla.org/integration/mozilla-inbound/rev/1acf6d48e34c https://hg.mozilla.org/integration/mozilla-inbound/rev/70f830b7665f https://hg.mozilla.org/integration/mozilla-inbound/rev/bd3e8b694f8b https://hg.mozilla.org/integration/mozilla-inbound/rev/4044d673c2b2 https://hg.mozilla.org/integration/mozilla-inbound/rev/909c18f9fd6d https://hg.mozilla.org/integration/mozilla-inbound/rev/6fa48455c395 https://hg.mozilla.org/integration/mozilla-inbound/rev/33fd55182ab7 https://hg.mozilla.org/integration/mozilla-inbound/rev/bb4ffc4e5f67 https://hg.mozilla.org/integration/mozilla-inbound/rev/35675c2952cd https://hg.mozilla.org/integration/mozilla-inbound/rev/100f1565de78
Comment 30•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f35ea53092d7 https://hg.mozilla.org/mozilla-central/rev/028866ac3b66 https://hg.mozilla.org/mozilla-central/rev/8c4c77b8e2e3 https://hg.mozilla.org/mozilla-central/rev/8dbc0a23db6b https://hg.mozilla.org/mozilla-central/rev/1dc79d4dac30 https://hg.mozilla.org/mozilla-central/rev/cb2fb56c44aa https://hg.mozilla.org/mozilla-central/rev/f97fa91a4a9e https://hg.mozilla.org/mozilla-central/rev/1acf6d48e34c https://hg.mozilla.org/mozilla-central/rev/70f830b7665f https://hg.mozilla.org/mozilla-central/rev/bd3e8b694f8b https://hg.mozilla.org/mozilla-central/rev/4044d673c2b2 https://hg.mozilla.org/mozilla-central/rev/909c18f9fd6d https://hg.mozilla.org/mozilla-central/rev/6fa48455c395 https://hg.mozilla.org/mozilla-central/rev/33fd55182ab7 https://hg.mozilla.org/mozilla-central/rev/bb4ffc4e5f67 https://hg.mozilla.org/mozilla-central/rev/35675c2952cd https://hg.mozilla.org/mozilla-central/rev/100f1565de78
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in
before you can comment on or make changes to this bug.
Description
•