Bug 187404

Summary: Check that LayerTreeHost was created before use
Product: WebKit Reporter: Stephan Szabo <stephan.szabo>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: Basuke.Suzuki, cgarcia, commit-queue, Hironori.Fujii, mcatanzaro, ross.kirsling, webkit-bug-importer, zan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Stephan Szabo 2018-07-06 13:01:48 PDT
Check that LayerTreeHost was created before use
Comment 1 Stephan Szabo 2018-07-06 13:03:39 PDT
Created attachment 344443 [details]
Patch
Comment 2 Stephan Szabo 2018-07-06 13:05:21 PDT
I'm not sure if this is the best way to handle this, but while working on web inspector for wincairo non-legacy, we hit crashes just after this point because LayerTreeHost::create returns nullptr if not USE(COORDINATED_GRAPHICS_THREADED) but this code acts as if it will always get one.
Comment 3 Fujii Hironori 2018-07-08 22:00:28 PDT
I think Windows WK2 MiniBrowser should disable AC by using WKPreferencesSetAcceleratedDrawingEnabled until AC is supported.
Comment 4 Fujii Hironori 2018-07-08 22:12:10 PDT
Ah. Your primary aim is the web inspector. IIRC, the web inspector is using AC to paint element highlights.
Comment 5 Fujii Hironori 2018-07-09 01:59:53 PDT
Stephan, what will happen in AC mode pages after applying your change? All becomes blank pages instead of having crash?
Comment 6 WebKit Commit Bot 2018-07-09 11:21:08 PDT
Comment on attachment 344443 [details]
Patch

Clearing flags on attachment: 344443

Committed r233647: <https://trac.webkit.org/changeset/233647>
Comment 7 WebKit Commit Bot 2018-07-09 11:21:10 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2018-07-09 11:27:22 PDT
<rdar://problem/41981386>
Comment 9 Fujii Hironori 2018-07-09 20:06:25 PDT
Bug 187503 – [Win][MiniBrowser] Disable accelerated compositing until it is supported