Bug 1806167 - Always append the access key in uppercase. r=jfkthame,layout-reviewers
Make accesskey reftest use modern box layout to test this code path. Differential Revision: https://phabricator.services.mozilla.com/D164942
This commit is contained in:
@@ -1623,6 +1623,8 @@ void nsCSSFrameConstructor::CreateGeneratedContent(
|
||||
aOriginatingElement.GetAttr(nsGkAtoms::value, value);
|
||||
|
||||
auto AppendAccessKeyLabel = [&] {
|
||||
// Always append accesskey text in uppercase, see bug 1806167.
|
||||
ToUpperCase(accesskey);
|
||||
nsAutoString accessKeyLabel = u"("_ns + accesskey + u")"_ns;
|
||||
if (!StringEndsWith(value, accessKeyLabel)) {
|
||||
if (nsTextBoxFrame::InsertSeparatorBeforeAccessKey() &&
|
||||
|
||||
Reference in New Issue
Block a user