Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 14989011: Fixing overrideMimeType on IE10. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 94ee92e5598f0d56f02cf9cd3499cb18447b091b..0b423020c3d9f642976bfd63ce9711e4a96bc716 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -10922,6 +10922,15 @@ class HttpRequest extends EventTarget native "XMLHttpRequest" {
return JS('bool', '("onloadend" in #)', xhr);
}
+ /**
+ * Checks to see if the overrideMimeType method is supported on the current
+ * platform.
+ */
+ static bool get supportsOverrideMimeType {
+ var xhr = new HttpRequest();
+ return JS('bool', '("overrideMimeType" in #)', xhr);
+ }
+
@DomName('XMLHttpRequest.abortEvent')
@DocsEditable
@@ -11178,6 +11187,9 @@ class HttpRequest extends EventTarget native "XMLHttpRequest" {
*/
@DomName('XMLHttpRequest.overrideMimeType')
@DocsEditable
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @SupportedBrowser(SupportedBrowser.FIREFOX)
+ @SupportedBrowser(SupportedBrowser.SAFARI)
void overrideMimeType(String override) native;
@JSName('removeEventListener')
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698