You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a table of different match patterns, whether the script is active on the page, and whether it is listed under "Tab Scripts & CSS" in the Toolbar Icon Pop-up.
Obviously, whether a script is active and listed in the pop-up menu should always be the same.
I believe that all scripts run on the correct pages, just that the "Tab Scripts & CSS" list is wrong. You might argue that for the case with both a hash in the match and in the url, the script should be active even though it currently isn't, but I'm quite certain that hashes are not a part of the Match Pattern spec, and so match patterns with a hash should never work.
How to reproduce
Add this style to FireMonkey, and then try out the combinations listed in the table above
If the script is active the text on the page should be red.
If the script is listed you should see a [1] over the Toolbar Icon. (or open the pop-up to make sure if you have other active scripts)
Cause and solution
It seems that there is a discrepancy between how scripts/styles are listed under "Tab Scripts & CSS" and how it is actually decided whether a script/style should run on a page.
To decide if a script should run, the hash is ignored, and then compared against the match.
To decide if a script should show under "Tab Scripts & CSS", the hash is NOT ignored, and then compared against the match. This is the problem, and should be made to ignore hashes also.
The text was updated successfully, but these errors were encountered:
Issue
Here's a table of different match patterns, whether the script is active on the page, and whether it is listed under "Tab Scripts & CSS" in the Toolbar Icon Pop-up.
@match http://example.com/
@match http://example.com/#whatever
@match http://example.com/*
Obviously, whether a script is active and listed in the pop-up menu should always be the same.
I believe that all scripts run on the correct pages, just that the "Tab Scripts & CSS" list is wrong. You might argue that for the case with both a hash in the match and in the url, the script should be active even though it currently isn't, but I'm quite certain that hashes are not a part of the Match Pattern spec, and so match patterns with a hash should never work.
How to reproduce
Add this style to FireMonkey, and then try out the combinations listed in the table above
[1]
over the Toolbar Icon. (or open the pop-up to make sure if you have other active scripts)Cause and solution
It seems that there is a discrepancy between how scripts/styles are listed under "Tab Scripts & CSS" and how it is actually decided whether a script/style should run on a page.
The text was updated successfully, but these errors were encountered: