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

Issue 883153002: Load web contents after tab is created. (Closed)

Created:
5 years, 10 months ago by Maria
Modified:
5 years, 10 months ago
Reviewers:
Ted C, jbudorick, gone, sky
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Load web contents after tab is created. In document mode, we used to start loading the web contents of a newly opened tab before the chrome tab object is ready. This would result in chrome intercept delegate not being initialized in time to figure out whether the loaded URL needs to be sent as an intent instead. This changes the order of operations to create the chrome tab first with the given web contents and only then initiate the load. BUG=432562 Committed: https://crrev.com/4c55f398def3214369aefa9f2f2e8f5940d3799d Cr-Commit-Position: refs/heads/master@{#313966}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comments #

Patch Set 3 : Fix gn build file #

Patch Set 4 : findbugs exception #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -14 lines) Patch
M build/android/findbugs_filter/findbugs_known_bugs.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/BUILD.gn View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeWebContentsDelegateAndroid.java View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/document/PendingDocumentData.java View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/android/chrome_web_contents_delegate_android.h View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_web_contents_delegate_android.cc View 1 2 chunks +14 lines, -11 lines 0 comments Download
M chrome/chrome.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +9 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_android.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_android.cc View 1 1 chunk +15 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java View 1 2 chunks +7 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content_public/browser/WebContents.java View 1 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (10 generated)
Maria
Looking for comments regarding the approach. There's still a known issue where we don't correctly ...
5 years, 10 months ago (2015-01-29 02:15:50 UTC) #2
gone
lgtm on my end. Would wait for Ted's input, though. https://codereview.chromium.org/883153002/diff/1/chrome/browser/android/chrome_web_contents_delegate_android.cc File chrome/browser/android/chrome_web_contents_delegate_android.cc (right): https://codereview.chromium.org/883153002/diff/1/chrome/browser/android/chrome_web_contents_delegate_android.cc#newcode355 ...
5 years, 10 months ago (2015-01-29 03:11:33 UTC) #3
Ted C
lgtm w/ a bit of name massaging https://codereview.chromium.org/883153002/diff/1/content/browser/web_contents/web_contents_android.cc File content/browser/web_contents/web_contents_android.cc (right): https://codereview.chromium.org/883153002/diff/1/content/browser/web_contents/web_contents_android.cc#newcode492 content/browser/web_contents/web_contents_android.cc:492: true /* ...
5 years, 10 months ago (2015-01-29 21:38:11 UTC) #4
Maria
Uploaded a new patch without the switch statement and with is_renderer_initiated passed as a parameter.
5 years, 10 months ago (2015-01-29 21:53:04 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/883153002/20001
5 years, 10 months ago (2015-01-29 23:11:52 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/39303)
5 years, 10 months ago (2015-01-29 23:18:03 UTC) #9
Maria
Scott, can you please approve for chrome.gyp OWNERS?
5 years, 10 months ago (2015-01-29 23:30:49 UTC) #11
sky
LGTM
5 years, 10 months ago (2015-01-29 23:47:34 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/883153002/20001
5 years, 10 months ago (2015-01-30 01:22:07 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/37527)
5 years, 10 months ago (2015-01-30 01:30:30 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/883153002/40001
5 years, 10 months ago (2015-01-30 01:48:10 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/42328)
5 years, 10 months ago (2015-01-30 02:40:44 UTC) #20
Maria
John, I had to add another findbugs exception for a field used downstream, pending further ...
5 years, 10 months ago (2015-01-30 18:56:54 UTC) #22
jbudorick
rslgtm for build/android/
5 years, 10 months ago (2015-01-30 18:58:11 UTC) #23
jbudorick
On 2015/01/30 18:58:11, jbudorick wrote: > rslgtm for build/android/ lgtm
5 years, 10 months ago (2015-01-30 18:58:18 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/883153002/60001
5 years, 10 months ago (2015-01-30 19:00:14 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 10 months ago (2015-01-30 20:01:53 UTC) #27
commit-bot: I haz the power
5 years, 10 months ago (2015-01-30 20:03:05 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4c55f398def3214369aefa9f2f2e8f5940d3799d
Cr-Commit-Position: refs/heads/master@{#313966}

Powered by Google App Engine
This is Rietveld 408576698