rem: * don't save additional files. Cope when saving html only or * text. 
add: * don't save additional files. Cope when saving html only or * text. 
context:         onStateChange: function(aWebProgress, aRequest, aStateFlags, aStatus)        {            // Use this to access onStateChange flags            var requestSpec;            try             {              var channel = aRequest.QueryInterface(nsIChannel);              requestSpec = channel.URI.spec;            }             catch (ex) { }            // Detect end of file saving of any file:            if (aStateFlags & nsIWebProgressListener.STATE_STOP)            {                if (aStatus == kErrorBindingAborted)                    aStatus = 0;                // We abort saving for all errors except if image src file is                 // not found                var abortSaving = (aStatus != 0 && aStatus != kFileNotFound);                if (abortSaving)                {                    // Cancel saving                    wbp.cancelSave();                    display(getMsg(MSG_SAVE_ERR_FAILED, aMessage), MT_ERROR);                    return;                }                if (aStateFlags & nsIWebProgressListener.STATE_IS_NETWORK                    && wbp.currentState == nsIWBP.PERSIST_STATE_FINISHED)                {                    // Let the user know:                    pm = [e.sourceObject.viewName, e.filename];                    display(getMsg(MSG_SAVE_SUCCESSFUL, pm), MT_INFO);                }                /* Check if we've finished. WebBrowserPersist screws up when we                 * don't save additional files. Cope when saving html only or                  * text.                  */                else if (!requestSpec && saveType > 0)                {                    pm = [e.sourceObject.viewName, e.filename];                    display(getMsg(MSG_SAVE_SUCCESSFUL, pm), MT_INFO);                }            }        },
meta: 1567	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1567/51b31e077c4b212c10e7d7ddb4812208232e16f2/commands.js/buggy/xul/content/commands.js