Tomáš Masník
2014-07-01 06:31:03 UTC
I want to open Blob object from javascript and the only thing I can see is
a blank page.
*Description:*
I want to open Blob object from javascript and the only thing I can see is
a blank page. Code:
var blob = new window.Blob(['Hello, world!'], {type:
'text/plain;charset=utf-8'});
window.URL = window.URL || window.webkitURL;
var url = window.URL.createObjectURL(blob);
window.location.href = url;
This does nothing. If i change it to:
var blob = new window.Blob(['Hello, world!'], {type:
'text/plain;charset=utf-8'});
window.URL = window.URL || window.webkitURL;
var url = window.URL.createObjectURL(blob);
window.open(url);
it opens a new tab with correct URL (blob:http%3A//10.128.52.86
%3A8080/8d84447a-bdf1-4ee4-9b55-72f8159a687c) but with no content.
This features are working on any other platform/browser (except for IE of
course...).
*Expected behavior:*
I would expect the browser to show plaintext file with text "Hello, world!".
*Version: *35.0.1916.41 Chrome on iOS 7.1.1
Is there any known workaround? Thank you
Tomas
a blank page.
*Description:*
I want to open Blob object from javascript and the only thing I can see is
a blank page. Code:
var blob = new window.Blob(['Hello, world!'], {type:
'text/plain;charset=utf-8'});
window.URL = window.URL || window.webkitURL;
var url = window.URL.createObjectURL(blob);
window.location.href = url;
This does nothing. If i change it to:
var blob = new window.Blob(['Hello, world!'], {type:
'text/plain;charset=utf-8'});
window.URL = window.URL || window.webkitURL;
var url = window.URL.createObjectURL(blob);
window.open(url);
it opens a new tab with correct URL (blob:http%3A//10.128.52.86
%3A8080/8d84447a-bdf1-4ee4-9b55-72f8159a687c) but with no content.
This features are working on any other platform/browser (except for IE of
course...).
*Expected behavior:*
I would expect the browser to show plaintext file with text "Hello, world!".
*Version: *35.0.1916.41 Chrome on iOS 7.1.1
Is there any known workaround? Thank you
Tomas
--
You received this message because you are subscribed to the Google Groups "Chromium HTML5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-html5+unsubscribe-F7+***@public.gmane.org
To post to this group, send email to chromium-html5-F7+***@public.gmane.org
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-html5/.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.
You received this message because you are subscribed to the Google Groups "Chromium HTML5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-html5+unsubscribe-F7+***@public.gmane.org
To post to this group, send email to chromium-html5-F7+***@public.gmane.org
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-html5/.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.