Skip to content

Instantly share code, notes, and snippets.

@lauromoura
lauromoura / gist:2285268
Created April 2, 2012 17:16
webkit-snapshot rules files
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
--- bzoltan.txt 2012-04-02 15:27:47.670834877 -0300
+++ lmoura.txt 2012-04-02 15:28:06.294834591 -0300
@@ -1,6 +1,6 @@
-g++
--Wl,-Bsymbolic-functions
--Wl,-z,relro
+arm-linux-gnueabi-g++
+-Wl,-rpath-link,/lib
+-Wl,-rpath,/home/lauro/webkit/webkit-deb/WebKitBuild/Release/lib
-Wl,--no-undefined
@lauromoura
lauromoura / gist:2295156
Created April 3, 2012 20:01
User agent patch
diff --git a/Source/WebKit2/UIProcess/qt/WebPageProxyQt.cpp b/Source/WebKit2/UIProcess/qt/WebPageProxyQt.cpp
index ac9fde418b0c42f9f4dec87a330b1a9e1a4e5f14..8667a2f401025ce140d62694332ac9850018057f 100644
--- a/Source/WebKit2/UIProcess/qt/WebPageProxyQt.cpp
+++ b/Source/WebKit2/UIProcess/qt/WebPageProxyQt.cpp
@@ -32,8 +32,14 @@
#include "qquicknetworkreply_p.h"
#include "WebPageMessages.h"
#include "WebProcessProxy.h"
+#include <QtCore/QCoreApplication>
#include <WebCore/Editor.h>
@lauromoura
lauromoura / gist:2312921
Created April 5, 2012 18:09
Simple qml file which imports folderlistmodel.
import QtQuick 1.0
import Qt.labs.folderlistmodel 1.0
Rectangle {
color: "blue"
height: 800
width: 600
}
@lauromoura
lauromoura / gist:2314310
Created April 5, 2012 21:30
New user agent patch.
commit db1d0405a73ae9a5b70c506516380b66cbcd071b
Author: Lauro Neto <lauro.neto@openbossa.org>
Date: Wed Apr 4 21:33:35 2012 -0300
[Qt] Shared implementation of user agent for WK1 and WK2.
diff --git a/Source/WebCore/Target.pri b/Source/WebCore/Target.pri
index 96ec846..4554581 100644
--- a/Source/WebCore/Target.pri
+++ b/Source/WebCore/Target.pri
#rules for qmltypes
!cross_compile {
qtPrepareTool(QMLPLUGINDUMP, qmlplugindump)
QMLTYPESFILE = $$QT.jsondb.imports/$$TARGETPATH/plugin.qmltypes
@lauromoura
lauromoura / gist:2480130
Created April 24, 2012 14:32
QXcbWindow requestWindowOrientation fix
commit 68cac318403df59ef861b632b3af15b4342d8c83
Author: Lauro Neto <lauro.neto@openbossa.org>
Date: Tue Apr 24 15:35:15 2012 -0300
Add requestWindowOrientation implementation for QXcbWindow
QXcbWindow implements setOrientation in Maemo but the application
has no way to request a new orientation as QPlatformWindow implements
just a placeholder method.
No platform plugin argument was specified, defaulting to "xcb".
QIBusPlatformInputContext: ibus config file '/home/lauro/.config/ibus/bus/d5df3d9858656d4e66a4203a00000006-unix-0' does not exist.
QIBusPlatformInputContext: not connected.
QMaliitPlatformInputContext: not connected.
Old plugin format found in lib /home/lauro/dev/webkit/webkit/WebKitBuild/Debug/imports/QtWebKit/libqmlwebkitplugin.so
No platform plugin argument was specified, defaulting to "xcb".
QIBusPlatformInputContext: ibus config file '/home/lauro/.config/ibus/bus/d5df3d9858656d4e66a4203a00000006-unix-0' does not exist.
QIBusPlatformInputContext: not connected.
QMaliitPlatformInputContext: not connected.
QOpenGLShader::link: "Vertex shader(s) linked, fragment shader(s) linked.
(gdb) r
Starting program: /home/lauro/dev/snowshoe/snowshoe/snowshoe --mobile
[Thread debugging using libthread_db enabled]
No platform plugin argument was specified, defaulting to "xcb".
QIBusPlatformInputContext: ibus config file '/home/lauro/.config/ibus/bus/d5df3d9858656d4e66a4203a00000006-unix-0' does not exist.
QIBusPlatformInputContext: not connected.
QMaliitPlatformInputContext: not connected.
[New Thread 0x7fffe5cc6700 (LWP 16973)]
[New Thread 0x7fffe54c5700 (LWP 16974)]
Old plugin format found in lib /home/lauro/dev/webkit/webkit/WebKitBuild/Debug/imports/QtWebKit/libqmlwebkitplugin.so
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff3c48268 in QWebIconImageProvider::requestImage (this=0x933380, id=..., size=0x7fffffffb8d0, requestedSize=...) at /home/lauro/dev/webkit/webkit/Source/WebKit2/UIProcess/API/qt/qwebiconimageprovider.cpp:60
60 ASSERT(!icon.isNull());
(gdb) bt
#0 0x00007ffff3c48268 in QWebIconImageProvider::requestImage (this=0x933380, id=..., size=0x7fffffffb8d0, requestedSize=...) at /home/lauro/dev/webkit/webkit/Source/WebKit2/UIProcess/API/qt/qwebiconimageprovider.cpp:60
#1 0x00007ffff17847fd in QQmlEnginePrivate::getImageFromProvider(QUrl const&, QSize*, QSize const&) () from /opt/Qt5/Qt-5.0.0-r28/lib/libQtQml.so.5
#2 0x00007ffff791b3ad in QQuickPixmap::load(QQmlEngine*, QUrl const&, QSize const&, QFlags<QQuickPixmap::Option>) () from /opt/Qt5/Qt-5.0.0-r28/lib/libQtQuick.so.5
#3 0x00007ffff79d3d7f in QQuickImageBase::load() () from /opt/Qt5/Qt-5.0.0-r28/lib/libQtQuick.so.5
#4 0x00007ffff7acb492 in QQuickImageBase::qt_metacall(QMetaObject::Call, in