Closed Bug 565569 Opened 15 years ago Closed 15 years ago

nsGfxButtonControlFrame::CreateFrameFor should set primary frame for text content

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- final+

People

(Reporter: roc, Assigned: davidb)

References

Details

(Whiteboard: [sg:critical][critsmash:investigating])

Attachments

(1 file)

Not doing so leaves us vulnerable to bugs like bug 538062. But fixing it breaks accessibility tests. See for example http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1273714154.1273715739.12196.gz whch you get by uncommenting the line here if (textStyleContext) { newFrame = NS_NewTextFrame(presContext->PresShell(), textStyleContext); if (newFrame) { // initialize the text frame newFrame->Init(mTextContent, parentFrame, nsnull); // mTextContent->SetPrimaryFrame(newFrame); } } } in nsGfxButtonControlFrame.cpp
Hmm. The primary frame set should probably be in nsCSSFrameConstructor::CreateAnonymousFrames where we call CreateFrameFor (that would catch the combobox case too, right?). Sorry I missed that codepath.... :(
Though I guess for the combobox case the returned frame doesn't have the given content as its content... so nevermind. :(
Mats caught it. The only problem is that fixing it breaks accessibility tests because the accessibility code doesn't expect to find a text accessible child of buttons.
David Bolter, do you mind working on this? All you need to do is uncomment the line in comment #0 and then fix the accessibility tests.
Assignee: roc → bolterbugz
Yep, I'll take a look real soon.
Status: NEW → ASSIGNED
I want to understand this change better, can I have access to bug 538062?
Done.
Blocking 1.9.3 final+.
blocking2.0: --- → final+
Whiteboard: [sg:critical] → [sg:critical][critsmash:investigating]
Attached patch a11y fixes (deleted) — Splinter Review
OK please go ahead and reverse a908be341373 and take this patch. We uncovered some questions with our accessibility name computation that we'll follow up with in 567203. Thanks for checking in with me.
Thanks!
Whiteboard: [sg:critical][critsmash:investigating] → [sg:critical][critsmash:investigating][needs landing]
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Whiteboard: [sg:critical][critsmash:investigating][needs landing] → [sg:critical][critsmash:investigating]
Group: core-security → core-security-release
Group: core-security-release
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: