]> git.pld-linux.org Git - packages/qt6.git/blob - github-crash.patch
upstream fix for qtwebengine crash on github.com; rel 1
[packages/qt6.git] / github-crash.patch
1 From 81bf140583f7b7bf13cc8dd522e1ca2aba873fc4 Mon Sep 17 00:00:00 2001
2 From: Martin Negyokru <negyokru@inf.u-szeged.hu>
3 Date: Mon, 3 Oct 2022 12:20:00 +0200
4 Subject: Do not intercept websocket connection when there is no associated
5  frame
6
7 This fix is based on chrome's implementation.
8
9 Fixes: QTBUG-107144
10 Change-Id: If042e4156b8a4bdb27a210c4db94e3a6198aed7d
11 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
12 (cherry picked from commit 64b7da9dab82713fdcb2e03d8a2715421eae5685)
13 Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
14 ---
15  src/core/content_browser_client_qt.cpp | 3 +--
16  1 file changed, 1 insertion(+), 2 deletions(-)
17
18 diff --git a/src/core/content_browser_client_qt.cpp b/src/core/content_browser_client_qt.cpp
19 index 020ae916a..99a3aa3f4 100644
20 --- a/src/core/content_browser_client_qt.cpp
21 +++ b/src/core/content_browser_client_qt.cpp
22 @@ -1237,8 +1237,7 @@ ContentBrowserClientQt::WillCreateURLLoaderRequestInterceptors(content::Navigati
23  
24  bool ContentBrowserClientQt::WillInterceptWebSocket(content::RenderFrameHost *frame)
25  {
26 -    Q_UNUSED(frame);
27 -    return true; // It is probably not worth it to only intercept when interceptors are installed
28 +    return frame != nullptr;
29  }
30  
31  QWebEngineUrlRequestInterceptor *getProfileInterceptorFromFrame(content::RenderFrameHost *frame)
32 -- 
33 cgit v1.2.1
34
This page took 0.050017 seconds and 3 git commands to generate.