-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use @ssorallen's blob support test in customizer #12773
Conversation
Why not use jQuery for the check? Something like this will do just fine and is a little bit smaller. Also, why directly link to Chrome? I personally also prefer Chrome but shouldn't we be as unbiased as possible about the browser choice? I'd refer to http://browsehappy.com or http://whatbrowser.org |
I don't get any warning with IE 9 but download fails with it. I can see in the console that Also, in IE 8 mode, So to summarize, it's the same as it was for older IE; no warning is shown. Latest FF is fine ofc. |
Also, irrelevant, but with IE I get |
Okay, revised. If someone could test in IE again, that'd be swell. |
I still don't get any warning in IE 9 mode with IE 10. |
@XhmikosR But no non-CORS JS console error message? |
CORS was unrelated to this patch, I just noticed it because of this patch I was looking at IE's console :P |
The test I wrote checks for native support, but it was not written for the faked Blob prototype that "Blob.js" creates as a polyfill for IE9 and IE10. I will modify the code to check for the polyfill. |
@cvrebert: can you update the PR with the latest change of @ssorallen's check? EDIT: NVM, I thought he had pushed the change already to his repo :) |
My intention with this check was to force FileSaver.js to fallback to The problem is FileSaver.js tests for Blob support by looking for the I'd like to work on the issue in FileSaver.js more to make it fall back properly, which would enable Safari users to download customized Bootstrap files again. |
I updated the feature check to test for polyfilled Blob: https://github.com/ssorallen/blob-feature-check Safari 6, 6.1, and 7 and IE8 and 9 properly fail the test now. This should at least give error messages to the correct browsers now. |
Awesome, thanks a lot @ssorallen. I'll wait for @cvrebert to update the PR and I'll test again. |
lgtm guys when you get this working – good stuff 👍 |
Okay, pushed a new version based on the newer blob-feature-check v1.1.0. |
@cvrebert: I get the warning when I'm in IE9 compatibility mode but not in IE8, or IE7 mode. |
@XhmikosR The compatibility modes are notorious for being not entirely consistent with the actual full versions of those browsers. |
Yeah but IE9 is in compatibility mode too :P |
Going to merge this anyway, since it fixes our handling of Safari and theoretically might fix our handling of older IE, but gonna punt proper verification of older IE handling to another issue. |
Use @ssorallen's blob support test in customizer
Opened #13090 regarding IE <= 9. |
@cvrebert I wonder if the team at http://www.browserstack.com/ would give the core Bootstrap devs free access. I used the free demo to test my blob snippet in IE9. I will try IE7 and IE8 again, but they properly failed when I tried last time. I did not try IE9 in compatibility mode. |
@ssorallen We have a free Sauce Labs account for this sort of thing. What's currently hindering us is needing to host the dev version of the docs somewhere publicly-accessible, but that's on our to-do list. |
@cvrebert Sauce Labs Connect lets you tunnel a connection between your machine and Sauce to allow local testing. That should let you test on all versions of IE without hosting the dev docs somewhere public. |
Fixes #12617.
I've tested in Chrome and Safari v7.0.1.
Need to test older IE, newer IE, Firefox, and Safari v6.1.