New issue
Advanced search Search tips

Issue 918189 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 3
Type: Bug



Sign in to add a comment

[iOS] Use C++14 lambda expressions to create safe WebKit blocks.

Project Member Reported by kkhorimoto@chromium.org, Dec 28

Issue description

WebKit uses move semantics made possible by C++14 lambda expressions to move CompletionHandlerCallCheckers into the scope of the completion blocks sent to the WKUIDelegate.  This is preferable to an ObjC-based solution since C++ allows greater certainty regarding when the object becomes out of scope and is deallocated.  ObjC wrapper objects offer similar functionality, but due to reference counting, we can't guarantee when an object will be deallocated.

This can be accomplished only when the chromium C++ style guide permits usage of this C++14 feature.
 

Sign in to add a comment