Bug 141545

Summary: Crash removing RemoteLayerTreeDisplayRefreshMonitor from the drawing area's map
Product: WebKit Reporter: Tim Horton <thorton>
Component: New BugsAssignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, mitz, sam, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch simon.fraser: review+

Description Tim Horton 2015-02-12 17:21:11 PST
Crash removing RemoteLayerTreeDisplayRefreshMonitor from the drawing area's map
Comment 1 Tim Horton 2015-02-12 17:21:26 PST
Created attachment 246494 [details]
Patch
Comment 2 Simon Fraser (smfr) 2015-02-12 17:31:32 PST
Comment on attachment 246494 [details]
Patch

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

r- for a test.

> Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:87
> +    // UnsignedWithZeroKeyHashTraits, which uses uint32_t::max and max - 1 as special values in that case.
> +    webPage.windowScreenDidChange(std::numeric_limits<uint32_t>::max() - 2 - webPage.pageID());

Please remove the -2 and simplify the comment.
Comment 3 Tim Horton 2015-02-12 19:47:25 PST
I'm not sure it's possible to write a test right now, because rAF doesn't seem to work in the hacked up WKViewIOS-based WKTR. I'll try to write one on Mac, but nobody runs the tests with --remote-layer-tree yet.
Comment 4 Simon Fraser (smfr) 2015-02-12 20:45:55 PST
Comment on attachment 246494 [details]
Patch

OK
Comment 5 Tim Horton 2015-02-12 22:48:32 PST
http://trac.webkit.org/changeset/180031