Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: safari/ext/common.js

Issue 4966645353152512: Handle XMLHttpRequest with bad status in Safari's i18n code (Closed)
Patch Set: Created Jan. 20, 2014, 5:17 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
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: safari/ext/common.js
===================================================================
--- a/safari/ext/common.js
+++ b/safari/ext/common.js
@@ -151,6 +151,9 @@
return null;
}
+ if (xhr.status != 200 && xhr.status != 0)
+ return null;
+
return JSON.parse(xhr.responseText);
},
getMessage: function(msgId, substitutions)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld