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

Issue 924833003: [Android WebView] Synthesize a fake page loading event on page source modification (Closed)

Created:
5 years, 10 months ago by mnaganov (inactive)
Modified:
5 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android WebView] Synthesize a fake page loading event on page source modification When a script modifies page source of a non-committed page, we need to notify clients, so they can update the URL bar to avoid confusion. BUG=458569 Committed: https://crrev.com/e38bb6cdeb1170cb2cd7faae8507dc6c34c58c7d Cr-Commit-Position: refs/heads/master@{#318222}

Patch Set 1 #

Patch Set 2 : Added a unit test #

Patch Set 3 : Generate Java from InvalidateTypes enum #

Patch Set 4 : Fix bad path in BUILD.gn #

Patch Set 5 : Fixed android_aosp & rebased #

Total comments: 10

Patch Set 6 : Comments addressed #

Patch Set 7 : Addressed comment about using GetLastCommittedUrl #

Total comments: 2

Patch Set 8 : Removed extra space #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -37 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 4 5 6 7 2 chunks +18 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegate.java View 1 chunk +4 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java View 1 2 3 4 5 6 3 chunks +16 lines, -0 lines 0 comments Download
M android_webview/java_library_common.mk View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/PopupWindowTest.java View 1 7 chunks +51 lines, -23 lines 0 comments Download
M android_webview/libwebviewchromium.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/native/aw_web_contents_delegate.h View 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/native/aw_web_contents_delegate.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/Tab.java View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java View 1 2 3 4 5 2 chunks +3 lines, -10 lines 0 comments Download
M content/browser/web_contents/web_contents_android.h View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_android.cc View 1 2 3 4 5 6 2 chunks +15 lines, -0 lines 0 comments Download
M content/content.gyp View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M content/public/android/BUILD.gn View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java View 1 2 3 4 5 6 4 chunks +13 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content_public/browser/WebContents.java View 1 2 3 4 5 6 2 chunks +16 lines, -0 lines 0 comments Download
M content/public/browser/invalidate_type.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M net/test/android/javatests/src/org/chromium/net/test/util/TestWebServer.java View 1 5 chunks +25 lines, -2 lines 0 comments Download

Messages

Total messages: 31 (8 generated)
mnaganov (inactive)
The fix is quite simple and should not introduce any unnecessary calls of 'onPageFinished' and ...
5 years, 10 months ago (2015-02-16 17:07:08 UTC) #2
mnaganov (inactive)
On 2015/02/16 17:07:08, mnaganov (cr) wrote: > The fix is quite simple and should not ...
5 years, 10 months ago (2015-02-19 21:03:48 UTC) #3
mnaganov (inactive)
On 2015/02/16 17:07:08, mnaganov (cr) wrote: > The fix is quite simple and should not ...
5 years, 10 months ago (2015-02-19 21:03:48 UTC) #4
Torne
Sorry, I was distracted with too many things. This all looks pretty reasonable and the ...
5 years, 10 months ago (2015-02-20 17:15:46 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/924833003/60001
5 years, 10 months ago (2015-02-23 10:49:40 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/61539)
5 years, 10 months ago (2015-02-23 10:52:41 UTC) #9
mnaganov (inactive)
Need an OWNERs review: tedchoc@: Please look at android bits davidben@: Please look at general ...
5 years, 10 months ago (2015-02-23 11:49:40 UTC) #12
davidben
+creis who is probably a much better reviewer for things that involve HasAccessedInitialDocument and pending ...
5 years, 10 months ago (2015-02-23 20:06:44 UTC) #14
Ted C
lgtm https://codereview.chromium.org/924833003/diff/80001/content/browser/web_contents/web_contents_android.cc File content/browser/web_contents/web_contents_android.cc (right): https://codereview.chromium.org/924833003/diff/80001/content/browser/web_contents/web_contents_android.cc#newcode483 content/browser/web_contents/web_contents_android.cc:483: jboolean WebContentsAndroid::HasPageScriptAccessedInitialDocument( Exposing this is a layering violation ...
5 years, 10 months ago (2015-02-23 21:04:08 UTC) #15
Charlie Reis
Hmm, I'm worried about having two functionally different defenses for the same bug, depending on ...
5 years, 10 months ago (2015-02-23 21:28:05 UTC) #16
mnaganov (inactive)
tedchoc@: Thanks! creis@: Hi Charlie! I believe, there are not many differences in fact. Please ...
5 years, 10 months ago (2015-02-23 22:17:55 UTC) #17
mnaganov (inactive)
https://codereview.chromium.org/924833003/diff/80001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java File android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java (right): https://codereview.chromium.org/924833003/diff/80001/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java#newcode223 android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java:223: url = TextUtils.isEmpty(url) ? aboutBlank : url; On 2015/02/23 ...
5 years, 10 months ago (2015-02-24 11:28:42 UTC) #18
Charlie Reis
Thanks for checking. I tried to clarify my concern below. We may be able to ...
5 years, 10 months ago (2015-02-24 19:37:55 UTC) #19
mnaganov (inactive)
On 2015/02/24 19:37:55, Charlie Reis wrote: > Thanks for checking. I tried to clarify my ...
5 years, 10 months ago (2015-02-25 11:33:19 UTC) #20
Charlie Reis
On 2015/02/25 11:33:19, mnaganov (cr) wrote: > On 2015/02/24 19:37:55, Charlie Reis wrote: > > ...
5 years, 10 months ago (2015-02-25 18:27:18 UTC) #21
mnaganov (inactive)
On 2015/02/25 18:27:18, Charlie Reis wrote: > On 2015/02/25 11:33:19, mnaganov (cr) wrote: > > ...
5 years, 10 months ago (2015-02-25 20:53:56 UTC) #22
davidben
On 2015/02/25 20:53:56, mnaganov (cr) wrote: > davidben@: David, can you please approve now? Right, ...
5 years, 10 months ago (2015-02-25 20:56:32 UTC) #23
mnaganov (inactive)
https://codereview.chromium.org/924833003/diff/120001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/924833003/diff/120001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1250 android_webview/java/src/org/chromium/android_webview/AwContents.java:1250: String url = mWebContents.getLastCommittedUrl(); On 2015/02/25 18:27:18, Charlie Reis ...
5 years, 10 months ago (2015-02-26 09:53:25 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/924833003/140001
5 years, 10 months ago (2015-02-26 09:57:29 UTC) #27
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 10 months ago (2015-02-26 12:23:16 UTC) #28
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/e38bb6cdeb1170cb2cd7faae8507dc6c34c58c7d Cr-Commit-Position: refs/heads/master@{#318222}
5 years, 10 months ago (2015-02-26 12:24:07 UTC) #29
grt (UTC plus 2)
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/958933002/ by grt@chromium.org. ...
5 years, 10 months ago (2015-02-26 14:25:39 UTC) #30
mnaganov (inactive)
5 years, 10 months ago (2015-02-26 14:36:21 UTC) #31
Message was sent while issue was closed.
On 2015/02/26 14:25:39, grt wrote:
> A revert of this CL (patchset #8 id:140001) has been created in
> https://codereview.chromium.org/958933002/ by mailto:grt@chromium.org.
> 
> The reason for reverting is: Reverting to see if this caused
> AwContentsClientFullScreenTest#testPowerSaveBlockerIsTransferredToFullscreen
> failure here: http://crbug.com/462213..

Yeah, I was investigating this in the meantime -- it looks like the test that
has become flaky actually needs to be fixed, so I will reland an updated patch
later.

Powered by Google App Engine
This is Rietveld 408576698