maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast! (https://talk.maemo.org/showthread.php?t=85191)

romaxa 2013-01-24 07:48

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by coderus (Post 1317030)
no, h264 not supported on youtube.com/html5 page, only webM
yes, Harmattan N9 build.

Make sure that you run
make -f client.mk configure/build after mozconfig change (enable gstreamer)

romaxa 2013-01-24 07:50

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by coderus (Post 1317030)
no, h264 not supported on youtube.com/html5 page, only webM
yes, Harmattan N9 build.

I think if you take build from my site and open
http://camendesign.com/code/video_fo...body/test.html
it should display video playback with H264 string in right bottom corner, isn't it?

coderus 2013-01-24 09:06

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
oh, sorry, it working now. files was not overwritten. h264 now.

romu 2013-01-24 12:31

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Hi there,
Can't browse anything with this Fennec. Always get the message the service doesn't answer or is too busy.

I checked the terminal, but didn't notice someting special. My data connection is wifi only.

Any idea?

meegofan 2013-01-25 13:20

Did I understand you right, you guys are working on a faster browser which will replace the stock browser? That would be awesome!! Can you already tell us, when this browser will be available?

coderus 2013-01-25 13:50

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
@meegofan its avialable already. read thread.

romu 2013-01-25 15:30

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Hi there.
I made some additionnal testing with the build of January 23. I can't browse any web site as shown on the screenshot.

http://romut.free.fr/n9/fennec.png

I also join a log from fennec:

Quote:

greHome from PWD:/opt/mozbuildhm
Created LOG for EmbedLiteTrace
>>>>>>Func:virtual bool QGraphicsMozView::event(QEvent*)::458 Event Hide
>>>>>>Func:virtual bool QGraphicsMozView::event(QEvent*)::454 Event Show
>>>>>>Func:virtual bool QGraphicsMozView::event(QEvent*)::454 Event Show
Loaded xulDir:/opt/mozbuildhm/libxpcom.so, appDir:/opt/mozbuildhm
Created LOG for GeckoLoader
Created LOG for EmbedPrefs
Created LOG for EmbedLitePuppetWidget
Created LOG for EmbedNonImpl
Created LOG for EmbedLiteCompositorParent
Created LOG for TabChildHelper
In the terminal, I didn't notice anything special except the errors about IPDL messages processing which fails when fennec is destroyed.

Of course, eveything works with the stock browser and the last official Firefox build. So, any help would be appreciated.

don_falcone 2013-01-25 16:21

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
So is this only for Harmattan? Or Maemo too?

freemangordon 2013-01-25 16:26

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by don_falcone (Post 1317748)
So is this only for Harmattan? Or Maemo too?

Harmattan. I have Fremantle builds (or used to), waiting for qwazix to come up with the UI and will provide then

shmerl 2013-01-25 18:24

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
don_falcone: There are Mer builds as well, so you can test it in PlasmaActive and Nemo.

freemangordon 2013-01-25 18:31

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by shmerl (Post 1317774)
don_falcone: There are Mer builds as well, so you can test it in PlasmaActive and Nemo.

AFAIK there are desktop builds too, I guess he can test them either, but the question was about Maemo (read Fremantle)

shmerl 2013-01-25 18:32

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Desktop builds aren't so interesting to test, since they don't expose the specifics of various mobile devices. Mer builds are armv7hl, so they are targeted for mobile use cases. I test it on Nexus 7 for example with Plasma Active, but you can as well do it on N900 or N9 with Nemo.

freemangordon 2013-01-25 18:39

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by shmerl (Post 1317777)
Desktop builds aren't so interesting to test, since they don't expose the specifics of various mobile devices. Mer builds are armv7hl, so they are targeted for mobile use cases. I test it on Nexus 7 for example with Plasma Active, but you can as well do it on N900 or N9 with Nemo.

Last time I've checked, Nemo brings n900 to its knees. Only OS running. I can't imagine what will happen if you start gecko (which needs > 50MB of RAM at least) on that and try to use it.

Though my info regarding Nemo could be outdated as well and nowadays Nemo could be running lightning fast on n900.

The point is that by running some exotic non-native binaries, one would not get the correct impression what embedLite is capable of. IMO. Not that I stop anyone to try :)

coderus 2013-01-25 18:41

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
there are developing embedlite fennec, desktop builds are not embed :D

shmerl 2013-01-25 18:46

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
@freemangordon: What can you do. N900 is rather limited as is, so you don't have much room for maneuver there. I didn't test Nemo on it really. After I'll get Jolla's device I'll put Nemo on N950 for testing. You can always get the latest build and try running it - it could indeed improve since last time you tried.

@coderus: Embed here refers not to embedded devices, but to embedding the Gecko engine in a separate abstraction from the interface :) It can work even on the desktop and potentially be better than current Mozilla's processing design.

meegofan 2013-01-25 18:50

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
:cool:
Quote:

Originally Posted by skyjumper (Post 1312127)
Yep, that did the trick. I would normally do this on a redhat system or similar. Didn't occur to me to do it for the N9.
I also had to install libpango1.0-0, libpango1.0-common and libxft2.

Now it's "working" :-)

Despite exporting the library path, it's still not working for me :-( It keeps telling me the "segmentation failure" error mentioned before. Do I have to install libpango and the other packages? If so, what it's the command to accomplish that? I tried it via dpkg already, it told me something with "permission denied" (aegis). Any help is appreciated!

Edit: It tells me that /opt/mozbuildhm/libxpcom.so is missing. I checked the tar-archive if this file simply hasn't been extracted, but this file isn't there even in the tar-archive! I don't get that...

freemangordon 2013-01-25 18:56

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by shmerl (Post 1317782)
@freemangordon: What can you do. N900 is rather limited as is, so you don't have much room for maneuver there. I didn't test Nemo on it really. After I'll get Jolla's device I'll put Nemo on N950 for testing. You can always get the latest build and try running it - it could indeed improve since last time you tried.

@coderus: Embed here refers not to embedded devices, but to embedding gecko engine in a separate process :)

You still miss my point - I have working build for fremantle, which (with some maemo5 specific optimizations) renders TMO and FB with 40-50 fps. That is what I can do. And I will provide usable binaries as soon as qwazix is ready with the UI and we integrate it with embedLite. There are some of us who will use Fremantle/n900 after you get your Jolla device and I, being one of those, am trying to produce something that is useful on day-to-day basis, not just a POC.

EDIT:
BTW even if we fail to bring working embedLite on fremantle, if qwazix finishes his job, we'll have a nice QtWebKit browser with QML UI :D

qwazix 2013-01-25 20:11

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Does embedlite use the normal firefox profile folder for bookmarks, sync, history and such? Are those functions there or do we have to implement them from scratch?

For example the add bookmark button should just call a function that will be hooked to embedlite, or should I implement a way to save bookmarks? The same goes for history etc.

coderus 2013-01-25 20:14

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
its all ui stuff and we should implement it self ++D

jalyst 2013-01-25 20:20

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by qwazix (Post 1317796)
Does embedlite use the normal firefox profile folder for bookmarks, sync, history and such? Are those functions there or do we have to implement them from scratch?

In my chats with sergey my understanding was that was all planned to be there, but that was some time ago.

freemangordon 2013-01-25 20:32

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
I am under the same impression as jalyst, though we should wait romaxa to publish some API to be sure.

BTW profile folder is called mozembed, not fenec

Morpog 2013-01-25 22:10

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Why don't you guys join irc freenode #nemomobile ?

romaxa is idling there

meegofan 2013-01-25 23:11

Ok, I found the file libxpcom.so, it's located within /opt/fennec/lib/fennec-17.0a1/
If I export that path via GRE_HOME, then the problem related to libxpcom.so is solved. However, I then get the error: "Could not load XUL functions."

Any help is appreciated!

coderus 2013-01-26 06:44

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
@meegofan both libxul.so and libxpcom.so in mozbuildhm archive. no need to get it remotelly.

meegofan 2013-01-26 07:02

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by coderus (Post 1317875)
@meegofan both libxul.so and libxpcom.so in mozbuildhm archive. no need to get it remotelly.

Thanks for your reply! The problem is, libxpcom.so is NOT included in the mozbuildhm archive. Just downloaded it again and rechecked that... Maybe the archive is broken? Only libxul.so is in the archive... could you please check the archive for validity? Thanks in advance!

Edit: Just saw, that the MER version of the archive does include libxpcom.so! So there must be an issue with the Harmattan version of the archive...

coderus 2013-01-26 07:29

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
http://romaxa.info/mer/mozbuildhm.tar.gz

coderus 2013-01-26 07:30

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Code:

LD_LIBRARY_PATH=./ ./qmlMozEmbedTest

HtheB 2013-01-26 08:31

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Here is a way to add a homescreen Icon:

first we need to make a little script so it will avoid all the library errors.
go to the terminal (default password of root is rootme)
Code:

devel-su
nano /opt/mozbuildhm/mozilla.sh

if it gives you an error message about nano, it means you don't have nano installed yet, to install nano use command:
apt-get install nano

Now copy and paste this in the nano editor
Code:

#! /bin/bash
# script to run fennec beta
cd /opt/mozbuildhm
./qmlMozEmbedTest

Now save and close the file with 'Ctrl+X' (filename is: mozilla.sh)

now we need to add the executable attribute
Code:

chmod 755 /opt/mozbuildhm/mozilla.sh
Now we're ready to add the desktop icon to the menu
Code:

nano /usr/share/applications/fennecbeta.desktop
now copy and paste this in the nano editor
Code:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Name=Firefox Beta
Exec=/opt/mozbuildhm/mozilla.sh
Icon=/usr/share/themes/blanco/meegotouch/icons/icon-l-fennec.png

Save and close it with 'Ctrl+X' (filename is fennecbeta.desktop)


Have fun!
(the icon will only show up if you have firefox already installed, ofcourse you can change the icon with your own icons instead, just change the path of the 'Icon')


If you want to remove the script and homescreen icon:
Code:

devel-su  (default password is: rootme)
rm /opt/mozbuildhm/mozilla.sh
rm /usr/share/applications/fennecbeta.desktop


meegofan 2013-01-26 10:44

Finally it's working for me! I really like this new browser, though the speed improvement isn't as huge as expected... Maybe it's due to the configuration, at the startup there is a message which tells me, that harmattan booster can't be loaded...

coderus 2013-01-26 11:25

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
harmattan booster its only startup speed boost. nothing more.

Morpog 2013-01-26 11:45

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by meegofan (Post 1317921)
Finally it's working for me! I really like this new browser, though the speed improvement isn't as huge as expected... Maybe it's due to the configuration, at the startup there is a message which tells me, that harmattan booster can't be loaded...

Compare it with old XUL based Firefox from store. You will notice it for sure.

meegofan 2013-01-26 13:19

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by Morpog (Post 1317934)
Compare it with old XUL based Firefox from store. You will notice it for sure.

Just did a quick speed comparison between the stock browser, fennec nightly 17.0 and Qt based Fennec. I loaded the site "www.finanzen.net" and measured the time. After doing this five times and averaging the values I got the following results:

stock browser:
Loading Time (average): 18.9 sec
Standard deviation: 0.4 sec

Fennec Nightly 17.0:
Loading Time (average): 26.1 sec
Standard deviation: 1.3 sec

Qt based Fennec:
Loading Time (average): 18.1 sec
Standard deviation: 1.0 sec

Therefore, Qt based Fennec is about 4% faster than the stock browser and about 31% faster than Fennec Nightly 17.0. Compared to the store version of Fennec, the speed improvement might be even higher... Good job!!!

By the way, does the Qt based Fennec version have something like a cache? Prior to loading the website I deleted the cache in case of the stock browser and in case of Fennec Nightly 17.0. However, I haven't found such an option in case of Qt based Fennec.

Edit: Maybe I should have also mentioned that my N9 is running PR1.3 @1,2ghz and FasterN9 1.14!

I just got some more results from Ringmark 1.4.0 (http://rng.io/)

stock browser:
Ring 1: 37 failed / 94 passed

Fennec Nightly 17.0:
Ring 1: 13 failed / 134 passed

Qt based Fennec:
Ring 1: 12 failed / 137 passed

So, Qt based Fennec wins this competition as well!

I also tried to run Browsermark 2.0 (browsermark.rightware.com) but unfortunately it crashes using fennec browsers. Using the stock browser i get 948 points, which is a rather bad results I guess...

szymeczek34 2013-01-26 14:37

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
You can also try benching with: sunspider; peacekeeper. Fennec hangs on peacekeeper but you gotta wait for it, it will finish.

coderus 2013-01-26 14:53

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
running peacekeeper now
score: 133
html5 capabilities 5/7 :D

with desktop UA got
score: 123
html5 capabilities 6/7 :D

coderus 2013-01-26 17:27

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Fennec for Harmattan QML UI Demo #1
http://www.youtube.com/watch?v=FmleBTAUo-I

meegofan 2013-01-26 17:55

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
I just found the website http://loadtimer.org, which allows for the measuring of the loading times of popular websites. It also allows for comparison of the times with other devices. Unfortunately, with Qt based Fennec I can't copy and paste my URL-list into the textfield. Furthermore, "select all" is not possible within the textfield. Does anyone have the same issues with textfields?

bibek 2013-01-26 18:19

Quote:

Originally Posted by coderus (Post 1317994)
Fennec for Harmattan QML UI Demo #1
http://www.youtube.com/watch?v=FmleBTAUo-I

We are waiting for it :)

romaxa 2013-01-26 18:30

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Quote:

Originally Posted by qwazix (Post 1317796)
Does embedlite use the normal firefox profile folder for bookmarks, sync, history and such? Are those functions there or do we have to implement them from scratch?

For example the add bookmark button should just call a function that will be hooked to embedlite, or should I implement a way to save bookmarks? The same goes for history etc.

yes embedlite creates normal mozilla profile, and basically you are able to use mozilla API to receive history, bookmarks API... I need to wrap them into embedlite or provide example of component how to use them on top of embedlite API's

No you don't need to do anything from scratch.

shma 2013-01-26 18:36

Quote:

Originally Posted by coderus (Post 1317994)
Fennec for Harmattan QML UI Demo #1
http://www.youtube.com/watch?v=FmleBTAUo-I

Looking great, can't wait for some kind of release i could comprehend the installation process. Keep up the great work.

Morpog 2013-01-26 19:01

Re: Qt based Fennec (Firefox) - IPCLiteAPI - Hell it's fast!
 
Great idea with tap and hold. If you need help with graphics, just pm me or ping me on irc.


All times are GMT. The time now is 12:07.

vBulletin® Version 3.8.8