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)
Core
Layout: Form Controls
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
blocking2.0 | --- | final+ |
People
(Reporter: roc, Assigned: davidb)
References
Details
(Whiteboard: [sg:critical][critsmash:investigating])
Attachments
(1 file)
(deleted),
patch
|
Details | Diff | Splinter Review |
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
Comment 1•15 years ago
|
||
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.... :(
Comment 2•15 years ago
|
||
Though I guess for the combobox case the returned frame doesn't have the given content as its content... so nevermind. :(
Reporter | ||
Comment 3•15 years ago
|
||
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.
Reporter | ||
Comment 4•15 years ago
|
||
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
Assignee | ||
Comment 6•15 years ago
|
||
I want to understand this change better, can I have access to bug 538062?
Comment 7•15 years ago
|
||
Done.
Comment 8•15 years ago
|
||
Blocking 1.9.3 final+.
blocking2.0: --- → final+
Whiteboard: [sg:critical] → [sg:critical][critsmash:investigating]
Assignee | ||
Comment 9•15 years ago
|
||
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.
Reporter | ||
Comment 10•15 years ago
|
||
Thanks!
Whiteboard: [sg:critical][critsmash:investigating] → [sg:critical][critsmash:investigating][needs landing]
Reporter | ||
Comment 11•15 years ago
|
||
Checked in:
http://hg.mozilla.org/mozilla-central/rev/c6816e9bb38f
http://hg.mozilla.org/mozilla-central/rev/d40ae9315e5d
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Whiteboard: [sg:critical][critsmash:investigating][needs landing] → [sg:critical][critsmash:investigating]
Updated•9 years ago
|
Group: core-security → core-security-release
Updated•9 years ago
|
Group: core-security-release
You need to log in
before you can comment on or make changes to this bug.
Description
•