From 378fbbcbc9c65d1462ea6994f1f680412531a043 Mon Sep 17 00:00:00 2001 From: Paulo Pinheiro Date: Wed, 25 Feb 2015 22:00:57 -0300 Subject: Quick: Fix handling of multiple certificate errors per request This patch enables Quick API to handle multiple certificate errors per requests and update the example projects. Chromium 40 branch raise an certificate error for every resource loaded in a request (.js, .css, .html) instead of only one (previous behavior), so requests with more than one certificate error were automatically rejected. Change-Id: Ibaa3027cd6e7f22b5dc51dcd52f76ccf5ea162d3 Reviewed-by: Pierre Rossi --- tests/quicktestbrowser/utils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/quicktestbrowser/utils.h') diff --git a/tests/quicktestbrowser/utils.h b/tests/quicktestbrowser/utils.h index 0f4460dfe..52025b7e4 100644 --- a/tests/quicktestbrowser/utils.h +++ b/tests/quicktestbrowser/utils.h @@ -48,6 +48,7 @@ class Utils : public QObject { Q_OBJECT public: Q_INVOKABLE static QUrl fromUserInput(const QString& userInput); + Q_INVOKABLE static QString domainFromString(const QString& urlString); }; inline QUrl Utils::fromUserInput(const QString& userInput) @@ -58,4 +59,9 @@ inline QUrl Utils::fromUserInput(const QString& userInput) return QUrl::fromUserInput(userInput); } +inline QString Utils::domainFromString(const QString& urlString) +{ + return QUrl::fromUserInput(urlString).host(); +} + #endif // UTILS_H -- cgit v1.2.3