LEFT | RIGHT |
1 /* | 1 /* |
2 * This Source Code is subject to the terms of the Mozilla Public License | 2 * This Source Code is subject to the terms of the Mozilla Public License |
3 * version 2.0 (the "License"). You can obtain a copy of the License at | 3 * version 2.0 (the "License"). You can obtain a copy of the License at |
4 * http://mozilla.org/MPL/2.0/. | 4 * http://mozilla.org/MPL/2.0/. |
5 */ | 5 */ |
6 | 6 |
7 // | 7 // |
8 // Module framework stuff | 8 // Module framework stuff |
9 // | 9 // |
10 | 10 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 return new FakeFile(path); | 136 return new FakeFile(path); |
137 }, | 137 }, |
138 | 138 |
139 readFromFile: function(file, decode, listener, callback, timeLineID) | 139 readFromFile: function(file, decode, listener, callback, timeLineID) |
140 { | 140 { |
141 if ("spec" in file && /^defaults\b/.test(file.spec)) | 141 if ("spec" in file && /^defaults\b/.test(file.spec)) |
142 { | 142 { |
143 // Code attempts to read the default patterns.ini, we don't have that. | 143 // Code attempts to read the default patterns.ini, we don't have that. |
144 // Make sure to execute first-run actions instead. | 144 // Make sure to execute first-run actions instead. |
145 callback(null); | 145 callback(null); |
146 executeFirstRunActions(); | 146 addSubscription("0.1"); |
147 return; | 147 return; |
148 } | 148 } |
149 | 149 |
150 this._getFileEntry(file, false, function(fs, fileEntry) | 150 this._getFileEntry(file, false, function(fs, fileEntry) |
151 { | 151 { |
152 fileEntry.file(function(file) | 152 fileEntry.file(function(file) |
153 { | 153 { |
154 var reader = new FileReader(); | 154 var reader = new FileReader(); |
155 reader.onloadend = function() | 155 reader.onloadend = function() |
156 { | 156 { |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 status: -1, | 579 status: -1, |
580 notificationCallbacks: {}, | 580 notificationCallbacks: {}, |
581 loadFlags: 0, | 581 loadFlags: 0, |
582 INHIBIT_CACHING: 0, | 582 INHIBIT_CACHING: 0, |
583 VALIDATE_ALWAYS: 0, | 583 VALIDATE_ALWAYS: 0, |
584 QueryInterface: function() | 584 QueryInterface: function() |
585 { | 585 { |
586 return this; | 586 return this; |
587 } | 587 } |
588 }; | 588 }; |
LEFT | RIGHT |