Bug 219771

Summary: Make MixedContentChecker stateless
Product: WebKit Reporter: Rob Buis <rbuis>
Component: Page LoadingAssignee: Rob Buis <rbuis>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, beidson, cdumez, changseok, esprehn+autocc, ews-watchlist, gyuyoung.kim, japhet, mifenton, toyoshim, webkit-bug-importer, yutak
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Rob Buis 2020-12-11 01:25:41 PST
Make MixedContentChecker stateless.
Comment 1 Rob Buis 2020-12-11 01:27:21 PST
Created attachment 415978 [details]
Patch
Comment 2 Rob Buis 2020-12-13 09:07:56 PST
Created attachment 416120 [details]
Patch
Comment 3 Alex Christensen 2020-12-16 12:47:44 PST
Comment on attachment 416120 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=416120&action=review

> Source/WebCore/Modules/websockets/WorkerThreadableWebSocketChannel.cpp:413
>          if (document.frame()) {

if (auto* frame = document.frame())

> Source/WebCore/loader/DocumentThreadableLoader.cpp:593
>      if (m_document.frame()) {

if (auto* frame = m_document.frame())

> Source/WebCore/loader/MixedContentChecker.cpp:59
> +    frame.document()->addConsoleMessage(MessageSource::Security, MessageLevel::Warning, message);

Let's null check the document just because we can.

> Source/WebCore/loader/MixedContentChecker.h:-69
> -    Frame& m_frame;

Nice.
Comment 4 Rob Buis 2020-12-17 00:38:07 PST
Created attachment 416401 [details]
Patch
Comment 5 EWS 2020-12-17 03:14:23 PST
Committed r270931: <https://trac.webkit.org/changeset/270931>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 416401 [details].
Comment 6 Radar WebKit Bug Importer 2020-12-17 03:15:45 PST
<rdar://problem/72420479>