basyura's blog

あしたになったらほんきだす。

right_click_close 1.6 for firefox4

firefox のタブを右クリックで閉じれるようになるだけのアドオン。
https://addons.mozilla.org/en-US/firefox/addon/right_click_close/

firefox4βが出てるのでそろそろ対応しなきゃと思いつつ放置してたら

サンドボックスに置きっぱなしでレビューを受けていないアドオンは、 2/18 までに Full review か Preliminary review を受けないと無効にしちゃうよ。

ってメールが来たので慌てて対応開始。

・Full Review ― a thorough functional and code review of the add-on, appropriate for add-ons ready for distribution to the masses. All site features are available to these add-ons.
・Preliminary Review ― a faster review intended for experimental add-ons. Preliminary reviews do not check for functionality or full policy compliance, but the reviewed add-ons have install button cautions and some feature limitations.

レビュープロセス

Full はきちんとやるけど Preliminary はザックリで確認するよ(でもインストールボタンに注意書きが出ちゃうよ)と理解。
いつも通り install.rdf のバージョンだけを変更してアップロード。そして Preliminary Review を依頼したら撃沈。

In order to prevent conflicts with other add-ons that may be installed by users, you need to wrap your "loose" variables and functions within a JavaScript object. You can see examples on how to do this at https://developer.mozilla.org/en/XUL_School/JavaScript_Object_Management.

グローバル領域を汚すなと。
そりゃそうだなと書き直し(何年ぶりだ)。ついでに自動アップデートできるように updateURL と updateKey をグーグル先生に教えてもらいながら付けてみる。

Please excuse, but we don't allow external updates (specified by the updateURL in the install.manifest).

撃沈。せっかく付けた updateURL と updateKey は許可してませんよと。
調べてみると mozilla のサイトにアップロードする場合は updateURL と updateKey は不要だし自動的アップデートに対応してくれてるらしい。知らなかった。
updateURL と updateKey を消して再度アップロード。

Thank you for the fast fix.
Tested on Windows XP SP 3 with Firefox 4.0b11pre

無事アップデートが完了しました。