-
Notifications
You must be signed in to change notification settings - Fork 327
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
Nightly can not parse match pattern #2480
Comments
Last good: Firefox 54.0a1 (2017-02-09) First bad: Firefox 54.0a1 (2017-02-10) Bug #1337629 is the suspect. Steps to reproduce:
var url = "http://*.twitter.com/*";
var ioService = Components.classes["@mozilla.org/network/io-service;1"]
.getService(Components.interfaces.nsIIOService);
alert(ioService.newURI(url, null, null));
Firefox 54.0a1 (2017-02-09) alert: Firefox 54.0a1 (2017-02-10)
|
Hi, this looks to me like it is abusing URIs. Is there a specific reason why it's creating a URI using that pattern? How is it matching an actual URI vs a pattern URI. |
@valenting it's using the URI to safely extract the various URI parts (scheme, host, path) before applying regular expressions to the individual parts. I assume the idea was to avoid implementing a custom URI parser for match patterns. |
Also note that for me this had the effect of silently removing or failing to load an already installed script. This was fairly surprising and I don't know if it would have been able to recover from that, i.e. if the script wasn't just gone until it is reinstalled. |
The testing branch: I did not make a pull request yet (it's not well tested)... |
I had the same issue last night with Firefox developer. GM removed FBP script due to the two @match lines in his script with parsing errors. I removed the 2 lines and was able to load the script from disk to reinstall it. |
Beta seems to be working fine. |
Beta hasn't been updated yet. It will be soon.
…On 17 February 2017 at 04:24, Dana MW Chester ***@***.***> wrote:
Beta seems to be working fine.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2480 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABYyOVjQCE0xIK_k-M2OecXJ6tXrpr0Vks5rdRL1gaJpZM4L-WHI>
.
|
I think arantius/greasemonkey@9cb9467 fixes this. Confirmation would be nice. |
I rewrote that to arantius/greasemonkey@1531f34 and I'm pushing it out to the beta channel now. |
I cannot confirm on the profile mentioned in #2481 because I had no choice but get it functional and had to scratch it and start over, a complete waste of hours. Not to mention in the process I find, that deleting/removing a script apparently doesn't actually remove/delete it, on the drive in the profile it keeps it all, which makes no sense why it is doing that - since I deleted these scripts for a reason, why are you collecting them? Explains the errors that arise when a new script has the same name as an old one (deleted but not really gone) you didn't remove and causes issues. This should really be looked into, even though not directly related to issue being addressed here. |
the script below fails with the following error:
Error: @match could not parse pattern
It works on FF stable. I suspect that it would break a lot of scripts soon.
The text was updated successfully, but these errors were encountered: