Closed
Bug 1209615
Opened 9 years ago
Closed 9 years ago
make RootAccessible::RelationByType() work with e10s
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
mozilla44
People
(Reporter: tbsaunde, Assigned: tbsaunde)
References
Details
Attachments
(5 files)
12.33 KB,
patch
|
Details | Diff | Splinter Review | |
1.11 KB,
patch
|
davidb
:
review+
|
Details | Diff | Splinter Review |
1.89 KB,
patch
|
davidb
:
review+
|
Details | Diff | Splinter Review |
1.11 KB,
patch
|
davidb
:
review+
|
Details | Diff | Splinter Review |
2.87 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
RootAccessible::RelationByType() returns the currently active tab's top level document accessible as the target of the embeds relation. However with e10s that doesn't work because the top level tap document is remote and so there isn't a window / document for it. We need to add a way to get the active TabParent, and then get the top level DocAccessibleParent for that, and return that as the target of the embeds relation.
Updated•9 years ago
|
Blocks: e10sa11y2
tracking-e10s:
--- → +
Assignee | ||
Comment 1•9 years ago
|
||
We're going to need to use this in multiple places so it makes to add a function for it now
Attachment #8670434 -
Flags: review?(bugs)
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8670436 -
Flags: review?(dbolter)
Assignee | ||
Comment 3•9 years ago
|
||
Attachment #8670437 -
Flags: review?(dbolter)
Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8670438 -
Flags: review?(dbolter)
Updated•9 years ago
|
Attachment #8670436 -
Flags: review?(dbolter) → review+
Comment 5•9 years ago
|
||
Comment on attachment 8670434 [details] [diff] [review]
add TabParent::GetTopLevelDocAccessible()
Wrong patch? I was not expecting to see CameraManager.cpp stuff.
Attachment #8670434 -
Flags: review?(bugs)
Comment 6•9 years ago
|
||
Comment on attachment 8670437 [details] [diff] [review]
add RootAccessible::GetPrimaryRemoteTopLevelContentDoc()
Review of attachment 8670437 [details] [diff] [review]:
-----------------------------------------------------------------
::: accessible/generic/RootAccessible.cpp
@@ +724,5 @@
> + mDocumentNode->GetDocShell()->GetTreeOwner(getter_AddRefs(owner));
> + NS_ENSURE_TRUE(owner, nullptr);
> +
> + nsCOMPtr<nsITabParent> tabParent;
> + owner->GetPrimaryTabParent(getter_AddRefs(tabParent));
nit: too much indent.
::: accessible/generic/RootAccessible.h
@@ +44,5 @@
>
> + /**
> + * Return the primary remote top level document if any.
> + */
> + ProxyAccessible* GetPrimaryRemoteTopLevelContentDoc() const;
Maybe this would be better as 'GetPrimaryRemoteTabTopLevelDocAccessible' but I'm not sure.
Attachment #8670437 -
Flags: review?(dbolter) → review+
Assignee | ||
Comment 7•9 years ago
|
||
Attachment #8670471 -
Flags: review?(bugs)
Comment 8•9 years ago
|
||
Comment on attachment 8670438 [details] [diff] [review]
make remote primary docs RELATION_EMBEDS targets for atk
Review of attachment 8670438 [details] [diff] [review]:
-----------------------------------------------------------------
::: accessible/atk/AccessibleWrap.cpp
@@ +988,5 @@
> + aAcc->AsRoot()->GetPrimaryRemoteTopLevelContentDoc()) {
> + targets.AppendElement(GetWrapperFor(proxyDoc));
> + }
> + }
> +
I guess we'll have an extraneous (useless?) relation for this embeds already created in RelationByType?
Attachment #8670438 -
Flags: review?(dbolter) → review+
Comment 9•9 years ago
|
||
Comment on attachment 8670471 [details] [diff] [review]
add TabParent::GetTopLevelDocAccessible()
>+TabParent::GetTopLevelDocAccessible() const
>+{
>+ // XXX Consider managing non top level remote documents with there parent
>+ // document.
I don't understand what the comment is about and s/there/their/ I think.
But perhaps remove the whole comment.
Oh, is "document" in the comment about DocAccessibleParent. I have DOM view of the world, so 'document' means
DOM Document to me ;)
Attachment #8670471 -
Flags: review?(bugs) → review+
Comment 10•9 years ago
|
||
Comment 11•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/30c52fc05c80
https://hg.mozilla.org/mozilla-central/rev/61a73fb35482
https://hg.mozilla.org/mozilla-central/rev/605191307c3a
https://hg.mozilla.org/mozilla-central/rev/81ed1750e33a
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
Updated•9 years ago
|
Assignee: nobody → tbsaunde+mozbugs
You need to log in
before you can comment on or make changes to this bug.
Description
•