mozilla

Revision 370531 of Midas editor module security preferences

  • Revision slug: Midas/Security_preferences
  • Revision title: Security preferences
  • Revision id: 370531
  • Created:
  • Creator: remas2010
  • Is current revision? No
  • Comment

Revision Content

To protect users' private information, unprivileged scripts cannot invoke the Cut, Copy, and Paste commands in the Mozilla rich text editor, so the corresponding buttons on the Mozilla Rich Text Editing demo page will not work. To enable these functions for purposes of the demo, you must modify your browser preferences.

Changing the preferences in Firefox

  1. Quit Firefox. If you have Quick Launch running (on Windows, this is an icon in the toolbar), quit that too.
  2. Find your Firefox profile directory.
  3. Open the user.js file from that directory in a text editor. If there's no user.js file, create one.
  4. Add these lines to user.js:شركة تسويق
    user_pref("capability.policy.policynames", "allowclipboard");
    user_pref("capability.policy.allowclipboard.sites", "https://www.mozilla.org");
    user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");
    user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");
  5. Change the url https://www.mozilla.org to the site for which you want to enable this function.
  6. Save the file and restart Firefox. The Clipboard buttons should now function.التسوق الالكتروني
Note: The preference is site as well as protocol specific. For example:
user_pref("capability.policy.allowclipboard.sites", "http://www.mozilla.org")

is not the same as:اشهار منتديات

user_pref("capability.policy.allowclipboard.sites", "https://www.mozilla.org")

This is because the first uses HTTP while the second uses HTTPS.

If you want to allow multiple URLs to access the Paste operation, separate the URLs with a space. For example:التسويق

user_pref("capability.policy.allowclipboard.sites",
 "https://www.mozilla.org https://developer.mozilla.org")

 

See also

اشهار المواقع

For more information about security policies, see this article about  شركة للتسويق ,منتديات اشهار,Configurable Security Policies.



 

 

 




 

Revision Source

<p>To protect users' private information, unprivileged scripts cannot invoke the Cut, Copy, and Paste commands in the Mozilla rich text editor, so the corresponding buttons on the <a href="http://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 for purposes of the demo, you must modify your browser preferences.</p>
<h2 id="Changing_the_preferences_in_Firefox">Changing the preferences in Firefox</h2>
<ol>
  <li>Quit Firefox. If you have Quick Launch running (on Windows, this is an icon in the toolbar), quit that too.</li>
  <li><a class="external" href="http://support.mozilla.com/en-US/kb/Profiles">Find your Firefox profile directory</a>.</li>
  <li>Open the <code class="filename">user.js</code> file from that directory in a text editor. If there's no <code>user.js</code> file, create one.</li>
  <li>Add these lines to <code class="filename">user.js</code>:<a href="http://www.nile7.com/services" title="http://www.nile7.com/services">شركة تسويق</a>
    <pre class="code">
user_pref("capability.policy.policynames", "allowclipboard");
user_pref("capability.policy.allowclipboard.sites", "https://www.mozilla.org");
user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");
user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");</pre>
  </li>
  <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.</li>
  <li>Save the file and restart Firefox. The Clipboard buttons should now function.<a href="http://www.nile7.com/readings" title="http://www.nile7.com/readings">التسوق الالكتروني</a></li>
</ol>
<div class="note">
  <strong>Note:</strong> The preference is site as well as protocol specific. For example:<br />
  <pre>
user_pref("capability.policy.allowclipboard.sites", "http://www.mozilla.org")</pre>
  <p>is not the same as:<a href="http://www.nile7.com/content/good-and-relevant-content-very-important-websites-0" title="http://www.nile7.com/content/good-and-relevant-content-very-important-websites-0">اشهار منتديات</a></p>
  <pre>
user_pref("capability.policy.allowclipboard.sites", "https://www.mozilla.org")</pre>
  <p>This is because the first uses <a href="/en-US/docs/HTTP" title="/en-US/docs/HTTP">HTTP</a> while the second uses HTTPS.</p>
</div>
<p>If you want to allow multiple URLs to access the Paste operation, separate the URLs with a space. For example:<a href="http://www.nile7.com/content/good-website-design-tips" title="http://www.nile7.com/content/good-website-design-tips">التسويق</a></p>
<pre>
user_pref("capability.policy.allowclipboard.sites",
 "https://www.mozilla.org https://developer.mozilla.org")
</pre>
<h2 id="See_also.D8.A7.D8.B4.D9.87.D8.A7.D8.B1_.D8.A7.D9.84.D9.85.D9.88.D8.A7.D9.82.D8.B9">&nbsp;</h2>
<h2>See also</h2>
<h2><a href="http://www.nile7.com/blog" title="http://www.nile7.com/blog">اشهار المواقع</a></h2>
<p>For more information about security policies, see this article about&nbsp; <a href="http://www.nile7.com" title="http://www.nile7.com">شركة للتسويق ,</a><a href="http://www.nile7.com/readings/about-us-nile7" title="http://www.nile7.com/readings/about-us-nile7">منتديات اشهار</a><a href="http://www.nile7.com" title="http://www.nile7.com">,</a><a href="http://www.mozilla.org/projects/security/components/ConfigPolicy.html" title="http://www.mozilla.org/projects/security/components/ConfigPolicy.html">Configurable Security Policies</a>.</p>
<p><br />
  <br />
  &nbsp;</p>
<p>&nbsp;</p>
<table border="0" cellpadding="0" cellspacing="0" width="377">
  <colgroup>
    <col width="377" />
  </colgroup>
  <tbody>
    <tr height="19">
    </tr>
  </tbody>
</table>
<p>&nbsp;</p>
<p><br />
  <br />
  <br />
  &nbsp;</p>
Revert to this revision