Description[ios] Fixed Resetting the page for unit tests.
If |inner_html| is nil then comparing location with NSNotFound will
return YES. In Objective-C rangeOfString: must always compare length
with 0 instead because calling methods on nil return 0.
This bug was not exposed before because JS execution API could never
return nil and rangeOfString: worked correctly on empty strings.
BUG=637819
Committed: https://crrev.com/c7232e643ef714095d145dd2587c89bb33968b85
Cr-Commit-Position: refs/heads/master@{#412535}
Patch Set 1 #Patch Set 2 : Removed DCHECK #Messages
Total messages: 8 (3 generated)
|