From a065e04d529da1d847b5062a12c46d916408bf32 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 21:46:22 -0500 Subject: update based on https://github.com/mdn/yari/issues/2028 --- files/pl/midas/security_preferences/index.html | 63 -------------------------- 1 file changed, 63 deletions(-) delete mode 100644 files/pl/midas/security_preferences/index.html (limited to 'files/pl/midas/security_preferences/index.html') diff --git a/files/pl/midas/security_preferences/index.html b/files/pl/midas/security_preferences/index.html deleted file mode 100644 index 79a5d00b3f..0000000000 --- a/files/pl/midas/security_preferences/index.html +++ /dev/null @@ -1,63 +0,0 @@ ---- -title: Security preferences -slug: Midas/Security_preferences -translation_of: Mozilla/Projects/Midas/Security_preferences ---- -

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.

- -

For Firefox:

- -
    -
  1. Quit Firefox. If you have Quick Launch running (in Windows, an icon in the toolbar), quit that too.
  2. -
  3. Find your Firefox profile directory.
  4. -
  5. Open the user.js file from that directory in a text editor. If there's no user.js file, create one.
  6. -
  7. 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");ser_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");
    -
  8. -
  9. Change the url https://www.mozilla.org to the site for which you want to enable this function.
  10. -
  11. Save the file, and restart Firefox. The Clipboard buttons should now function.
  12. -
- -
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")
-
- -
-
For more information about security policies, see http://www.mozilla.org/projects/security/components/ConfigPolicy.html.
-
- - - - - - - - - - - - - - -- cgit v1.2.3-54-g00ecf