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

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

Issue 569613003: [New Tab Page] Add aria-hidden to an element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 8dda55c8b100507db2523fc2633aae7750737354..c25fbb1aa3b203dd163082e0f98ed1491c900f62 100644
--- a/chrome/browser/resources/local_ntp/local_ntp.js
+++ b/chrome/browser/resources/local_ntp/local_ntp.js
@@ -725,6 +725,7 @@ function createTile(page, position) {
// The iframe which renders either a thumbnail or domain element.
var thumbnailElem = document.createElement('iframe');
thumbnailElem.tabIndex = '-1';
+ thumbnailElem.setAttribute('aria-hidden', 'true');
// Keep this ID here. See comment above.
thumbnailElem.id = 'thumb-' + rid;
thumbnailElem.className = CLASSES.THUMBNAIL;
@@ -763,7 +764,7 @@ function createTile(page, position) {
* Generates a function to be called when the page with the corresponding RID
* is blacklisted.
* @param {number} rid The RID of the page being blacklisted.
- * @return {function(!Event)} A function which handles the blacklisting of the
+ * @return {function(Event=)} A function which handles the blacklisting of the
* page by updating state variables and notifying Chrome.
*/
function generateBlacklistFunction(rid) {
« 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