tmeshkova / qtmozembed Goto Github PK
View Code? Open in Web Editor NEWQt wrapper for mozilla embed lite API
Qt wrapper for mozilla embed lite API
When building this [1] source, which doesn't use QtDeclarative at all, an linking error occurs.
libqtembedwigdet doesn't link to libQtDeclarative at all (checked with ldd). Although, when build with with qmake && make
the following error occurs:
/usr/lib/libqtembedwidget.so: undefined reference to `QDeclarativeItem::~QDeclarativeItem()'
(and a lot of similar ones).
Adding QT += declarative
is a fix, but causes additional and useless RAM usage
Potential fix - separate the non-Declarative and Declarative parts and make separate libraries of them.
[1] http://marmistrz.net63.net/public/qtmozembed/microbe.1.tar.bz2
Data corruption when serializing unicode strings.
Bug affects SendAsyncMessage, RecvSyncMessage and SendObserve
https://github.com/tmeshkova/qtmozembed/blob/master/src/qmozcontext.cpp#L206
https://github.com/tmeshkova/qtmozembed/blob/master/src/qgraphicsmozview_p.cpp#L197
https://github.com/tmeshkova/qtmozembed/blob/master/src/qgraphicsmozview.cpp#L221
need implementation of getPref
Hello.
I tried to compile qtmozembed without any success.
First of all, are there any build instructions (with prerequisites)?
I tried to build gecko-dev first, but I got build error and then compile errors.
The build error caused this error at compile time:
../../dist/system_wrappers/gtk/gtk.h:3.26: fatal error: gtk/gtk.h: no
such file or directory
#include_next <gtk/gtk.h>
I've fixed it by adding this line in /gecko-dev/embedding/embedlite/moz.build
:
CXXFLAGS += CONFIG['TK_CFLAGS']
Then, I get the following error:
Unified_c_media_libvorbis0.o
In file included from
/path/to/Source/mozembed/gecko-dev/embedding/embedlite/embedthread/EmbedLiteCompositorParent.cpp:8:0:
/path/to/Source/mozembed/gecko-dev/embedding/embedlite/embedthread/EmbedLiteCompositorParent.h:19:7: error: cannot derive from ‘final’ base ‘mozilla::layers::CompositorParent’ in derived type ‘mozilla::embedlite::EmbedLiteCompositorParent’
class EmbedLiteCompositorParent : public mozilla::layers::CompositorParent
In the directory /path/to/Source/mozembed/gecko-dev/obj-x86_64-unknown-linux-gnu/embedding/embedlite
If I remove the MOZ_FINAL, I get other errors.
What can I do to fix all the issues?
I tried to build gecko-dev since I get the following error when I try to compile qtmozembed:
fatal error: mozilla-config: no such file or directory
but I don't know if I am on the right track.
I tried on both ArchLinux and Linux Mint Debian Edition.
By the way, is there any 64-bit binary for Linux for this library?
And is this library stable?
Thanks for your help.
run qmlMozEmbedTest on N9
tap on urlbar
close
crashes [@ QGraphicsMozViewPrivate::UpdateViewSize] when accessing destroyed EmbedLiteView
didn't get the complite bt, just some weird bit:
#0 0x411a87fc in raise (sig=11) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:45
#1 0x3c37d554 in nsProfileLock::FatalSignalHandler (signo=11, info=0xaeb51c60, context=0xaeb51ce0)
at objdir-arm/toolkit/profile/nsProfileLock.cpp:180
#2
#3 0x0002e274 in ?? () from /usr/lib/libicui18n.so.44
#4 0x000294b0 in QGraphicsMozView::setGeometry (this=0x30d318, rect=...) at qgraphicsmozview.cpp:475
#5 0x4259aad4 in qt_resource_data () from /usr/lib/libQtGui.so.4
#6 0x4259aad4 in qt_resource_data () from /usr/lib/libQtGui.so.4
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Bisected master and SHA1 064fdac that added QOepnGLExtension_OES_EGL_image broke rendering of two active QmlMozViews. See example below.
Actual outcome:
Both views have content of m.engadget.com
Expected outcome:
Top most view has www.google.com and the one below it has m.engadget.com.
MainPageQuickSf.qml of qmlmozbrowser
...
import QtQuick 2.0
import Sailfish.Silica 1.0
import Qt5Mozilla 1.0
Page {
id: browserPage
QmlMozView {
width: parent.width
height: 200
active: true
clip: true
onViewInitialized: {
loadFrameScript("chrome://embedlite/content/embedhelper.js")
load("http://www.google.com")
}
}
QmlMozView {
y: 200
width: parent.width
height: 200
active: true
clip: true
onViewInitialized: {
loadFrameScript("chrome://embedlite/content/embedhelper.js")
load("http://m.engadget.com")
}
}
}
...
Note that when running on Jolla device you need to have in /home/nemo/.mozilla/mozembed/prefs.js:
user_pref("gfx.qt.rgb16.force", false);
Hi, i just wanted to ask if this project supports exposure of QObjects to the JS Enviroment like good ol' Webkit did?
See QWebFrame::addToJavaScriptWindowObject()
Move/remove the palette.setColor code from QGraphicsMozViewPrivate::SetBackgroundColor into a different function and expose mBgColor to the outside world with QColor getPageDefaultBackgroundColor()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.