We should remove support for browsers not supporting HTML5 File API from UploadWizard. I'm pretty sure we were only needing it for IE8, and MediaWiki dropped JS support for it a while ago. This will probably be easier to do after https://gerrit.wikimedia.org/r/#/c/270295/ (6ac498c915320b4281ce7bcd93807dfa01a57926).
|Open||None||T96906 Refactor UploadWizard to be maintainable|
|Resolved||matmarex||T131248 Remove old code for browsers not supporting HTML5 File API from UploadWizard|
|Resolved||matmarex||T131182 Remove $wgApiFrameOptions = 'SAMEORIGIN' override for UploadWizard wikis|
|Resolved||matmarex||T130563 Investigate 'missingparam' errors on 'file' step|
|Resolved||matmarex||T126763 Remove support for browsers not supporting HTML5 File API from UploadWizard|
|Declined||matmarex||T127371 When UW loads, log whether `mw.fileApi.isAvailable()` is true or false via EventLogging|
|Resolved||matmarex||T130167 Special:UploadWizard spins forever on Grade C browsers|
- Mentioned In
- T131248: Remove old code for browsers not supporting HTML5 File API from UploadWizard
T131182: Remove $wgApiFrameOptions = 'SAMEORIGIN' override for UploadWizard wikis
T130563: Investigate 'missingparam' errors on 'file' step
T123220: Remove IE8 workarounds from UploadWizard
- Mentioned Here
- T130563: Investigate 'missingparam' errors on 'file' step
T49277: Debug-mode CSS loading can fail because of the IE stylesheet limit
Looking at https://developer.mozilla.org/en/docs/Web/API/File https://developer.mozilla.org/en/docs/Web/API/FileReader https://developer.mozilla.org/en/docs/Web/API/FormData – we'd be dropping IE 9 and maybe some mobile browsers.
(UploadWizard already doesn't work on IE 9, I just tested. You can't even choose a file (clicking the button does nothing) and when I fixed that, I got exceptions from somewhere deep inside. I didn't try debugging further than that because due to T49277, debug mode is broken on IE 9, and its debugger doesn't really work with minified scripts.)
OK, starting with the 1.27.0-wmf.20 release of MediaWiki (to be deployed next week according to MediaWiki 1.27 Roadmap), UploadWizard will explicitly drop support for a variety of older browsers, notably Firefox 3.6, Internet Explorer 9 and Android 4 stock browser. The requirements are listed at https://www.mediawiki.org/wiki/UploadWizard#Compatibility. As we're not doing browser sniffing, but using feature detection (except for Firefox < 7.0, which has an insidious bug preventing chunked uploading), any browsers not listed there that support the required APIs will continue working as before.
If your browser can't run UploadWizard, you'll see a plain upload form and a message advising what is going on. Here's a screenshot with Firefox 3.6 (it might look a bit different on Commons):
I don't expect this to affect many users. Judging by T130563, this affects no more than ~100 upload attempts per day, compared to ~5000-7000 uploads that are completed with UploadWizard daily. Judging by T130563 also, affected systems are mostly mobile devices with limited capabilities and extremely old desktop/laptop setups, both of which are probably better off with the simple form.
(I'm posting a notification at https://commons.wikimedia.org/wiki/Commons:Village_pump too.)