From 36364d9d882a4dfd138fdf424d8b99c9bb5a21f5 Mon Sep 17 00:00:00 2001 From: Drew Willcoxon Date: Wed, 9 Sep 2015 14:52:38 -0700 Subject: [PATCH] Bug 1198687 - Fix the accessibility of the urlbar's search suggestions opt-in notification. r=mak --- browser/base/content/urlbarBindings.xml | 51 ++++++++++++------- .../locales/en-US/chrome/browser/browser.dtd | 3 ++ ...rlbarSearchSuggestionsNotification.inc.css | 1 - 3 files changed, 36 insertions(+), 19 deletions(-) diff --git a/browser/base/content/urlbarBindings.xml b/browser/base/content/urlbarBindings.xml index ecb7ba23095..dc7fd29e8dd 100644 --- a/browser/base/content/urlbarBindings.xml +++ b/browser/base/content/urlbarBindings.xml @@ -1107,18 +1107,32 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. - + &urlbar.searchSuggestionsNotification.question; - + + role="link" + value="&urlbar.searchSuggestionsNotification.learnMore;" + accesskey="&urlbar.searchSuggestionsNotification.learnMore.accesskey;" + onclick="document.getBindingParent(this).openSearchSuggestionsNotificationLearnMoreURL();" + control="search-suggestions-notification-learn-more"/> - - document.getAnonymousElementByAttribute( - this, "anonid", "search-suggestions-notification-learn-more" - ); - - document.getAnonymousElementByAttribute(this, "anonid", "footer"); + + + + diff --git a/browser/locales/en-US/chrome/browser/browser.dtd b/browser/locales/en-US/chrome/browser/browser.dtd index f6bec68c2f6..1a6dcab5f4a 100644 --- a/browser/locales/en-US/chrome/browser/browser.dtd +++ b/browser/locales/en-US/chrome/browser/browser.dtd @@ -410,8 +410,11 @@ These should match what Safari and other Apple applications use on OS X Lion. -- + + +