-
Notifications
You must be signed in to change notification settings - Fork 323
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
[WINDOWS ONLY?] Source url is replaced by file:///tmp/* when installing from "Show sript source" #2348
Comments
AFAIK: This is how it works.
namespace = aUri.host
and...
namespace = "" oldScript_namespace != newScript_namespace
oldScript_namespace == newScript_namespace && oldScript_name == newScript_name file://[anything] (copying *.user.js files by using (e.g.) the drag-and-drop method) => "Show script source" and then "Install script". The result will be the same (@updateURL=file:///tmp/gm-temp/script-name). |
Showing the temp file is an intentional security feature: so the site cannot possibly play tricks by serving (e.g.) a different script to the request for the one that can be installed vs. the one that can be viewed. Download first, then display if requested. Looks like the rest is a bug caused by not remembering the original URL. |
This only reproduces with e10s on. |
This should be fixed in 3.7beta2: https://addons.mozilla.org/firefox/downloads/file/388504/greasemonkey-3.7beta2-fx.xpi?src=devhub I'd appreciate confirmation either way. |
Also on e10s off. IMHO: Now it works strange...
e10s on: e10s off: See also https://github.com/janekptacijarabaci/greasemonkey/tree/showSriptSource_notificationBox - after this test patch: e10s on: e10s off: Edit: I've simplified it a bit... |
On Greasyfork, middle clicking 'Install this script' button, opens two 'Greasemonkey Installation' windows. |
Confirmed with e10s disabled. |
Double install box: confirmed, but only with e10s disabled. @janekptacijarabaci I can't confirm anything you said above, except the separate issue #2280. |
Not confirmed on: Confirmed on: :-) ... :-/ Edit Last good: Firefox 29.0 Beta 1 First bad: Firefox 29.0 Beta 2 Bug 982993 is the suspect (maybe). |
Yes, this was on Fx 45 64b on Mint with e10s disabled (don't know why/when I disable it). |
Back to the original issue (install URL when clicking show source). With And ugh, I meant to set up remote access to a Windows box today to be able to investigate that, but whoops, not accessible somehow. |
I've merged the semi-related notification bar fix above, and can no longer reproduce this. Closing for now, please reopen if you can still see this issue. |
No sorry, have not merged, but still don't see this error. |
The bug is always the same. I thought I wrote everything above already (only on Windows, the discussion on bugzilla - e.g. STR, screenshot with proof of bug). Now I don't know what is left to do... |
I can not do it. |
Thanks for merged it. |
I keep missing the maybe windows only part. |
I personally don't know why it was reopened - it fixed the problem for me (8e19516). I'm sorry, but I think it's a misunderstanding... |
Because I wanted to confirm on windows, and now I have, and I agree. |
User scripts may be installed by clicking on "install" button in "Greasemonkey installation" window or by clicking "Show script source" and then "Install script".
When using first way all is ok.
When using second way, script url is changed to
file:///tmp/gm-temp/script-name
and:@namespace
is missing, script will be installed second time. example@namespace
is present, but@updateURL
is missing, previously installed script may be overwritten with wrong metadata - wrong update URL pointing tofile:///tmp/gm-temp/script-name
exampleLinux Mint 17.2, Firefox 45a2, Greasemonkey 3.6.
The text was updated successfully, but these errors were encountered: