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

Mozilla 도움말 검색

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

자세히 살펴보기

CustomEvent no longer works in Firefox extension since v32

  • 3 답장
  • 3 이 문제를 만남
  • 3 보기
  • 최종 답변자: user633449

more options

Since Firefox 32 was released the extension we use to enable copy/paste in our WYSIWYG editor has stopped working. I believe I have tracked this down to an issue with CustomEvent.

Whenever "detail" is added to a CustomEvent in our extension we receive an error in the cfx run console. In short, this no longer works:

http://stackoverflow.com/questions/24473784/customevent-error-in-firefox-bootstrapped-addon

This is the error:

 Message: [Exception... "Failure"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///var/folders/6s/909dglt145x_lxx318y0zplm0000gn/T/tmpJs13JW.mozrunner/extensions/jid1-eBtRcYjLqiOeFw@jetpack.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/loader/sandbox.js -> resource://jid1-ebtrcyjlqioefw-at-jetpack/plugin/data/copy-paste.js :: completePaste :: line 27"  data: no]

To be perfectly clear, this extension works just fine in the current Firefox 31 ESR.

Please advise

Since Firefox 32 was released the extension we use to enable copy/paste in our WYSIWYG editor has stopped working. I believe I have tracked this down to an issue with CustomEvent. Whenever "detail" is added to a CustomEvent in our extension we receive an error in the cfx run console. In short, this no longer works: http://stackoverflow.com/questions/24473784/customevent-error-in-firefox-bootstrapped-addon This is the error: Message: [Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///var/folders/6s/909dglt145x_lxx318y0zplm0000gn/T/tmpJs13JW.mozrunner/extensions/jid1-eBtRcYjLqiOeFw@jetpack.xpi!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/loader/sandbox.js -> resource://jid1-ebtrcyjlqioefw-at-jetpack/plugin/data/copy-paste.js :: completePaste :: line 27" data: no] To be perfectly clear, this extension works just fine in the current Firefox 31 ESR. Please advise

선택된 해결법

Please contact the developers of the extension. They need to update it to work in modern Firefox versions.

문맥에 따라 이 답변을 읽어주세요 👍 0

모든 댓글 (3)

more options

선택된 해결법

Please contact the developers of the extension. They need to update it to work in modern Firefox versions.

more options

I am the developer, I'm trying to fix it. Can you tell me how to do that, or provide a link to a resource that explains it?

The Mozilla documentation claims that what I'm doing should work:

https://developer.mozilla.org/en-US/docs/Web/API/Document.createEvent

more options

This forum cant help you with add-on development. Try https://addons.mozilla.org/en-US/developers/