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

Issue 2330013002: Save and restore state in the webview shell. (Closed)

Created:
4 years, 3 months ago by Tobias Sargeant
Modified:
4 years, 3 months ago
Reviewers:
timvolodine
CC:
chromium-reviews, android-webview-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Save and restore state in the webview shell. This exercises webview state save/restore, and also makes using the shell as a testing/demonstration tool easier, because the current URL is retained and reloaded when you switch webview providers. BUG= NOPRESUBMIT=true Committed: https://crrev.com/12092c50879312843eec3282f506d33f8385e969 Cr-Commit-Position: refs/heads/master@{#418825}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Restructure #

Total comments: 3

Patch Set 3 : hide keyboard, just to be safe #

Total comments: 2

Patch Set 4 : Comment reloading code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -0 lines) Patch
M android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java View 1 2 3 2 chunks +23 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (8 generated)
Tobias Sargeant
4 years, 3 months ago (2016-09-12 14:16:56 UTC) #2
timvolodine
https://codereview.chromium.org/2330013002/diff/1/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java File android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java (right): https://codereview.chromium.org/2330013002/diff/1/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java#newcode194 android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java:194: return; is it possible to just re-use the current ...
4 years, 3 months ago (2016-09-12 14:34:21 UTC) #3
Tobias Sargeant
https://codereview.chromium.org/2330013002/diff/1/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java File android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java (right): https://codereview.chromium.org/2330013002/diff/1/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java#newcode194 android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java:194: return; On 2016/09/12 14:34:21, timvolodine wrote: > is it ...
4 years, 3 months ago (2016-09-12 14:59:49 UTC) #4
timvolodine
https://codereview.chromium.org/2330013002/diff/1/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java File android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java (right): https://codereview.chromium.org/2330013002/diff/1/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java#newcode191 android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java:191: setUrlFail(false); this assumes the url did not fail previously.. ...
4 years, 3 months ago (2016-09-12 17:11:17 UTC) #5
timvolodine
On 2016/09/12 14:59:49, Tobias Sargeant wrote: > https://codereview.chromium.org/2330013002/diff/1/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java > File > android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java > (right): > ...
4 years, 3 months ago (2016-09-12 17:11:46 UTC) #6
Tobias Sargeant
https://codereview.chromium.org/2330013002/diff/1/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java File android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java (right): https://codereview.chromium.org/2330013002/diff/1/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java#newcode191 android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java:191: setUrlFail(false); On 2016/09/12 17:11:17, timvolodine wrote: > this assumes ...
4 years, 3 months ago (2016-09-12 21:13:23 UTC) #7
timvolodine
https://codereview.chromium.org/2330013002/diff/1/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java File android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java (right): https://codereview.chromium.org/2330013002/diff/1/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java#newcode191 android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java:191: setUrlFail(false); On 2016/09/12 21:13:23, Tobias Sargeant wrote: > On ...
4 years, 3 months ago (2016-09-13 12:58:02 UTC) #8
Tobias Sargeant
https://codereview.chromium.org/2330013002/diff/1/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java File android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java (right): https://codereview.chromium.org/2330013002/diff/1/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java#newcode191 android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java:191: setUrlFail(false); On 2016/09/13 12:58:02, timvolodine wrote: > On 2016/09/12 ...
4 years, 3 months ago (2016-09-13 13:24:53 UTC) #9
timvolodine
https://codereview.chromium.org/2330013002/diff/1/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java File android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java (right): https://codereview.chromium.org/2330013002/diff/1/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java#newcode191 android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java:191: setUrlFail(false); On 2016/09/13 13:24:53, Tobias Sargeant wrote: > On ...
4 years, 3 months ago (2016-09-13 14:49:05 UTC) #10
Tobias Sargeant
> It appears that without the hideKeyboard it will hang around for longer (which > ...
4 years, 3 months ago (2016-09-14 10:08:56 UTC) #11
timvolodine
https://codereview.chromium.org/2330013002/diff/40001/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java File android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java (right): https://codereview.chromium.org/2330013002/diff/40001/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java#newcode193 android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java:193: mWebView.reload(); nit: maybe add some comments here regarding why ...
4 years, 3 months ago (2016-09-14 11:40:47 UTC) #12
timvolodine
On 2016/09/14 10:08:56, Tobias Sargeant wrote: > > It appears that without the hideKeyboard it ...
4 years, 3 months ago (2016-09-14 11:42:11 UTC) #13
Tobias Sargeant
https://codereview.chromium.org/2330013002/diff/40001/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java File android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java (right): https://codereview.chromium.org/2330013002/diff/40001/android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java#newcode193 android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java:193: mWebView.reload(); On 2016/09/14 11:40:47, timvolodine wrote: > nit: maybe ...
4 years, 3 months ago (2016-09-14 12:03:53 UTC) #14
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/2330013002/60001
4 years, 3 months ago (2016-09-14 12:04:26 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/259170)
4 years, 3 months ago (2016-09-14 12:11:51 UTC) #19
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/2330013002/60001
4 years, 3 months ago (2016-09-15 10:20:40 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-15 10:21:45 UTC) #24
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 10:25:14 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/12092c50879312843eec3282f506d33f8385e969
Cr-Commit-Position: refs/heads/master@{#418825}

Powered by Google App Engine
This is Rietveld 408576698