Bug 205869

Summary: Reformat WebFrameLoaderClient logging
Product: WebKit Reporter: Keith Rollin <krollin>
Component: WebKit Misc.Assignee: Keith Rollin <krollin>
Severity: Normal CC: bfulgham, cdumez, commit-queue, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=205679
Description Flags
Patch none

Description Keith Rollin 2020-01-07 10:35:54 PST
Update the format used by WebFrameLoaderClient in its RELEASE_LOG logging. Use the format used by WebPageProxy and NetworkResourceLoader, which is generally of the form:

    <object-address> - [<values that help thread together operations>] <class>::<method>: <message and other useful values>

So, for example:

    0x4a1d7c310 - WebFrameLoaderClient::dispatchDidReachLayoutMilestone: dispatching didCompletePageTransition, page = 0x7f83ba009208


    0x4a1d7c310 - [webFrame=0x7ff703f03b68, webFrameID=3, webPage=0x7ff704831808, webPageID=15] WebFrameLoaderClient::dispatchDidReachLayoutMilestone: dispatching didCompletePageTransition
Comment 1 Radar WebKit Bug Importer 2020-01-07 10:36:09 PST
Comment 2 Keith Rollin 2020-01-07 10:38:19 PST
Created attachment 386992 [details]
Comment 3 Brent Fulgham 2020-01-07 11:54:28 PST
Comment on attachment 386992 [details]

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


> Source/WebKit/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:339
> +        WEBFRAMELOADERCLIENT_RELEASE_LOG_FAULT(Loading, "dispatchDidReceiveServerRedirectForProvisionalLoad: Called with no provisional DocumentLoader (frameState=%i, stateForDebugging=%i)", m_frame->coreFrame()->loader().state(), m_frame->coreFrame()->loader().stateMachine().stateForDebugging());

This seems a little wordy, but I can't think of a better naming scheme.
Comment 4 WebKit Commit Bot 2020-01-07 12:39:00 PST
Comment on attachment 386992 [details]

Clearing flags on attachment: 386992

Committed r254147: <https://trac.webkit.org/changeset/254147>
Comment 5 WebKit Commit Bot 2020-01-07 12:39:02 PST
All reviewed patches have been landed.  Closing bug.