https://bugs.webkit.org/show_bug.cgi?id=77009
Patch by Alexander Færøy <alexander.faeroy@nokia.com> on 2012-01-26
Reviewed by Simon Hausmann.
This patch fixes a crash in BrowserWindow::newWindow() where a
BrowserWindow-object is constructed with a 0 pointer as the
WindowOptions parameter which leads to a crash.
* MiniBrowser/qt/BrowserWindow.cpp:
(BrowserWindow::BrowserWindow):
(BrowserWindow::newWindow):
* MiniBrowser/qt/BrowserWindow.h:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106003
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-01-26 Alexander Færøy <alexander.faeroy@nokia.com>
+
+ [Qt] The Qt MiniBrowser crashes when given multiple URL's
+ https://bugs.webkit.org/show_bug.cgi?id=77009
+
+ Reviewed by Simon Hausmann.
+
+ This patch fixes a crash in BrowserWindow::newWindow() where a
+ BrowserWindow-object is constructed with a 0 pointer as the
+ WindowOptions parameter which leads to a crash.
+
+ * MiniBrowser/qt/BrowserWindow.cpp:
+ (BrowserWindow::BrowserWindow):
+ (BrowserWindow::newWindow):
+ * MiniBrowser/qt/BrowserWindow.h:
+
2012-01-26 Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
[Qt] Use ICU if available
#include <QPointF>
BrowserWindow::BrowserWindow(WindowOptions* options)
+ : m_windowOptions(options)
{
setWindowTitle("MiniBrowser");
setWindowFlags(Qt::Window | Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint);
BrowserWindow* BrowserWindow::newWindow(const QString& url)
{
- BrowserWindow* window = new BrowserWindow();
+ BrowserWindow* window = new BrowserWindow(m_windowOptions);
window->load(url);
return window;
}
Q_OBJECT
public:
- BrowserWindow(WindowOptions* = 0);
+ BrowserWindow(WindowOptions*);
~BrowserWindow();
void load(const QString& url);
void reload();
private:
void updateUserAgentList();
+ WindowOptions* m_windowOptions;
QStringList m_userAgentList;
};