Title: [253707] trunk/Source/WebCore
- Revision
- 253707
- Author
- [email protected]
- Date
- 2019-12-18 12:17:03 -0800 (Wed, 18 Dec 2019)
Log Message
AppCache should request certificate info when loading resources
https://bugs.webkit.org/show_bug.cgi?id=205393
Reviewed by Anders Carlsson.
Covered by existing tests not crashing in Debug with newly added ASSERT.
* Modules/mediastream/UserMediaController.cpp:
(WebCore::isSecure):
ASSERT that certificate info is there.
* loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::responseReceived):
ASSERT that certificate info is there.
* loader/appcache/ApplicationCacheResourceLoader.cpp:
(WebCore::ApplicationCacheResourceLoader::create):
Request certificate info for all app cache resources.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (253706 => 253707)
--- trunk/Source/WebCore/ChangeLog 2019-12-18 20:06:19 UTC (rev 253706)
+++ trunk/Source/WebCore/ChangeLog 2019-12-18 20:17:03 UTC (rev 253707)
@@ -1,5 +1,24 @@
2019-12-18 youenn fablet <[email protected]>
+ AppCache should request certificate info when loading resources
+ https://bugs.webkit.org/show_bug.cgi?id=205393
+
+ Reviewed by Anders Carlsson.
+
+ Covered by existing tests not crashing in Debug with newly added ASSERT.
+
+ * Modules/mediastream/UserMediaController.cpp:
+ (WebCore::isSecure):
+ ASSERT that certificate info is there.
+ * loader/DocumentLoader.cpp:
+ (WebCore::DocumentLoader::responseReceived):
+ ASSERT that certificate info is there.
+ * loader/appcache/ApplicationCacheResourceLoader.cpp:
+ (WebCore::ApplicationCacheResourceLoader::create):
+ Request certificate info for all app cache resources.
+
+2019-12-18 youenn fablet <[email protected]>
+
Add support for Audio Capture in GPUProcess
https://bugs.webkit.org/show_bug.cgi?id=205056
Modified: trunk/Source/WebCore/Modules/mediastream/UserMediaController.cpp (253706 => 253707)
--- trunk/Source/WebCore/Modules/mediastream/UserMediaController.cpp 2019-12-18 20:06:19 UTC (rev 253706)
+++ trunk/Source/WebCore/Modules/mediastream/UserMediaController.cpp 2019-12-18 20:17:03 UTC (rev 253707)
@@ -64,6 +64,8 @@
static inline bool isSecure(DocumentLoader& documentLoader)
{
auto& response = documentLoader.response();
+ ASSERT(response.certificateInfo());
+
if (SecurityOrigin::isLocalHostOrLoopbackIPAddress(documentLoader.response().url().host()))
return true;
return LegacySchemeRegistry::shouldTreatURLSchemeAsSecure(response.url().protocol().toStringWithoutCopying())
Modified: trunk/Source/WebCore/loader/DocumentLoader.cpp (253706 => 253707)
--- trunk/Source/WebCore/loader/DocumentLoader.cpp 2019-12-18 20:06:19 UTC (rev 253706)
+++ trunk/Source/WebCore/loader/DocumentLoader.cpp 2019-12-18 20:17:03 UTC (rev 253707)
@@ -760,6 +760,7 @@
void DocumentLoader::responseReceived(const ResourceResponse& response, CompletionHandler<void()>&& completionHandler)
{
+ ASSERT(response.certificateInfo());
CompletionHandlerCallingScope completionHandlerCaller(WTFMove(completionHandler));
#if ENABLE(CONTENT_FILTERING)
Modified: trunk/Source/WebCore/loader/appcache/ApplicationCacheResourceLoader.cpp (253706 => 253707)
--- trunk/Source/WebCore/loader/appcache/ApplicationCacheResourceLoader.cpp 2019-12-18 20:06:19 UTC (rev 253706)
+++ trunk/Source/WebCore/loader/appcache/ApplicationCacheResourceLoader.cpp 2019-12-18 20:17:03 UTC (rev 253707)
@@ -36,6 +36,7 @@
options.storedCredentialsPolicy = StoredCredentialsPolicy::Use;
options.credentials = FetchOptions::Credentials::Include;
options.applicationCacheMode = ApplicationCacheMode::Bypass;
+ options.certificateInfoPolicy = CertificateInfoPolicy::IncludeCertificateInfo;
CachedResourceRequest cachedResourceRequest { WTFMove(request), options };
auto resource = loader.requestRawResource(WTFMove(cachedResourceRequest));
if (!resource.has_value()) {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes