-
Notifications
You must be signed in to change notification settings - Fork 879
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
Update NoScript interface #2485
Conversation
05c667f
to
ac441db
Compare
ea92639
to
93bed42
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good based on what I reviewed last time in Cezar's prototype.
93bed42
to
e5e95b5
Compare
- blocking a script now takes effect immeditately. scripts blocked now go to the blocked list only after second interaction address brave/brave-browser#2996
- * scripts now show intermediary state "allowed once" and "blocked once" * lists with zero items are now hidden * add ability to see grouped scripts fix brave/brave-browser#4572 fix brave/brave-browser#4570 fix brave/brave-browser#4567 address brave/brave-browser#2996
- scripts now use the same method for checking scripts blocked fix brave/brave-browser#4228
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebased this and gave it a go! Works great- I confirmed all issues marked as fixed have been fixed (went through steps)
Something I did notice: if you have shields open and use keyboard to navigate... once the tab focus gets to the end, it would close the shields menu (returning focus back to URL bar... then if you press tab again it would start sending tab to the page being viewed). Is this intentional?
Will check out the code changes here too 😄
here we go, found it! brave/brave-browser#199 |
@bsclifton re #2485 (review) this is due to the blur handler I added for updating blocked/allowed lists on close, which is, in fact, a temp fix. other events such as there are other better workarounds such as using the messaging APIs to set up a port between the popup and background page (which can catch popup close), but since I didn't fall into your test case before, this would require another round of changes which will bulk even more this PR. if we all agree this is minor, I can create a tracking issue and work on that in a follow-up. |
SGTM 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
address brave/brave-browser#2996
fix brave/brave-browser#4228
fix brave/brave-browser#4572
fix brave/brave-browser#4570
fix brave/brave-browser#4567
Design overview
Related to brave/brave-browser#2996, the following have been addressed:
The following have not being addressed:
Test Plan:
npm run test-unit
fix
has a manual test plan that should be coveredReviewer Checklist:
After-merge Checklist:
changes has landed on.