Bug 1132518, make document navigation with F6/Shift+F6 work in e10s. This combines the document and tab navigation mechanisms together, r=smaug
This commit is contained in:
@@ -2804,16 +2804,16 @@ nsDocShell::GetBusyFlags(uint32_t* aBusyFlags)
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDocShell::TabToTreeOwner(bool aForward, bool* aTookFocus)
|
||||
nsDocShell::TabToTreeOwner(bool aForward, bool aForDocumentNavigation, bool* aTookFocus)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aTookFocus);
|
||||
|
||||
nsCOMPtr<nsIWebBrowserChromeFocus> chromeFocus = do_GetInterface(mTreeOwner);
|
||||
if (chromeFocus) {
|
||||
if (aForward) {
|
||||
*aTookFocus = NS_SUCCEEDED(chromeFocus->FocusNextElement());
|
||||
*aTookFocus = NS_SUCCEEDED(chromeFocus->FocusNextElement(aForDocumentNavigation));
|
||||
} else {
|
||||
*aTookFocus = NS_SUCCEEDED(chromeFocus->FocusPrevElement());
|
||||
*aTookFocus = NS_SUCCEEDED(chromeFocus->FocusPrevElement(aForDocumentNavigation));
|
||||
}
|
||||
} else {
|
||||
*aTookFocus = false;
|
||||
|
||||
Reference in New Issue
Block a user