SummerOfCode/2012/UserCSP/WeeklyUpdates/2012-04-30: Difference between revisions

Jump to navigation Jump to search
Line 37: Line 37:
<center> Figure: UserCSP add-on UI</center>
<center> Figure: UserCSP add-on UI</center>


* Tabpanel of CSP directives: Each directive will have its own tab. Currently there are only three directives supported.  Users can change to another CSP directive by clicking on its tab button.  For example, to write rules for "object-src" CSP directive, click on "object-src" tab on the tab panel and write rules for object-src CSP directives.  
* Tabpanel of CSP directives: Each directive will have its own tab. Currently there are only three directives supported namely: default-src, script-src, and object-src.  Users can change to another CSP directive by clicking on its tab button.  For example, to write rules for "object-src" CSP directive, click on "object-src" tab on the tab panel and write rules for object-src CSP directives.  


* Text field of "Enter Rule", allows user to type rules for the selected CSP directive.  
* Text field of "Enter Rule", allows user to type rules for the selected CSP directive.  
* "Add" button adds rule written by user to "User Specified Rule" list.  
* The "Add" button adds rule written by user to "User Specified Rule" list.  


* "Website Specified Rules" shows rules specified by the website for selected tab's directive. If website didn't specify any rules then it is empty.  
* The "Website Specified Rules" list shows rules specified by the website for selected tab's directive. If website didn't specify any rules then it is empty.  


* If website specified CSP policy, then "Add to User Rule" button is useful for users to use some of those rules into their rule sets.  User need to select a rule they want to use from "Website Specified Rules" list and click on "Add to User Rule" button to add all selected rules to "User Specified Rules" list.  
* If website specified CSP policy, then "Add to User Rule" button is useful for users to use some of those rules into their rule sets.  User need to select a rule they want to use from the "Website Specified Rules" list and click on the "Add to User Rule" button to add all selected rules to the "User Specified Rules" list.  


* The "User Specified Rules" contains rules specified by user.  
* The "User Specified Rules" contains rules specified by user.  
Line 62: Line 62:
* If website has specified CSP rules then "Refine Rules" button, "Refined Rules" label and "Apply refined Rules" button are shown on the UI dynamically.  
* If website has specified CSP rules then "Refine Rules" button, "Refined Rules" label and "Apply refined Rules" button are shown on the UI dynamically.  


* "Refine Rules" button allows users to combine Website Specified Rules and User Specified Rules, and use aggregate of them. Exactly how this button will behave is not yet fully decided.  
* The "Refine Rules" button allows users to combine Website Specified Rules and User Specified Rules, and use aggregate of them. Exactly how this button will behave is not yet fully decided.  


* "Apply Refine Rules" button allows user to apply the result of "Refine Rules" action on the website.  
* The "Apply Refine Rules" button allows user to apply the result of "Refine Rules" action on the website.
 
 
 
 
 
 
*
Confirmed users
461

edits

Navigation menu