Go to file
Derk-Jan Hartman 55b465c196 Provide an alt label to the SVG qr code
The raw svg was represented to a11y dom as 256x256 images (due to
the 'use'). Convert the raw SVG to a base64 encoded img data uri and
provide it with an alt attribute describing the function.

While the qr code is duplicate with the 'manual' code below it, it is
not decorative so should not suppress alt. It's a big image and if
you use touch interaction, it would create a big blank spot. It is
useful to know for users that the QR code is there.

The img wrapping should also make the SVG usage slightly safer. It
avoids any potential remote resource usage from inside the SVG. While
this is not a direct danger right now, compromised php packages can
happen, and this limits the impact in that case.

Bug: T151550
Change-Id: I568927ace95a1fdf9cd7990bc7de8461718aa1c1
2023-12-26 14:46:45 +00:00
.phan Send a notification when 2FA is disabled 2022-02-17 00:14:20 -08:00
i18n Provide an alt label to the SVG qr code 2023-12-26 14:46:45 +00:00
maintenance Drop DB updates from pre MW 1.35 2023-12-22 00:42:50 +00:00
modules/totp Switch from client- to server-side generated QR codes 2023-12-13 13:25:20 +08:00
sql Drop DB updates from pre MW 1.35 2023-12-22 00:42:50 +00:00
src Provide an alt label to the SVG qr code 2023-12-26 14:46:45 +00:00
tests/phpunit Migrate callers of Database::insert() to InsertQueryBuilder 2023-12-06 07:40:53 -08:00
.eslintignore build: Remove duplicate eslintignore info from Gruntfile.js 2019-07-15 22:08:27 -04:00
.eslintrc.json build: Updating eslint-config-wikimedia to 0.19.0 2021-03-14 04:29:18 +00:00
.gitignore build: Upgrade eslint-config-wikimedia 0.12.0, drop grunt-jsonlint 2019-05-07 09:59:52 -07:00
.gitreview Whoops, track not trace 2016-10-24 17:03:06 -07:00
.phpcs.xml Fix remaining PHPCS exclusions 2023-10-10 23:59:00 +00:00
.stylelintrc.json Use json extension for .stylelintrc 2017-08-19 10:12:13 +02:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.3.0 2018-08-19 14:49:59 +00:00
composer.json Switch from client- to server-side generated QR codes 2023-12-13 13:25:20 +08:00
COPYING Add COPYING 2014-01-22 21:34:11 +00:00
extension.json ApiQueryOATH: do not use module to check enablement 2023-12-22 00:55:37 +02:00
Gruntfile.js build: Updating dependencies 2021-01-30 06:33:24 +00:00
OATHAuth.alias.php Add new special page alias for Traditional Chinese (zh-hant) 2023-11-27 17:28:07 +08:00
package-lock.json build: Updating npm dependencies 2023-06-01 22:05:37 +00:00
package.json build: Updating npm dependencies 2023-06-01 22:05:37 +00:00
ServiceWiring.php Convert to a virtual domain 2023-12-06 07:08:10 -08:00