[webkit-changes] [WebKit/WebKit] a3c163: [GTK][WPE] Improve detection of the web view main ...
Carlos Garcia Campos
noreply at github.com
Sun Oct 30 07:31:53 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a3c1630617d29865df618e6fc017d958c1477b1d
https://github.com/WebKit/WebKit/commit/a3c1630617d29865df618e6fc017d958c1477b1d
Author: Carlos Garcia Campos <cgarcia at igalia.com>
Date: 2022-10-30 (Sun, 30 Oct 2022)
Changed paths:
M Source/WebCore/loader/DocumentLoader.cpp
M Source/WebKit/UIProcess/API/glib/WebKitInjectedBundleClient.cpp
M Source/WebKit/UIProcess/API/glib/WebKitWebResource.cpp
M Source/WebKit/UIProcess/API/glib/WebKitWebResourcePrivate.h
M Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp
M Source/WebKit/UIProcess/API/glib/WebKitWebViewPrivate.h
Log Message:
-----------
[GTK][WPE] Improve detection of the web view main resource
https://bugs.webkit.org/show_bug.cgi?id=247177
Reviewed by Michael Catanzaro.
We currently assume that the first resource loaded for a web view in the
main frame is the main resource, but we can check the request requester
instead.
* Source/WebCore/loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::startLoadingMainResource): Set the requester before copying the request.
* Source/WebKit/UIProcess/API/glib/WebKitInjectedBundleClient.cpp:
* Source/WebKit/UIProcess/API/glib/WebKitWebResource.cpp:
(webkitWebResourceCreate):
(webkitWebResourceIsMainResource):
* Source/WebKit/UIProcess/API/glib/WebKitWebResourcePrivate.h:
* Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp:
(webkitWebViewResourceLoadStarted):
* Source/WebKit/UIProcess/API/glib/WebKitWebViewPrivate.h:
Canonical link: https://commits.webkit.org/256142@main
More information about the webkit-changes
mailing list