Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5773)

Unified Diff: chrome/browser/resources/local_ntp/local_ntp.js

Issue 869073004: [Local NTP] Add role="presentation" on the New Tab Page iframe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/local_ntp/local_ntp.js
diff --git a/chrome/browser/resources/local_ntp/local_ntp.js b/chrome/browser/resources/local_ntp/local_ntp.js
index da790a12feebf2ca0b58047e2ef1c37c7e654a22..c02a2cf5f99a275e599cfc625f493d8f49dbd00b 100644
--- a/chrome/browser/resources/local_ntp/local_ntp.js
+++ b/chrome/browser/resources/local_ntp/local_ntp.js
@@ -698,6 +698,10 @@ function createTile(page, position) {
// link element (which also has a tabindex).
titleElem.tabIndex = '0';
+ // Make the iframe presentational for accessibility so screen readers perceive
+ // the iframe content as just part of the same page.
+ titleElem.setAttribute('role', 'presentation');
+
// Why iframes have IDs:
//
// On navigating back to the NTP we see several onmostvisitedchange() events
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698