Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / api_test / streams_private / handle_mime_type / background.js
index 0d791d4..347a150 100644 (file)
@@ -12,7 +12,8 @@ chrome.streamsPrivate.onExecuteMimeTypeHandler.addListener(
   // the MIME type 'application/msword' means the test has succeeded.
   if (params.mimeType == 'application/msword') {
     var headers = params.responseHeaders;
-    if (headers['Content-Type'] != 'application/msword') {
+    if (params.originalUrl.substring(0, 5) != 'file:' &&
+        headers['Content-Type'] != 'application/msword') {
       chrome.test.notifyFail(
           'HTTP request header did not contain expected attributes.');
       hasFailed = true;