-
-
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
Fix #12617: throw Blob() support errors #12666
Conversation
Track this issue with: eligrey/FileSaver.js#12 |
Makes sense until this is fixed upstream somehow. Will test tomorrow with old IE. |
@XhmikosR Thanks. |
This won't change the situation for Safari 6, 6.1, or 7, which all implement |
for HTML5 blobs. Because of this your file will be downloaded with the name <code>"untitled"</code>.\ | ||
However, if you check your downloads folder, just rename this <code>"untitled"</code> file\ | ||
to <code>"bootstrap.zip"</code> and you should be good to go!') | ||
} else if (!window.URL && !window.webkitURL) { | ||
} else if (!window.URL && !window.webkitURL || !new Blob()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe add parens to clarify operator binding?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, they may help with code readability, I'll add them.
Note: they won't change code functionallity. :)
2014-02-13 0:19 GMT+01:00 Chris Rebert [email protected]:
In docs/assets/js/customizer.js:
for HTML5 blobs. Because of this your file will be downloaded with the name <code>"untitled"</code>.\ However, if you check your downloads folder, just rename this <code>"untitled"</code> file\ to <code>"bootstrap.zip"</code> and you should be good to go!')
- } else if (!window.URL && !window.webkitURL) {
- } else if (!window.URL && !window.webkitURL || !new Blob()) {
maybe add parens to clarify operator binding?
—
Reply to this email directly or view it on GitHubhttps://github.com//pull/12666/files#r9690993
.
Zlatan Vasović - ZDroid
@ssorallen Did you find a way to prevent that? I didn't find anything like |
We'll most likely have to use UA sniffing or similar to exclude Safari & older IE. |
Why to exclude customize.min.js? 2014-02-13 8:14 GMT+01:00 Chris Rebert [email protected]:
Zlatan Vasović - ZDroid |
Avoids merge conflicts. |
Yes, makes sense. I already excluded it. WOW: build is failling. |
This might have to wait until v3.2. If we can get all the kinks (for these changes) worked out by 8am Pacific time this morning, we can merge it. Otherwise, punting to the next release. |
It's best to leave this for next release. Do the others agree? 2014-02-13 10:11 GMT+01:00 Mark Otto [email protected]:
Zlatan Vasović - ZDroid |
Totally. But we should have the customizer warning for Safari and IE 8-9 if possible. |
Yes. 2014-02-13 10:28 GMT+01:00 XhmikosR [email protected]:
Zlatan Vasović - ZDroid |
@cvrebert I haven't found a synchronous |
Thanks Ross, it looks good to me. Could we use it to check for Safari bugs? 2014-02-13 19:28 GMT+01:00 Ross Allen [email protected]:
Zlatan Vasović - ZDroid |
@zdroid Definitely, most things I post on GitHub are public domain. It's not as straightforward as a synchronous test, but I imagine most uses of the customize page will include visits long enough for a couple-millisecond check to occur. |
Yes, right. 2014-02-14 6:18 GMT+01:00 Ross Allen [email protected]:
Zlatan Vasović - ZDroid |
I'm thinking that #12773 supersedes this. |
Yes, it looks fine. |
I will try 12773 when I'm back and comment there. |
This should work in all cases per
FileSaver.js
docs.Fix #12617.