Fwd: PCMan BBS Extension 0.2.6 compatibility with Firefox 16.*

38 views
Skip to first unread message

PCMan

unread,
Oct 8, 2012, 12:58:53 PM10/8/12
to pcm...@googlegroups.com
剛剛從 Mozilla 那邊收到的

---------- Forwarded message ----------
From: Mozilla Add-ons <nob...@mozilla.org>
Date: Sat, Oct 6, 2012 at 4:51 AM
Subject: PCMan BBS Extension 0.2.6 compatibility with Firefox 16.*
To: pcma...@gmail.com


Dear add-on author,

While testing add-ons for compatibility with the upcoming release of
Firefox 16.*, we detected some potential compatibility issues with
your add-on PCMan BBS Extension. You can view these issues here:
https://addons.mozilla.org/developers/addon/pcman-bbs-extension/validation-result/144470

Please look into these issues and upload a new version if necessary.
If you've tested your add-on and no changes are required, you can
update your compatibility to Firefox 16.* here:
https://addons.mozilla.org/developers/addon/51261/versions/1337903

For more information about Firefox 16 compatibility, you can read our
blog post: https://blog.mozilla.org/addons/2012/10/02/compatibility-for-firefox-16/.

Thank you,
Firefox Add-ons team

--

You are receiving this email as the registered author of PCMan BBS
Extension on addons.mozilla.org. If you no longer wish to receive
these emails, please disable your add-on from the Developer Hub at
https://addons.mozilla.org/developers

u881831

unread,
Oct 9, 2012, 9:11:37 AM10/9/12
to pcm...@googlegroups.com
錯誤訊息如下:

`nsITransferable` has been changed in Gecko 16.

錯誤: The `nsITransferable` interface has changed to better support Private Browsing Mode. After instantiating the object, you should call `.init(null)` on it, before any other functions are called.

錯誤: See bug https://bugzilla.mozilla.org/show_bug.cgi?id=722872 for more information.

chrome/content/pcman.js

85      var trans = Components.classes["@mozilla.org/widget/transferable;1"]
86                      .createInstance(Components.interfaces.nsITransferable);
87      if (!trans)

Mozilla 提供的新範例:
https://developer.mozilla.org/en-US/docs/Using_the_Clipboard

根據那個網頁似乎只要在上面87行
if (!trans)
    return false;
的後面加上
if ('init' in trans)
  trans.init(null);
就好了,
不過還是需要實際測試一下FX 3.6到FX16的相容性,
(FX 3.6到FX 9還有需要支援嗎?)
因為我這兩個星期沒有時間做測試打包等工作,
應該來不及在FX16釋出前放出新版,
有沒有人要負責這個部分?


PCMan於 2012年10月9日星期二UTC+8上午12時58分53秒寫道:
Reply all
Reply to author
Forward
0 new messages