Skip to content

Commit

Permalink
fix a lot (for Fx4)
Browse files Browse the repository at this point in the history
  fix ExtensionManager (this is removed. use AddonManager)
  fix prefs.xul
  fix browser.xul : TODO(Constellation) initialization is very monkey patching
  fix Firefox Bookmark Model
  fix PrefService (use PrefService, not broad nsIPrefBranch)
  fix AppInfo (use interface nsIXULAppInfo)
  fix Components: registeration (chrome.manifest.original)
  fix Components: use NSGetFactory, NSGetModule is obsolete
  fix E4X variable expand (need toString)
  fix setter syntax error
  change install.rdf (max version)
  • Loading branch information
Constellation committed Mar 19, 2011
1 parent 487e843 commit a1b339e
Show file tree
Hide file tree
Showing 10 changed files with 719 additions and 602 deletions.
3 changes: 3 additions & 0 deletions xpi/chrome.original.manifest
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
component {aec75109-b143-4e49-a708-4904cfe85ea0} components/tombloo.js
contract @brasil.to/tombloo-service;1 {aec75109-b143-4e49-a708-4904cfe85ea0}

content tombloo chrome/content/
skin tombloo classic chrome/skin/
overlay chrome://browser/content/browser.xul chrome://tombloo/content/browser.xul
Expand Down
7 changes: 3 additions & 4 deletions xpi/chrome/content/browser.xul
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@
</menupopup>
<script type="text/javascript; version=1.7"><![CDATA[
(function(){
// createInstanceで呼び出し初期化を促す
// 他の場所ではgetServiceを用いてよい
var env = Cc['@brasil.to/tombloo-service;1'].createInstance().wrappedJSObject;
// initialize
var env = Cc['@brasil.to/tombloo-service;1'].getService().wrappedJSObject;
env = env.Module.createInstance(null, Components.ID('{aec75109-b143-4e49-a708-4904cfe85ea0}'));
env.signal(env, 'browser-open', window);
window.addEventListener('load', function(e){
Expand Down
Loading

0 comments on commit a1b339e

Please sign in to comment.