らいふうっどの閑話休題

興味のあることをゆる~く書いていく

Hacking a valence.xpi - Prologue

            <div class="headline-m">目次</div>


きっかけ / Trigger

CHRIMEN Open Hardware コミュニティの活動で、B2G OS 向けの開発ツール WebIDE での開発に支障が出ることに気が付きました。
In the activities of the CHRIMEN Open Hardware community, I noticed that development with WebIIDE, a development tool for B2G OS, was hindered.
具体的には、下記操作ができなくなっていました。

  • プロジェクト作成後、プロジェクトツリーが、見れなくなっている
    After creating the project, the project tree can not be seen
  • B2G OS へアプリをインストール出来なくなっている
    You can not install applications to B2G OS

Firefox ver.55以降で、使用できなくなっているようです。
調べた所、下記情報が見つかりました。
It seems that it can not be used with Firefox ver.55 or later.
After examining, the following information was found.

Remove WebIDE https://bugzilla.mozilla.org/show_bug.cgi?id=1314811
WebIDE project tree and Edit area didn't display. https://bugzilla.mozilla.org/show_bug.cgi?id=1391641
対応策ですが、下記の通りです。



目的 / Purpose

このブログでは、下記項目を目的にハックしていきます。
In this blog, I will hack for the following items.

  • valence.xpiの仕組みを知ること
    Knowing the mechanism of valence.xpi
  • WebIDEの後継の拡張Extensionの作成
    Creation of extended extension for successor to WebIDE

valence.xpi は、下記リンクからダウンロード出来ます。
valence.xpi will be able to Download following links.
linux64:http://archive.mozilla.org/pub/labs/valence/linux64/
ma64:http://archive.mozilla.org/pub/labs/valence/mac64/
win32:http://archive.mozilla.org/pub/labs/valence/win32/


githubリポジトリは、こちらです。
The repository of github is here.
https://github.com/mozilla/valence


ハックしている時のバージョンは、 0.3.8 です。
The version when hacking is 0.3.8.


Folder Compose / フォルダ構成

valence.xpi ファイル を解凍したフォルダ構成は、下図のとおりです。
The configuration of the folder that unzipped the valence.xpi file is shown below.
各 OS とも同じフォルダ構成です。
Each OS has the same folder Compose.



差分を掛けてみた所、install.rdf ファイルの URI が、 OS 毎に異なっていました。
次回は、各ファイルはディレクトリ別にハックしていきたいと思います。
When I multiplied the difference, the URI of the install.rdf file was different for each OS.
Next time, I would like to hack each file by directory.