ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: Blob urls for images in 1.0.0-rc5

Open dogutaskiran opened this issue 11 years ago • 1 comments

Type: bug

Platform: all

Just updated to 1.0.0-rc5 and it seems like "blob" urls in images were removed in order to be able to provide add support for Windows Phone due to this blog post

// Fix for URLs in Cordova apps on Windows Phone
// http://blogs.msdn.com/b/msdn_answers/archive/2015/02/10/running-cordova-apps-on-windows-and-windows-phone-8-1-using-ionic-angularjs-and-other-frameworks.aspx
.config(['$compileProvider', function($compileProvider) {
  $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|ghttps?|ms-appx|x-wmapp0):/);
  $compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|ms-appx|x-wmapp0):|data:image\//);
}]);

Current Angular implementation is allowing "blob" urls for images and Ripple is depending on these when using the camera plugin. Is there a particular reason for why "blob" was removed?

dogutaskiran avatar Apr 30 '15 09:04 dogutaskiran

Thanks @hasandogu, great catch

perrygovier avatar May 05 '15 15:05 perrygovier