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

Issue 1095913002: Fix window.open issue in Document mode on Android. (Closed)

Created:
5 years, 8 months ago by Maria
Modified:
5 years, 7 months ago
Reviewers:
Ted C, Fady Samuel, jam
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, 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

Fix window.open issue in Document mode on Android. Defers unblocking renderer's requests until the asynchronous activity and tab loading process is complete and we are ready to handle additional requests. Adds new android-specific API to resume the requests and web contents delegate API to allow the deferral for resuming renderer request handling. BUG=432562 Committed: https://crrev.com/44bdc473c520ad18b4d6dfee19c341f5b9d3a500 Cr-Commit-Position: refs/heads/master@{#327414}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments #

Patch Set 3 : Fix some whitespace issues #

Total comments: 4

Patch Set 4 : I no english speak #

Patch Set 5 : Add webContentsPaused boolean for tracking #

Patch Set 6 : Make web contents interface non-android specific #

Patch Set 7 : Typos #

Total comments: 1

Patch Set 8 : Add whitespace #

Patch Set 9 : Rebase #

Patch Set 10 : Add missing override macro #

Patch Set 11 : Browser Plugin Guest check #

Total comments: 2

Patch Set 12 : Add GuestViewBase delegate method #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -5 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/document/PendingDocumentData.java View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_web_contents_delegate_android.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/chrome_web_contents_delegate_android.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_android.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_android.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +10 lines, -5 lines 2 comments Download
M content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java View 2 chunks +6 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content_public/browser/WebContents.java View 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/browser/web_contents.h View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_delegate.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/browser/guest_view/guest_view_base.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/guest_view/guest_view_base.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (14 generated)
Maria
Hi John, I have a working solution for my issue, though it's not the approach ...
5 years, 8 months ago (2015-04-18 01:30:34 UTC) #2
jam
lgtm https://codereview.chromium.org/1095913002/diff/1/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/1095913002/diff/1/content/browser/web_contents/web_contents_impl.cc#newcode1717 content/browser/web_contents/web_contents_impl.cc:1717: if (delegate->ShouldResumeRequestsForCreatedWindow()) nit: instead of calling the line ...
5 years, 8 months ago (2015-04-20 16:05:41 UTC) #3
Maria
I have a question on the second comment, let me know what you think. https://codereview.chromium.org/1095913002/diff/1/content/browser/web_contents/web_contents_impl.cc ...
5 years, 8 months ago (2015-04-20 23:40:07 UTC) #4
Maria
Ted, can you take a look for chrome/browser/android OWNERS?
5 years, 8 months ago (2015-04-22 21:11:39 UTC) #6
Ted C
owners lgtm (w/ a could comment nits) https://codereview.chromium.org/1095913002/diff/40001/content/public/browser/web_contents_delegate.h File content/public/browser/web_contents_delegate.h (right): https://codereview.chromium.org/1095913002/diff/40001/content/public/browser/web_contents_delegate.h#newcode218 content/public/browser/web_contents_delegate.h:218: // Returns ...
5 years, 8 months ago (2015-04-22 21:15:28 UTC) #7
Maria
Made changes based on discussion with jam. PTAL. https://codereview.chromium.org/1095913002/diff/40001/content/public/browser/web_contents_delegate.h File content/public/browser/web_contents_delegate.h (right): https://codereview.chromium.org/1095913002/diff/40001/content/public/browser/web_contents_delegate.h#newcode218 content/public/browser/web_contents_delegate.h:218: // ...
5 years, 8 months ago (2015-04-23 21:02:33 UTC) #8
jam
lgtm https://codereview.chromium.org/1095913002/diff/120001/content/public/browser/web_contents.h File content/public/browser/web_contents.h (right): https://codereview.chromium.org/1095913002/diff/120001/content/public/browser/web_contents.h#newcode637 content/public/browser/web_contents.h:637: #if defined(OS_ANDROID) nit: blank line above
5 years, 8 months ago (2015-04-23 21:39:06 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1095913002/140001
5 years, 8 months ago (2015-04-23 21:47:12 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/46004) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 8 months ago (2015-04-23 21:52:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1095913002/160001
5 years, 8 months ago (2015-04-23 22:56:29 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/65007)
5 years, 8 months ago (2015-04-23 23:14:47 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1095913002/180001
5 years, 8 months ago (2015-04-24 01:21:32 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/10843)
5 years, 8 months ago (2015-04-24 03:25:39 UTC) #24
Maria
+ Fady for a BrowserPluginGuest question below. https://codereview.chromium.org/1095913002/diff/190001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/1095913002/diff/190001/content/browser/web_contents/web_contents_impl.cc#newcode1705 content/browser/web_contents/web_contents_impl.cc:1705: if (!BrowserPluginGuest::IsGuest(contents) ...
5 years, 8 months ago (2015-04-25 01:40:29 UTC) #26
Fady Samuel
https://codereview.chromium.org/1095913002/diff/190001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/1095913002/diff/190001/content/browser/web_contents/web_contents_impl.cc#newcode1705 content/browser/web_contents/web_contents_impl.cc:1705: if (!BrowserPluginGuest::IsGuest(contents) && On 2015/04/25 01:40:28, Maria wrote: > ...
5 years, 7 months ago (2015-04-28 19:50:23 UTC) #27
Maria
Added delegate method to guest_view_base. Did not mark it final because I think there may ...
5 years, 7 months ago (2015-04-28 22:53:42 UTC) #28
Fady Samuel
https://codereview.chromium.org/1095913002/diff/210001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/1095913002/diff/210001/content/browser/web_contents/web_contents_impl.cc#newcode1788 content/browser/web_contents/web_contents_impl.cc:1788: if (BrowserPluginGuest::IsGuest(new_contents)) Is this code necessary then?
5 years, 7 months ago (2015-04-28 22:57:04 UTC) #29
Fady Samuel
https://codereview.chromium.org/1095913002/diff/210001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/1095913002/diff/210001/content/browser/web_contents/web_contents_impl.cc#newcode1788 content/browser/web_contents/web_contents_impl.cc:1788: if (BrowserPluginGuest::IsGuest(new_contents)) On 2015/04/28 22:57:04, Fady Samuel wrote: > ...
5 years, 7 months ago (2015-04-28 23:10:57 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1095913002/210001
5 years, 7 months ago (2015-04-28 23:12:17 UTC) #33
commit-bot: I haz the power
Committed patchset #12 (id:210001)
5 years, 7 months ago (2015-04-29 01:56:03 UTC) #34
commit-bot: I haz the power
5 years, 7 months ago (2015-04-29 01:56:48 UTC) #35
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/44bdc473c520ad18b4d6dfee19c341f5b9d3a500
Cr-Commit-Position: refs/heads/master@{#327414}

Powered by Google App Engine
This is Rietveld 408576698