Monday, October 12, 2009

Debugging Fennec front-end

Fennec is a XUL application like Firefox based on Mozilla Platform.

Therefore, it can be debugged and modified in the same way of Firefox if you know how to debug Firefox.

XUL applications are consisted of several XUL, JavaScript, and CSS files.
They are archived in a Jar file so Fennec also has two jar files in fennec/chrome/

The en-US.jar has localization information, the chrome.jar has Fennec front-end code.

If you want to modify them,

1) Extract the chrome.jar in the current path
2) Modify the chrome.manifest as follows
override chrome://global/skin/about.css chrome://browser/skin/about.css
skin browser classic/1.0 content/..
content branding content/branding/
content firstrun content/ contentaccessible=yes
content browser content/
In order to display variable value as well as simple debug message information  of JavaScipt in a system console, you can use the dump function. Before using this command, you have to enable browser dump preference in terms of typing about:config in the URL bar.
browser.dom.window.dump.enabled=true

There is an example of using dump() at the startup() funciton in the browser.js

 startup: function() {
    var self = this;

    dump("begin startup\n");

    let container = document.getElementById("tile-container");
   ...

The dump function works well in Linux system, but it doesn't work in Visual Studio in Windows system in order to debug Fennec for Windows Mobile.
It works well in Visual Studio. I could see debug messages in the output box of Visual Studio using latest build of Fennec.


References

Sunday, April 26, 2009

SAMSUNG Windows Mobile SDK 1.0 Released!

SAMSUNG Windows Mobile SDK

Samsung Windows Mobile SDK 1.0 was released!

You can download Samsung Windows Mobile SDK 1.0 from SAMSUNG Mobile Innovator web site, but it needs to be registered for downloading. Of course, it's free.

It consists of API Spec, programming guide, installation guide, header files & library for device APIs, and sample code.

The APIs is used for providing advanced features unique to Samsung phones. You might already have experience using advanced capabilities featured in the Windows Mobile APIs, like GPS, Bluetooth, or multimedia support. In addition to the Microsoft Windows Mobile APIs, you can use Samsung device APIs to access phone features such as the accelerometer, notification LEDs, and haptics feedback.

Fennec team is preparing to support device APIs for Fennec.
Bugzilla Items
Therefore, it would be very helpful to support device APIs exposed to Fennec.

SAMSUNG i780 skin SAMSUNG Omina Skin

In addition, you can download SAMSUNG device emulator skin files from the web site.

The Device Emulator skin archive contains skins for the following phones:
  • SGH-i617 BlackJack II
  • SGH-i907 Epix [and SGH-i780 Mirage] (I own this model)
  • SCH-i760 Robin
  • SCH-i770 Saga
  • SPH-i325 ACE
  • SGH-i900 Omnia [and SCH-i910 Omnia]
Device Emulator skins enable you to change the physical appearance of the Device Emulator in Microsoft Visual Studio. When installed, the Samsung Device Emulator skins will enable you to run the emulator with the appearance of a Samsung phone

Programming Guide of SAMSUNG Windows Mobile SDK

Monday, April 13, 2009

How to make a cab installer of Windows Mobile Fennec build

When you finish building Fennec for Windows Mobile, you can ask "How can I install Fennec on my Windows Mobile handset?"

"Where is the installer?"

Fennec build system creates only a zip file in the path of "objdir/mobile/dist".

You might install Fennec using this zip file. But, it is cumbersome.
Fennnec team has released Fennec for Windows Mobile as a cab install.

How can they make a cab installer?

If you want to make a cab installer, move to /objdir/mobile/mobile/installer.
And then, run Makefile as follows,

$make installer

If so, you can find a cab installer in the path of "objdir/mobile/dist".

Friday, March 27, 2009

Fennec is running on SAMSUNG i780

Doug Turner resolved the test blocker of Fennec for Windows Mobile.

I was delight to hear the new because I had tried several times to run Fennec on my SAMSUNG i780 (called Mirage in Korea). I had always failed to run Fennec.

Fennec1.0 alpha for Windows Mobile

Fennec1.0 alpha for Windows Mobile


Tooday, I tried to build Fennec for Windows Mobile from the trunk of Mozilla.
It is working well, but very slow on i780.

I found several problems as follows,
- Multiple instances
- Long start-up time
- IME button not disappeared
- Broken Hangul(Korean)
I will file up these problems on the Bugzilla and try to fix them up.

Tuesday, February 10, 2009

Mozilla@FOSDEM2009

FOSDEM 2009 was finished last week. Although I didn't attend FODSEM, I could find the atmosphere through blogs and photos on Flikr. FODSEM(Free and Open Source Software Developer’s European Meeting) is a largest occation for free/open source developers in Europe. It is relevant various open source projects, so it can be compared with OSCON(O’Reilly Open Source Convention) held in the US.

The following projects had a track for sessions:

KDE, GNOME, Mozilla, X.org, Fedora+CentOS, OpenSUSE, BSD+PostgreSQL, GNUStep, Jabber, Debian, Ada, Free Java, OpenOffice, Drupal, Ruby & Rails, MySQL, Linux Kernel

And there were other projects sessions such as OpenMoko, Maemo, CMake, Webkit, Xfce, OLPC, and so on.

Especially, there were Mozilla related session as follows:

  • Mozilla Europe
  • Mozilla Foundation
  • Mozilla and Universities
  • What’s after Firefox 3.1
  • Community Sites Project
  • Building XUL communities
  • SeaMonky
  • Overview of Mozilla QA
  • Oni
  • Rising to the Sun(bird)
  • Thunderbird3
  • Prism
  • Fennec
  • Embedding
  • Mozilla headless back-end
  • Events/EduCamp@FOSDEMa2009


Photo: Teemu Mäntynen( An old woman wears a Firefox t-shirts. it's lovely)

For your information, you can find session videos of FOSDEM. They have not open 2009 videos, you can find session videos of the 2008,2007

I hope to attend FOSDEM next year.

References

Monday, January 12, 2009

Hildon related bugzilla issues

Fennec1.0 alpha3 preview
426291 -- Add support for Hildon (Maemo) application menu
426292 -- Add support for Hildon (Maemo) filepicker
426293 -- Add support for Hildon (Maemo) banner for alerts
426299 -- Create a theme for Hildon (Maemo) platform [tracking bug]

There are several bugs about Hildon integration with Fennec.

Fennec is now under development. A lot of features are now being implemented and the code is changed everyday.

Currently, Fennec team seems to strive to implement the UI features and Windows Mobile port of XULRunner. Therefore platform specific features are not still implemented even Maemo platform.

Anyway, Hildon menu integration seems to be simple to implement.

Can I try??

Friday, December 26, 2008

Firefox for Mobile Devices


I'd like to share a little bit old presentation about Mobile Firefox.


From: mobileportland, 2 months ago





Dietrich Ayala's presentation at May 2008 meeting of Mobile Portland


SlideShare Link