Bug 183679

Summary: WebKit.RestoreSessionStateContainingScrollRestorationDefault API test is failing with async policy delegates
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebCore Misc.Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, commit-queue, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 180568    
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch none

Description Chris Dumez 2018-03-15 14:45:59 PDT
WebKit.RestoreSessionStateContainingScrollRestorationDefault API test is failing with async policy delegates.
Comment 1 Chris Dumez 2018-03-15 15:06:03 PDT
Created attachment 335890 [details]
Patch
Comment 2 Chris Dumez 2018-03-15 16:45:57 PDT
Created attachment 335910 [details]
Patch
Comment 3 Alex Christensen 2018-03-16 08:28:51 PDT
Comment on attachment 335910 [details]
Patch

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

> Source/WebCore/loader/cache/CachedRawResource.cpp:161
> +        auto responseProcessedHandler = [this, protectedThis = CachedResourceHandle<CachedRawResource>(this), client] {

To make MSVC happy, replace "protectedThis = CachedResourceHandle<CachedRawResource>(this)" with "protectedThis = WTFMove(protectedThis)".  MSVC thinks "this" refers to the containing lambda sometimes.
Comment 4 Chris Dumez 2018-03-16 08:51:22 PDT
Created attachment 335939 [details]
Patch
Comment 5 Chris Dumez 2018-03-16 09:54:32 PDT
Created attachment 335945 [details]
Patch
Comment 6 Chris Dumez 2018-03-16 11:33:53 PDT
Comment on attachment 335945 [details]
Patch

Clearing flags on attachment: 335945

Committed r229675: <https://trac.webkit.org/changeset/229675>
Comment 7 Chris Dumez 2018-03-16 11:33:54 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2018-03-16 11:34:24 PDT
<rdar://problem/38552016>