Closed Bug 242790 Opened 21 years ago Closed 21 years ago

[REGRESSION] Tabbing skips sub documents, GetSubDocumentFor() broken

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
All
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: aaronlev, Assigned: bryner)

References

Details

(Keywords: access)

Attachments

(2 files)

Tabbing can no longer walk into sub documents. This means you can tab into iframes, and you can't tab out of the address bar into a document. I'm not sure when this broke, but I believe it could relate to nsDocument::GetSubDocumentFor() being broken.
Test case file isn't necessary to see that tabbing from address bar leads nowhere.
This is breaking anything that uses GetSubDocumentFor(), including the accessibility module and DOM inspector. 1.370 <bryner@brianryner.com> 2004-05-03 14:48 deCOMtaminate nsPIDOMWindow (bug 242111). r+sr=jst In nsDocumentViewer::SyncParentSubDocMap() 569 nsCOMPtr<nsIDocShellTreeItem> item(do_QueryInterface(mContainer)); 570 bryner 1.370 nsCOMPtr<nsPIDOMWindow> pwin(do_QueryInterface(item)); This always makes pwin == nsnull because a docshell doesn't support the nsPIDOMWindow interface. The problem goes away if I change do_QueryInterface() back to do_GetInterface()
Summary: [REGRESSION] Tabbing skips sub documents → [REGRESSION] Tabbing skips sub documents, GetSubDocumentFor() broken
Component: Keyboard: Find as you Type → Keyboard: Navigation
I looked for other similar issues in the deCOMtamination patch for nsPIDOMWindow, but could not find any.
Attachment #147808 - Flags: superreview?(jst)
Attachment #147808 - Flags: review?(bryner)
Blocks: 242560
Attachment #147808 - Flags: review?(bryner) → review+
Attachment #147808 - Flags: superreview?(jst) → superreview?(darin)
Comment on attachment 147808 [details] [diff] [review] QueryInterface -> GetInterface sr=jst
Attachment #147808 - Flags: superreview?(darin) → superreview+
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Component: Keyboard: Navigation → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: