New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Show Script Source" button doesn't work for first time #1609
Comments
This sounds like the intentional effects of #1586 ? It just happens to download faster the second time when it's already in the cache. |
Yes, looks very similar. |
I'm see issue with Greasemonkey 1.0 + latest Nightly and Firefox 14.0.1. |
I think, something wrong with this._progress[0] from if (this._progress[0] < 1) {
throw new Error('Script is not loaded!');
} If I leave dialog opened (so script should become loaded), this._progress[0] are always 0. |
Very strange. DownloadListener.prototype = {
// ...
// nsIProgressEventSink
onProgress: function(aRequest, aContext, aProgress, aProgressMax) {
var progress;
Components.classes["@mozilla.org/consoleservice;1"]
.getService(Components.interfaces.nsIConsoleService)
.logStringMessage(aProgressMax);
if (-1 == aProgressMax || 0 == aProgressMax
|| 0xFFFFFFFFFFFFFFFF == aProgressMax) {
progress = 0
Components.classes["@mozilla.org/consoleservice;1"]
.getService(Components.interfaces.nsIConsoleService)
.logStringMessage("-> 0");
} else {
progress = aProgress / aProgressMax;
}
this._progressCallback(aRequest, progress); Console output: => RemoteScript.prototype._downloadFileProgress = function(
aChannel, aFileProgress) {
this._progress[this._progressIndex] = aFileProgress; // => 0 May be just temporarily disable *.user.js interaction and open original link? |
I'm having a very difficult time following what you're saying. This happens to you for every script, or just some? Can you give me a link to at least one script where you observe this behavior? |
And I can't reproduce bug with small file. Small script, works: dirty.ru_title.user.js |
Not sure why yet, but I agree that the show script source button doesn't work as intended at that second URL you gave. |
Then click on "Cancel", click on user.js link second time, click on "Show Script Source" – works fine.
And no related errors or warnings in error console.
The text was updated successfully, but these errors were encountered: