Skip to content
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

Neat URL - Testing for 4.0.0 #94

Closed
Smile4ever opened this issue Dec 1, 2017 · 29 comments
Closed

Neat URL - Testing for 4.0.0 #94

Smile4ever opened this issue Dec 1, 2017 · 29 comments

Comments

@Smile4ever
Copy link
Owner

Smile4ever commented Dec 1, 2017

@crssi

The code is in git, plus there is also a compiled version in ZIP format (but I think it's easier to use about:debugging)

Things you can test:

And any breakages you notice. Please use this issue for any problems you find that are unrelated to existing issues (otherwise, use the relevant issue to comment on).

@crssi
Copy link

crssi commented Dec 1, 2017

Wildcards doesn't work anymore.
Add pf_rd_* to blocked parameters and visit http://www.imdb.com/title/tt1507571/?pf_rd_m=A2FGELUUNOQJNL&pf_rd_p=2413b25e-e3f6-4229-9efd-599bb9ab1f97&pf_rd_r=1WAXMJ8WV3Z3G3V5RN6D&pf_rd_s=right-2&pf_rd_t=15061&pf_rd_i=homepage&ref_=hm_otw_t3

If you add also ref_ after pf_rd_*, the even ref_ will not work anymore.

@crssi
Copy link

crssi commented Dec 1, 2017

https:/somedomain.com/weservice.exe?SID=1255165669+FID=5234+OP=SEARCH+FACTORY=cr+KEEP.where_clause=%28status%20like%20%27RE%25%27%20OR%20status%20like%20%27%25comp%25%27%20OR%20status%20%3D%27Z_CPL%27%29%20AND%20tenant.name%3D%27ServiceDesk%27%20

gets rewritten to:
https://somedomain.com/weservice.exe?SID=1255165669+FID=5234+OP=SEARCH+FACTORY=cr+KEEP.where_clause=(status like 'RE%25' OR status like '%25comp%25' OR status %3D'Z_CPL') AND tenant.name%3D'ServiceDesk'

But it should stayed intact (no changes should be made)

@crssi
Copy link

crssi commented Dec 1, 2017

Re-initialise listener seems to work OK.

@Smile4ever
Copy link
Owner Author

But it should stayed intact (no changes should be made)

Is this a regression since 4.0.0 or is it the case for the current Neat URL version on addons.mozilla.org as well?

@Smile4ever
Copy link
Owner Author

Smile4ever commented Dec 1, 2017

Task list for Smile4ever

  • Fix wildcard support
  • Look at URL encoding again, reset the URL portion of the URL if it's still the same
  • Logging: no record of where change was made

@crssi
Copy link

crssi commented Dec 1, 2017

I can't see changes in the browser console.
Only [Neat URL]: no params for entries are listed there, but no record of where change was made.

@crssi
Copy link

crssi commented Dec 1, 2017

Fix "Show counter" setting (introduced in 3.2.0) doesn't do anything

Looks fixed now.

@crssi
Copy link

crssi commented Dec 1, 2017

Click on Neat URL icon on toolbar does not switch between disabled and enabled.

@crssi
Copy link

crssi commented Dec 1, 2017

Implement hash parameters using #? #83 doesn't seem to be resolved.

@crssi
Copy link

crssi commented Dec 1, 2017

@Smile4ever thank you for your work.
If you need any additional testing, just let me know.

Cheers

@Smile4ever
Copy link
Owner Author

Looks fixed now.

Thanks

Click on Neat URL icon on toolbar does not switch between disabled and enabled.

Sometimes the badge text interferes with the enable/disable functionality, I'm afraid this is a bug in Firefox and not something Neat URL can change.

Implement hash parameters using #? #83 doesn't seem to be resolved.

How did you test this? I used https://vivaldi.com/blog/teamblog/vivaldi-1-13-adds-window-panel/#pk_campaign=newsletter&pk_kwd=community

@Smile4ever
Copy link
Owner Author

@Smile4ever
Copy link
Owner Author

Smile4ever commented Dec 1, 2017

Wildcards doesn't work anymore.

Can you retest using the changes in git? (not the ZIP version, that one wasn't updated yet)

But it should stayed intact (no changes should be made)

Can you retest using the changes in git? (not the ZIP version, that one wasn't updated yet)

@crssi
Copy link

crssi commented Dec 1, 2017

That is strange... I retested all again and still the same.
I have tried with https://github.com/Smile4ever/firefoxaddons/blob/master/Neat URL-webext/web-ext-artifacts/neat_url-4.0.0.zip

and with https://github.com/Smile4ever/firefoxaddons/archive/master.zip

Can you point me to the git directly?... maybe I am taking the wrong source.

Cheers

@Smile4ever
Copy link
Owner Author

Smile4ever commented Dec 1, 2017

In case you don't manage to do the steps above: I also updated the ZIP version which can be found here:
https://github.com/Smile4ever/firefoxaddons/blob/master/Neat%20URL-webext/web-ext-artifacts/neat_url-4.0.0.zip

@crssi
Copy link

crssi commented Dec 1, 2017

OK... I will take the ZIP. It seems easier. :)

@crssi
Copy link

crssi commented Dec 1, 2017

But it should stayed intact (no changes should be made)

Is this a regression since 4.0.0 or is it the case for the current Neat URL version on addons.mozilla.org as well?

Its different output between 3.2.0 and 4.0.0...

Original:
https:/somedomain.com/weservice.exe?SID=1255165669+FID=5234+OP=SEARCH+FACTORY=cr+KEEP.where_clause=%28status%20like%20%27RE%25%27%20OR%20status%20like%20%27%25comp%25%27%20OR%20status%20%3D%27Z_CPL%27%29%20AND%20tenant.name%3D%27ServiceDesk%27%20

3.2.0:
https:/somedomain.com/weservice.exe?SID=1255165669+FID=5234+OP=SEARCH+FACTORY=cr+KEEP.where_clause=%28status+like+%27RE%25%27+OR+status+like+%27%25comp%25%27+OR+status+=%27Z_CPL%27%29+AND+tenant.name=%27ServiceDesk%27+

4.0.0:
https://somedomain.com/weservice.exe?SID=1255165669+FID=5234+OP=SEARCH+FACTORY=cr+KEEP.where_clause=(status like 'RE%25' OR status like '%25comp%25' OR status %3D'Z_CPL') AND tenant.name%3D'ServiceDesk'

@crssi
Copy link

crssi commented Dec 1, 2017

Took the latest ZIP, but still the same, at least the your vivaldi test URL, but wildcards are now OK (the pf_rd_* sample).
I have to quit for today. Will try with a clean profile again tomorrow afternoon.

Cheers

@Smile4ever
Copy link
Owner Author

Thank you. Are you sure you added "#?pk_campaign" (with the question mark) and not "#pk_campaign"?

@crssi
Copy link

crssi commented Dec 1, 2017

^^That was it. "Vivaldi" is OK now.

@crssi
Copy link

crssi commented Dec 1, 2017

Logging also OK.

@crssi
Copy link

crssi commented Dec 1, 2017

Now I have lost myself what I have tried and what not. :)
Will go over all again tomorrow.

Cheers and thank you

@crssi
Copy link

crssi commented Dec 2, 2017

OK... second round, now with more clear brain :):

#73... the URL is still not left intact, but now does not cause breakage

#75... didn't test this one

#93... OK now

#91... OK now and count number is correct

#76... didn't test this one

#83... Works but not with wildcard
Add #?utm_*
Visit http://www.cuisineactuelle.fr/recettes/mini-burgers-au-foie-gras-331523#utm_source=Facebook&utm_medium=social&utm_campaign=PassionApero

and I am puzzled why the question mark is needed

Thank you

@Smile4ever
Copy link
Owner Author

Smile4ever commented Dec 2, 2017

#73: If it does not cause breakage, I'm happy enough.
#75: @gwarser can you test this?
#93: OK
#91: OK
#76: I tested this, OK.
#83: Should work now, please retest. Fixed by 36768ee

and I am puzzled why the question mark is needed

Exact hash parameters need to use #, for example #bio
https://archive.is/http://www.mtv.com/music/artist/franz_ferdinand/artist.jhtml#bio

Garbage like #?utm_source=hi&utm_campaign=github needs to use #?
https://vivaldi.com/blog/teamblog/vivaldi-1-13-adds-window-panel/#pk_campaign=newsletter&pk_kwd=community

This is because those hash parameters behave like search parameters, but from a technical standpoint they are not. I could support #& as well, but I think it's better to only have one variation so users don't get confused more: #?

So to answer your question: when garbage (and most of the time, but optionally &) comes after #, and you want to delete that parameter, use #?

Edit: To be clear: the ZIP file has been updated again so if you want to test #83 again you will be able to in an easy way. Thanks for your help so far!

@gwarser
Copy link
Contributor

gwarser commented Dec 2, 2017

#75 should be fixed after #82

#76 switching from my local tld (.pl) to .com is working, but I cannot switch to other tld - for example .co.uk. I was thinking to rather remove gws_rd from rules lists - not to patch it in code.

@crssi
Copy link

crssi commented Dec 2, 2017

#83 works now also with wildcards. Thank you :)

Just one more thing:
If there is CR (or NL - new line) in between or at the end of the blocked parameters then everything stops working.
Maybe the solution would be to replace every CR and/or NL with "," and then trim all by "," to get rid of possible "," as prefix and suffix would solve the confusion. ;)

Otherwise perfect job. Thank you @Smile4ever. :)

@crssi
Copy link

crssi commented Dec 4, 2017

Do you have any ETA for publishing it to AMO?

@Smile4ever
Copy link
Owner Author

Tomorrow evening probably.

@Smile4ever
Copy link
Owner Author

I found another small bug, I've worked around it.
f78dd77

And as requested, newline removal:
99cf8d7

4.0.0 is now available on addons.mozilla.org.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants