Chromium Code Reviews
DescriptionFix a crash bug on deallocating CWVWebView.
The cause of the bug was that CWVWebView._configuration was deallocated
before CWVWebView._webState, while the order must be opposite.
I couldn't find a clear documentation of the order of deallocation of
fields, but looks like it's the reverse order of the field definitions
(the same as in C++), while it assumes implicitly defined fields (by
@synthesize) are defined after explicitly defined fields.
The fix here is to define both fields explicitly in |_configuration| ->
|_webState| order so that they are deallocated in |_webState| ->
|_configuration| order.
BUG=712556
Review-Url: https://codereview.chromium.org/2826663002
Cr-Commit-Position: refs/heads/master@{#465465}
Committed: https://chromium.googlesource.com/chromium/src/+/068120a076d669c081f8c77cc0eccacaac650cb5
Patch Set 1 #
Messages
Total messages: 9 (5 generated)
|
|||||||||||||||||||