Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
287 views
in Technique[技术] by (71.8m points)

tomcat - How to read Firefox log

I have a question about the log of Firefox Browser.

I am implement the automatic update feature of my Firefox extension, after following the tutorial at http://www.borngeek.com/firefox/automatic-firefox-extension-updates/ and getting some helps at post Firefox extension automatic update feature, the update feature is still not working, but there are more information provided at the Firefox log. Can anyone please give me some advices or take some time to take a look at the log output. Thanks.

My development environment is

  1. Firefox 5 on Ubuntu 11.04
  2. Tomcat 6 server

The log output of a remove and re-install my extension is

*** LOG addons.xpi: startup
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: No changes found
*** LOG addons.xpi: Opening database
*** LOG addons.repository: Requesting https://services.addons.mozilla.org/en-GB/firefox/api/1.5/search/guid:myextension%40mozilla.myextension.org?src=firefox&appOS=Linux&appVersion=5.0&tMain=23&tFirstPaint=1641&tSessionRestored=1042
*** LOG addons.xpi: Starting install of file:///home/me/browserplugindev/firefox/test/myextension.xpi
*** LOG addons.xpi: Addon [email protected] will be installed as a packed xpi
*** LOG addons.xpi: Install of file:///home/me/browserplugindev/firefox/test/myextension.xpi completed.
NOTE: child process received `Goodbye', closing down
*** LOG addons.xpi: shutdown
*** LOG addons.xpi: startup
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: Found updated manifest for [email protected] in app-profile
*** LOG addons.xpi: Processing install of [email protected] in app-profile
*** LOG addons.xpi: Opening database
*** LOG addons.xpi: New add-on [email protected] installed in app-profile
*** LOG addons.xpi: Updating database with changes to installed add-ons
*** LOG addons.xpi: Updating add-on states
*** LOG addons.xpi: Writing add-ons list
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

This log shows installation of an extension with ID [email protected] from disk. Nothing special here - installation is scheduled, after a restart it is actually completed. Nothing about updates in that log (I guess that the installation was triggered manually).

Log entries referring to update checks rather than installation start with "addons.updates" and not "addons.xpi". When an update manifest is being checked you should see an entry "addons.updates: Requesting https://..." as well as additional entries in case of issues. Make sure that extensions.logging.enabled preference is set to true and that you actually trigger updates check - right-click your add-on in the add-on manager and choose "Find Updates" from the context menu.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...