Brion VIBBER has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/208492

Change subject: Use SVG for hovercard images in Windows 10's new Edge/Spartan 
browser
......................................................................

Use SVG for hovercard images in Windows 10's new Edge/Spartan browser

It actually works... don't forget to use maximum version numbers in
user-agent hack checks!

Note that MediaWiki core's browser detection currently treats Edge
as MSIE 12, but it should really be treated separately due to the
huge improvements in standards compatibility in the new HTML engine.

Bug: T97901
Change-Id: Ia50d81ba976bf144f5ff400f775960bff09a3a57
---
M resources/ext.popups.core.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Popups 
refs/changes/92/208492/1

diff --git a/resources/ext.popups.core.js b/resources/ext.popups.core.js
index b9a1281..cbdb741 100644
--- a/resources/ext.popups.core.js
+++ b/resources/ext.popups.core.js
@@ -17,7 +17,7 @@
         *
         * @property {Boolean} supportsSVG
         */
-       mw.popups.supportsSVG = ( $.client.profile().name === 'msie' ) ?
+       mw.popups.supportsSVG = ( $.client.profile().name === 'msie' && 
$.client.profile().version <= 11) ?
                false :
                document.implementation.hasFeature( 
'http://www.w3.org/TR/SVG11/feature#Image', '1.1' );
 

-- 
To view, visit https://gerrit.wikimedia.org/r/208492
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia50d81ba976bf144f5ff400f775960bff09a3a57
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Popups
Gerrit-Branch: master
Gerrit-Owner: Brion VIBBER <br...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to