diff options
Diffstat (limited to 'files/nl/mozilla/projects/midas/security_preferences/index.html')
-rw-r--r-- | files/nl/mozilla/projects/midas/security_preferences/index.html | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/files/nl/mozilla/projects/midas/security_preferences/index.html b/files/nl/mozilla/projects/midas/security_preferences/index.html deleted file mode 100644 index c7339d42ed..0000000000 --- a/files/nl/mozilla/projects/midas/security_preferences/index.html +++ /dev/null @@ -1,65 +0,0 @@ ---- -title: Midas editor module security preferences -slug: Mozilla/Projects/Midas/Security_preferences -translation_of: Mozilla/Projects/Midas/Security_preferences ---- -<div class="note"> -<p><strong>Note:</strong> If you've reached this page from a message box in Firefox or another Mozilla product, try using keyboard shortcuts for the Cut, Copy, and Paste commands:</p> - -<ul> - <li>Copy: Ctrl+C or Ctrl+Insert (command+C on Mac)</li> - <li>Paste: Ctrl+V or Shift+Insert (command+V on Mac)</li> - <li>Cut: Ctrl+X or Shift+Delete (command+X on Mac)</li> -</ul> - -<p>The information on the rest of this page is for Web developers and advanced users. Please do not try to modify this page.</p> -</div> - -<p>To protect users' private information, unprivileged scripts cannot invoke the Cut, Copy, and Paste commands in Midas, which is Mozilla's rich text editor component. This means that 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, you must modify your browser preferences.</p> - -<div class="warning"> -<p><strong>Warning:</strong> Changing these preferences can leave your browser insecure, especially if you grant permission to untrusted sites. Only change these settings as needed to try the demo above and to test your own add-on or Firefox-internal code, and be sure to restore the default settings when you're done!</p> -</div> - -<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>: - <pre class="code">user_pref("capability.policy.policynames", "allowclipboard"); -user_pref("capability.policy.allowclipboard.sites", "https://www-archive.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 in the demo, or similar buttons on the sites you listed, should now function.</li> -</ol> - -<div class="note"><strong>Note:</strong> The preference is site as well as protocol specific. For example: - -<pre>user_pref("capability.policy.allowclipboard.sites", "http://www-archive.mozilla.org") -</pre> - -<p>is not the same as:</p> - -<pre>user_pref("capability.policy.allowclipboard.sites", "https://www-archive.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> -If you want to allow multiple URLs to access the Paste operation, separate the URLs with a space. For example: - -<pre>user_pref("capability.policy.allowclipboard.sites", "https://www-archive.mozilla.org https://developer.mozilla.org") -</pre> -</div> - -<p>Again, keep in mind the security risks involved here and be sure to remove permission to access the clipboard once you no longer need it enabled.</p> - -<h2 id="See_also">See also</h2> - -<ul> - <li id="For_more_information_about_security_policies.2C_see_this_article_about_Configurable_Security_Policies.">For more information about security policies, see this article about <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>.</li> - <li><a href="/en-US/docs/Web/Security/CSP">CSP</a> and <a href="/en-US/docs/Web/Security/CSP/CSP_policy_directives">Policy Directives</a>.</li> -</ul> |