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

Issue 2782713002: Correct UIApplicationState check for sad tab test. (Closed)

Created:
3 years, 8 months ago by justincohen
Modified:
3 years, 8 months ago
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, marq+watch_chromium.org, sdefresne+watch_chromium.org, pink (ping after 24hrs)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Correct UIApplicationState check for sad tab test. Checking for the backgroundState isn't enough -- the app can be in the inactive state. Instead, just check for !active. BUG=701583 Review-Url: https://codereview.chromium.org/2782713002 Cr-Commit-Position: refs/heads/master@{#461453} Committed: https://chromium.googlesource.com/chromium/src/+/e888fae6c93c60d14163109930ade47a0fec644a

Patch Set 1 #

Total comments: 2

Patch Set 2 : Nit applicationIsNotActive #

Patch Set 3 : Use whitelist instead of blacklist #

Patch Set 4 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -7 lines) Patch
M ios/chrome/browser/tabs/tab.mm View 1 2 3 5 chunks +12 lines, -7 lines 0 comments Download

Messages

Total messages: 25 (15 generated)
justincohen
PTAL!
3 years, 8 months ago (2017-03-28 20:04:06 UTC) #3
gchatz
On 2017/03/28 20:04:06, justincohen wrote: > PTAL! lgtm
3 years, 8 months ago (2017-03-28 22:59:09 UTC) #4
pkl (ping after 24h if needed)
LGTM. I don't think the code has changed, so iOS 10 must have changed the ...
3 years, 8 months ago (2017-03-29 14:28:01 UTC) #6
rohitrao (ping after 24h)
Do we auto-reload if we don't show a sad tab? I'm worried about using a ...
3 years, 8 months ago (2017-03-29 14:36:59 UTC) #7
justincohen
rohitrao@ Re: crashes on load, it depends on what UIApplicationState is. If the crash happens ...
3 years, 8 months ago (2017-03-29 15:17:12 UTC) #8
justincohen
pklpkl@ I suspect this never worked correctly during the inactive state. I'd guess com.apple.WebKit.WebContent is ...
3 years, 8 months ago (2017-03-29 15:23:37 UTC) #10
justincohen
rohitrao@ ptal, updated to whitelist.
3 years, 8 months ago (2017-04-03 15:40:55 UTC) #14
rohitrao (ping after 24h)
LGTM We should test to see what happens when a tab dies in slideover mode. ...
3 years, 8 months ago (2017-04-03 16:07:35 UTC) #17
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/2782713002/60001
3 years, 8 months ago (2017-04-03 16:40:01 UTC) #22
commit-bot: I haz the power
3 years, 8 months ago (2017-04-03 16:47:59 UTC) #25
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/e888fae6c93c60d14163109930ad...

Powered by Google App Engine
This is Rietveld 408576698