Bug 134327 - [iOS][WK2] Protect WKWebView's delayUpdateVisibleContentRects in case of reentry
Summary: [iOS][WK2] Protect WKWebView's delayUpdateVisibleContentRects in case of reentry
Status: RESOLVED LATER
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Benjamin Poulain
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-25 20:22 PDT by Benjamin Poulain
Modified: 2014-06-30 20:18 PDT (History)
7 users (show)

See Also:


Attachments
Patch (2.76 KB, patch)
2014-06-25 20:41 PDT, Benjamin Poulain
simon.fraser: review+
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-12 for mac-mountainlion-wk2 (521.03 KB, application/zip)
2014-06-25 22:48 PDT, Build Bot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Poulain 2014-06-25 20:22:45 PDT
[iOS][WK2] Protect WKWebView's delayUpdateVisibleContentRects in case of reentry
Comment 1 Benjamin Poulain 2014-06-25 20:41:43 PDT
Created attachment 233870 [details]
Patch
Comment 2 Simon Fraser (smfr) 2014-06-25 21:06:35 PDT
Comment on attachment 233870 [details]
Patch

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

> Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:188
> +    unsigned _delayUpdateVisibleContentRectsCounter;

int please to make underflow less devastating?

> Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:636
> +    --_delayUpdateVisibleContentRectsCounter;

Please assert that it's > 0

> Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:-731
> -    _delayUpdateVisibleContentRects = NO;

Set to 0 here?
Comment 3 Build Bot 2014-06-25 22:48:56 PDT
Comment on attachment 233870 [details]
Patch

Attachment 233870 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/6471168152305664

New failing tests:
media/W3C/audio/canPlayType/canPlayType_application_octet_stream_with_codecs_1.html
Comment 4 Build Bot 2014-06-25 22:48:59 PDT
Created attachment 233886 [details]
Archive of layout-test-results from webkit-ews-12 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-12  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 5 Benjamin Poulain 2014-06-30 20:18:00 PDT
I'll keep this out of the tree. We haven't discovered the case where this would be necessary and the boolean is safer than the counter (the side effect is too many updates)