Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

user.js fil ein 32.03 does not effect prefernces

  • 6 답장
  • 4 이 문제를 만남
  • 16 보기
  • 최종 답변자: cor-el

more options

User has FF 32.03- trying to edit user.js file to allow for javascript copy and paste

user_pref("capability.policy.policynames", "allowclipboard"); user_pref("capability.policy.allowclipboard.sites", "https://www.hccfl.blackboard.com"); user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess"); user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");


But while the prefs.js absorbs the changes it still does not correct the problem. Even though in 32.02 it does?

User has FF 32.03- trying to edit user.js file to allow for javascript copy and paste user_pref("capability.policy.policynames", "allowclipboard"); user_pref("capability.policy.allowclipboard.sites", "https://www.hccfl.blackboard.com"); user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess"); user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess"); But while the prefs.js absorbs the changes it still does not correct the problem. Even though in 32.02 it does?

모든 댓글 (6)

more options

The "capability.policy" feature was removed in Firefox 29, so I'm surprised to hear it was working in Firefox 32.0.2. ??

There is a plan to implement a new clipboard permission, but I don't see any progress on it here: Bug #1012662 – implement click-to-copy and click-to-cut permissions (semi-trusted events).

Just a note about the bug tracking system: it's generally not helpful to add comments like "hurry up" to bugs, but you can register on the Bugzilla site and "vote" for them to be fixed. See:


Meanwhile, in most cases your user will find that you don't need a website's copy/paste buttons, but instead she or he can use one of these methods:

  • To copy, select text, then either:
    • right-click it > Copy
    • Ctrl+c keyboard shortcut
  • To paste, click to position the cursor, then either:
    • right-click > Paste
    • Ctrl+v keyboard shortcut

These two methods work thoughout most of Windows, and if one doesn't work the other usually does.

I understand this is not a complete replacement, since the site probably cannot intercept this kind of paste and clean out bad formatting tags (which presumably is one of the benefits of letting the site access the clipboard). But at the moment, it's all I've got.

more options

If ctrl-v and ctrl-p, or right clicking worked I wouldn't be here.

This code fixes it in 32.02 but not 32.03

Is there any way to modify these preferences?

more options

My guess is that something else has changed that is unrelated to those preferences because as far as I know, the "allowclipboard" permission has been out of the code base since Firefox 29.

more options

I think the allowclipboard permission may have been deprecated but not removed until 32.03. This would make logical sense as there is no difference in the two versions of FF except this issue.

Wonderful

more options

RightToClick {web link} Stops javascript annoyances such as forbidden right click, forbidden text selection or cascading dialog boxes.

more options