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

Unified Diff: lib/io.js

Issue 8934018: Fixed: Filter loading broken in Firefox 10 (Closed)
Patch Set: Created Nov. 22, 2012, 2:52 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: lib/io.js
===================================================================
--- a/lib/io.js
+++ b/lib/io.js
@@ -68,18 +68,18 @@ let IO = exports.IO =
*/
readFromFile: function(/**nsIFile|nsIURI*/ file, /**Boolean*/ decode, /**Object*/ listener, /**Function*/ callback, /**String*/ timeLineID)
{
try
{
let buffer = "";
let uri = file instanceof Ci.nsIFile ? Services.io.newFileURI(file) : file;
let request = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"].createInstance(Ci.nsIXMLHttpRequest);
+ request.mozBackgroundRequest = true;
request.open("GET", uri.spec);
- request.mozBackgroundRequest = true;
request.responseType = "moz-chunked-text";
request.overrideMimeType("text/plain" + (decode ? "? charset=utf-8" : ""));
request.addEventListener("progress", function(event)
{
if (timeLineID)
{
TimeLine.asyncStart(timeLineID);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld