-
Notifications
You must be signed in to change notification settings - Fork 975
add noScriptInfo checkboxes to allow scripts by origin #7272
Conversation
docs/appActions.md
Outdated
@@ -660,6 +660,18 @@ Dispatches a message when a tab is being cloned | |||
|
|||
|
|||
|
|||
### setNoScriptExceptions(hostPattern, origins) |
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.
we're trying to avoid set* names for actions, and name them after an event instead. Could you rename this to noScriptExceptionAdded
or something similar?
js/actions/appActions.js
Outdated
*/ | ||
setNoScriptExceptions: function (hostPattern, origins) { | ||
AppDispatcher.dispatch({ | ||
actionType: appConstants.APP_SET_NOSCRIPT_EXCEPTIONS, |
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.
ditto this constant
|
||
.truncate { | ||
margin-bottom: 5px; | ||
} | ||
.noScriptCheckbox { |
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.
We're using aphrodite for new UI but since this isn't new UI and just an extension of an existing one this is cool. Feel free to update at the same time to aphrodite if you want to.
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.
sgtm!
ack sorry I had review comments pending and didn't notice. |
71869c8
to
1268f00
Compare
@bbondy addressed review comments |
++ |
Why is there no option to permanently whitelist domains for script execution? It's not a great user experience to have to re-enable scripts for my internet banking every time I restart my browser. |
test plan:
fix #6431. adjusts the noScriptInfo dialog so that it can be used to allow scripts by origin, instead of all scripts on the page, when NoScript is globally enabled. removes the option to allow scripts persistently (since this can be done via the Bravery panel anyway)
auditors: @bbondy
git rebase -i
to squash commits (if needed).