Bug 953184 - Do not show an error if user cancels the file chooser dialog when importing a CSS file in Devtools Style Editor. r=harth

This commit is contained in:
Sami Jaktholm 2014-01-03 09:29:05 -05:00
parent 1d2e0e19b4
commit ae75d6ba92

View File

@ -238,7 +238,7 @@ StyleEditorUI.prototype = {
{ {
let onFileSelected = function(file) { let onFileSelected = function(file) {
if (!file) { if (!file) {
this.emit("error", LOAD_ERROR); // nothing selected
return; return;
} }
NetUtil.asyncFetch(file, (stream, status) => { NetUtil.asyncFetch(file, (stream, status) => {