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

Issue 1405333005: Defer loads on WebView popup windows until webcontents delegate attached (Closed)

Created:
5 years, 1 month ago by gsennton
Modified:
5 years, 1 month ago
Reviewers:
boliu
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, android-webview-reviews_chromium.org, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Defer loads on WebView popup windows until webcontents delegate attached In WebView we initalize popup windows asynchronously so loading a url synchronously can result in it being loaded before the WebView sets its webcontentsdelegate. BUG=548316, 542548 Committed: https://crrev.com/f9205b6fc8434ff6e6ee1a66fa682668d01f9a64 Cr-Commit-Position: refs/heads/master@{#357127}

Patch Set 1 #

Patch Set 2 : Remove unnecessary change to content/. #

Total comments: 1

Patch Set 3 : Move request resuming to receivePopupContents. #

Total comments: 2

Patch Set 4 : Fixed nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -0 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M android_webview/native/aw_web_contents_delegate.h View 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/native/aw_web_contents_delegate.cc View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
gsennton
https://codereview.chromium.org/1405333005/diff/20001/android_webview/native/aw_contents.cc File android_webview/native/aw_contents.cc (right): https://codereview.chromium.org/1405333005/diff/20001/android_webview/native/aw_contents.cc#newcode251 android_webview/native/aw_contents.cc:251: web_contents_->ForEachFrame(base::Bind(&OnIoThreadClientReady)); Not sure whether ResumeLoadingCreatedWebContents should be called before ...
5 years, 1 month ago (2015-10-30 15:02:43 UTC) #2
boliu
oh nice, didn't know it was this easy, but let's sort through the failures first
5 years, 1 month ago (2015-10-30 15:27:15 UTC) #3
gsennton
Yippie, ptal :)
5 years, 1 month ago (2015-10-30 16:06:38 UTC) #4
boliu
Wait.. we don't set the WebContentsDelegate until SetJavaPeers. So how does the delegate prevent the ...
5 years, 1 month ago (2015-10-30 16:17:13 UTC) #5
gsennton
If I understand this correctly it is the delegate of the original webcontents that determines ...
5 years, 1 month ago (2015-10-30 16:27:22 UTC) #6
boliu
On 2015/10/30 16:27:22, gsennton wrote: > If I understand this correctly it is the delegate ...
5 years, 1 month ago (2015-10-30 16:29:25 UTC) #7
gsennton
On 2015/10/30 16:29:25, boliu wrote: > On 2015/10/30 16:27:22, gsennton wrote: > > If I ...
5 years, 1 month ago (2015-10-30 16:32:53 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1405333005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1405333005/60001
5 years, 1 month ago (2015-10-30 16:34:47 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 1 month ago (2015-10-30 16:57:10 UTC) #12
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/f9205b6fc8434ff6e6ee1a66fa682668d01f9a64 Cr-Commit-Position: refs/heads/master@{#357127}
5 years, 1 month ago (2015-10-30 16:58:20 UTC) #13
sgurun-gerrit only
5 years, 1 month ago (2015-10-30 17:52:30 UTC) #14
Message was sent while issue was closed.
On 2015/10/30 16:58:20, commit-bot: I haz the power wrote:
> Patchset 4 (id:??) landed as
> https://crrev.com/f9205b6fc8434ff6e6ee1a66fa682668d01f9a64
> Cr-Commit-Position: refs/heads/master@{#357127}

two bugs fixed with one simple change! bravo!

Powered by Google App Engine
This is Rietveld 408576698