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

Unified Diff: chrome/test/data/extensions/subscribe_page_action/subscribe.js

Issue 471363003: overrideMimeType should be called after open to be spec compliant (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/subscribe_page_action/subscribe.js
diff --git a/chrome/test/data/extensions/subscribe_page_action/subscribe.js b/chrome/test/data/extensions/subscribe_page_action/subscribe.js
index 65593c6fb8960c29989b0bd7f5abdda92f8c3b31..acf9d0edf2077135fd90d881cdb1fe325a78580c 100644
--- a/chrome/test/data/extensions/subscribe_page_action/subscribe.js
+++ b/chrome/test/data/extensions/subscribe_page_action/subscribe.js
@@ -127,11 +127,11 @@ function main() {
req.onload = handleResponse;
req.onerror = handleError;
+ req.open("GET", feedUrl, !synchronousRequest);
// Not everyone sets the mime type correctly, which causes handleResponse
// to fail to XML parse the response text from the server. By forcing
// it to text/xml we avoid this.
req.overrideMimeType('text/xml');
- req.open("GET", feedUrl, !synchronousRequest);
req.send(null);
document.getElementById('feedUrl').href = 'view-source:' + feedUrl;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698