Compare Revisions

Security preferences

Revision 481403:

Revision 481403 by jswisher on

Revision 481655:

Revision 481655 by hadraj on

Title:
Security preferences
Security preferences
Slug:
Midas/Security_preferences
Midas/Security_preferences
Tags:
"editor","Security","Gecko","Midas"
"editor","Security","Gecko","Midas"
Content:

Revision 481403
Revision 481655
t8      To protect users' private information, unprivileged scriptst8               &nbsp
> cannot invoke the Cut, Copy, and Paste commands in the Mozilla r>;          &nbs
>ich text editor, so the corresponding buttons on the <a href="htt>p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
>p://www-archive.mozilla.org/editor/midasdemo/" title="http://www- 
> archive.mozilla.org/editor/midasdemo/">Mozilla Rich Text Editing 
> demo page</a> will not work. To enable these functions, you must 
> modify your browser preferences. 
9    </p>
10    <h2 id="Changing_the_preferences_in_Firefox">
11      Changing the preferences in Firefox
12    </h2>
13    <ol>
14      <li>Quit Firefox. If you have Quick Launch running (on Wind
>ows, this is an icon in the toolbar), quit that too. 
15      </li>
16      <li>
17        <a class="external" href="http://support.mozilla.com/en-U
>S/kb/Profiles">Find your Firefox profile directory</a>. 
18      </li>
19      <li>Open the <code class="filename">user.js</code> file fro
>m that directory in a text editor. If there's no <code>user.js</c 
>ode> file, create one. 
20      </li>
21      <li>Add these lines to <code class="filename">user.js</code
>>: 
22        <pre class="code">
23user_pref("capability.policy.policynames", "allowclipboard");
24user_pref("capability.policy.allowclipboard.sites", "https://www.
>mozilla.org"); 
25user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "
>allAccess"); 
26user_pref("capability.policy.allowclipboard.Clipboard.paste", "al
>lAccess"); 
27</pre>
28      </li>
29      <li>Change the url <span class="external"><code class="url"
>>https://www.mozilla.org</code></span> to the site for which you  
>want to enable this function. 
30      </li>
31      <li>Save the file and restart Firefox. The Clipboard button
>s should now function. 
32      </li>
33    </ol>
34    <div class="note">
35      <strong>Note:</strong> The preference is site as well as pr
>otocol specific. For example:<br> 
36      <pre>
37user_pref("capability.policy.allowclipboard.sites", "http://www.m
>ozilla.org") 
38</pre>
39      <p>
40        is not the same as:
41      </p>
42      <pre>
43user_pref("capability.policy.allowclipboard.sites", "https://www.
>mozilla.org") 
44</pre>
45      <p>
46        This is because the first uses <a href="/en-US/docs/HTTP"
> title="/en-US/docs/HTTP">HTTP</a> while the second uses HTTPS. 
47      </p>If you want to allow multiple URLs to access the Paste 
>operation, separate the URLs with a space. For example: 
48      <pre>
49user_pref("capability.policy.allowclipboard.sites", "https://www.
>mozilla.org https://developer.mozilla.org") 
50</pre>
51      <h2 id="See_also">
52        See also
53      </h2>
54      <p>
55        For more information about security policies, see this ar
>ticle about <a href="http://www.mozilla.org/projects/security/com 
>ponents/ConfigPolicy.html" title="http://www.mozilla.org/projects 
>/security/components/ConfigPolicy.html">Configurable Security Pol 
>icies</a>. 
56      </p>
57    </div>
58    <p>
59      &nbsp;

Back to History