Skip to content

Instantly share code, notes, and snippets.

@Slow3000
Slow3000 / Check that fails in ipc_sync_message_filter.cc
Created October 27, 2014 11:21
Qt WebEngine windows crash on exit.
bool SyncMessageFilter::Send(Message* message) {
// Removed [...]
// Can't use this class on the main thread or else it can lead to deadlocks.
// Also by definition, can't use this on IO thread since we're blocking it.
DCHECK(MessageLoopProxy::current().get() != listener_loop_.get());
@Slow3000
Slow3000 / Local variables
Created October 23, 2014 15:54
Occasional crash in Qt WebKit (5.4) on 64 Bit MSVC 2013 Windows (here on youtube.com in QGraphicsWebView)
from : 0x0000001c82aa1563 void *
to :0x0000003800000260 void *
offset : 0x0000001b7d55ecfd __int64
castOffset : 0x7d55ecfd int
@Slow3000
Slow3000 / gist:b59ac2a91914c159428e
Created September 4, 2014 12:00
Style recalc assert.
> Qt1WebEngineCored.dll!WebCore::DocumentLifecycle::advanceTo(WebCore::DocumentLifecycle::State state) Line 154 C++
Qt1WebEngineCored.dll!WebCore::Document::updateStyle(WebCore::StyleRecalcChange change) Line 1889 C++
Qt1WebEngineCored.dll!WebCore::Document::updateRenderTree(WebCore::StyleRecalcChange change) Line 1863 C++
Qt1WebEngineCored.dll!WebCore::Document::updateLayoutIgnorePendingStylesheets(WebCore::Document::RunPostLayoutTasks runPostLayoutTasks) Line 2032 C++
Qt1WebEngineCored.dll!WebCore::VisiblePosition::canonicalPosition(const WebCore::Position & passedPosition) Line 576 C++
Qt1WebEngineCored.dll!WebCore::VisiblePosition::init(const WebCore::Position & position, WebCore::EAffinity affinity) Line 65 C++
Qt1WebEngineCored.dll!WebCore::VisiblePosition::VisiblePosition(const WebCore::Position & pos, WebCore::EAffinity affinity) Line 54 C++
Qt1WebEngineCored.dll!WebCore::FrameSelection::localCaretRect() Line 1228 C++
Qt1WebEngineCored.dll!WebCore::FrameSelection::recomputeCaretRect()
@Slow3000
Slow3000 / gist:088f110c4506eedba3ed
Created July 30, 2014 15:23
MSVS 2012 compiler error
Microsoft (R) Program Maintenance Utility Version 11.00.60315.1
Copyright (C) Microsoft Corporation. All rights reserved.
cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -D_HAS_EXCEPTIONS=0 -GR -W3 -w34100 -w34189 /Fd..\..\..\..\plugins\pl
tforms\qwindowsd.pdb -DUNICODE -DWIN32 -DQT_NO_CAST_FROM_ASCII -DQT_NO_DIRECTWRITE -DQT_NO_FONTCONFIG -DFT2_BUILD_LIBRA
Y -DQT_NO_EXCEPTIONS -DQT_PLUGIN -DQT_PLATFORMSUPPORT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_
NGLE -I"C:\dev\mibrunin\qt5-for-we\qtbase\src\plugins\platforms\windows" -I"C:\dev\mibrunin\qt5-for-we\qtbase\src\3rdpa
ty\wintab" -I"C:\dev\mibrunin\qt5-for-we\qtbase\src\3rdparty\freetype\src" -I"C:\dev\mibrunin\qt5-for-we\qtbase\src\3rd
arty\freetype\include" -I"C:\dev\mibrunin\qt5-for-we\qtbase\src\3rdparty\iaccessible2\generated\x86" -I"..\..\..\..\inc
ude" -I"..\..\..\..\include\QtPlatformSupport" -I"..\..\..\..\include\QtPlatformSupport\5.4.0" -I"..\..\..\..\include\Q
@Slow3000
Slow3000 / gist:a982ff11bad915f6cfbb
Created June 5, 2014 16:07
Quick hack to make Chromium not build angle libraries.
From b36d628d27c95c1789d3f22e795971834b34bdee Mon Sep 17 00:00:00 2001
From: Michael Bruning <michael.bruning@digia.com>
Date: Thu, 5 Jun 2014 18:04:55 +0200
Subject: [PATCH] Quick hack for suppressing the ANGLE build in Chromium.
Basically removes the EGL and GLESv2 targets and adds
those to the libraries.y
---
chromium/build/all.gyp | 2 +-
chromium/build/common.gypi | 4 +-
@Slow3000
Slow3000 / gist:5728965
Last active December 18, 2015 04:59
Video support enabling patch...
From 7ea881a01221b139a06846857afac2d787b94414 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20Br=C3=BCning?= <michael.bruning@digia.com>
Date: Fri, 7 Jun 2013 14:43:50 +0200
Subject: [PATCH] Base MacOSX video support decision on deployment target.
---
Source/WebCore/WebCore.pri | 4 ++--
Tools/qmake/mkspecs/features/features.prf | 15 +++++++--------
2 files changed, 9 insertions(+), 10 deletions(-)
@Slow3000
Slow3000 / gist:5389173
Created April 15, 2013 16:00
Simple WebView
#include <QApplication>
#include <QUrl>
#include <QWebView>
int main(int argc, char**argv) {
QApplication app(argc, argv);
QWebView* view = new QWebView(0);
view->load(QUrl::fromUserInput("http://www.google.com"));
view->show();
return app.exec();
@Slow3000
Slow3000 / gist:5345154
Created April 9, 2013 12:01
GTK build fix.
diff --git a/Source/WebKit2/UIProcess/API/gtk/WebKitFileChooserRequest.cpp b/Source/WebKit2/UIProcess/API/gtk/WebKitFileChooserRequest.cpp
index 0dccdfc..217d069 100644
--- a/Source/WebKit2/UIProcess/API/gtk/WebKitFileChooserRequest.cpp
+++ b/Source/WebKit2/UIProcess/API/gtk/WebKitFileChooserRequest.cpp
@@ -355,7 +355,7 @@ const gchar* const* webkit_file_chooser_request_get_selected_files(WebKitFileCho
WebString* webFileName = static_cast<WebString*>(selectedFileNames->at(i));
if (webFileName->isEmpty())
continue;
- CString filename = fileSystemRepresentation(selectedFileNames[i]);
+ CString filename = fileSystemRepresentation(webFileName->string());
@Slow3000
Slow3000 / gist:4690519
Last active December 12, 2015 01:19
QtWebPageLoadClient refactor to C-API
From d05807eb240048b95a96b3d39c39b297e614b885 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20Br=C3=BCning?= <michael.bruning@digia.com>
Date: Fri, 1 Feb 2013 11:18:10 +0100
Subject: [PATCH] [Qt][WK2] QtWebPageLoadClient should use the C API.
https://bugs.webkit.org/show_bug.cgi?id=108473
Reviewed by NOBODY (OOPS!).
Replaced all usages of WebFrameProxy with C API calls.
Added WKFrameSetUnreachableURL to be able to set the unreachable URL
@Slow3000
Slow3000 / gist:4344414
Created December 20, 2012 10:15
QObject bridge
@@ -1173,7 +1175,12 @@ static int findMethodIndex(JSContextRef context,
vars.resize(args.count());
for (i=0; i < args.count(); i++) {
vars[i] = args[i];
- vvars[i] = vars[i].data();
+ void* dataPtr = vars[i].data();
+ int userType = vars[i].userType();
+ if (userType == QMetaType::QVariant || userType == QMetaType::QVariantMap || userType == QMetaType::QVariantList || userType == QMetaType::QVariantHash)
+ vvars[i] = &vars[i];
+ else