Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(428)

Issue 2254553003: [ios] Fixed Resetting the page for unit tests. (Closed)

Created:
4 years, 4 months ago by Eugene But (OOO till 7-30)
Modified:
4 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -5 lines) Patch
M ios/web/public/test/web_test_with_web_state.mm View 1 2 chunks +1 line, -5 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Eugene But (OOO till 7-30)
I apologies, I did not notice this footgun in the code I was changing :(
4 years, 4 months ago (2016-08-17 14:49:41 UTC) #2
justincohen
lgtm
4 years, 4 months ago (2016-08-17 14:50:36 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2254553003/20001
4 years, 4 months ago (2016-08-17 14:50:55 UTC) #5
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-17 15:27:13 UTC) #6
commit-bot: I haz the power
4 years, 4 months ago (2016-08-17 15:29:21 UTC) #8
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c7232e643ef714095d145dd2587c89bb33968b85
Cr-Commit-Position: refs/heads/master@{#412535}

Powered by Google App Engine
This is Rietveld 408576698