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

Issue 691823002: Add WebContents source to methods in WebContentsDelegate (Closed)

Created:
6 years, 1 month ago by Mathias Hällman
Modified:
6 years, 1 month ago
CC:
chromium-reviews, tburkard+watch_chromium.org, nasko+codewatch_chromium.org, ajwong+watch_chromium.org, aandrey+blink_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, vsevik, jam, darin-cc_chromium.org, jkarlin+watch_chromium.org, devtools-reviews_chromium.org, chromium-apps-reviews_chromium.org, android-webview-reviews_chromium.org, creis+watch_chromium.org, timvolodine, gavinp+prer_chromium.org, paulirish+reviews_chromium.org, Michael van Ouwerkerk, mkwst+moarreviews-shell_chromium.org, jochen+watch_chromium.org, davidben+watch_chromium.org, riju_, yurys, tfarina, pfeldman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add WebContents source to methods in WebContentsDelegate The added parameter helps us avoid a potential timing-related security issue. The UI can be instructed to open a new tab and show a dialog roughly at the same time, and since it's handled asynchronously the dialog may end up in front of the new tab. Knowing what web contents issued the dialog would allow us to prevent that from happening. BUG=428793 Committed: https://crrev.com/72a5e46303c13d806475cd01aedfb1305fcde5d7 Cr-Commit-Position: refs/heads/master@{#304781}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -48 lines) Patch
M android_webview/native/aw_web_contents_delegate.h View 1 chunk +2 lines, -2 lines 0 comments Download
M android_webview/native/aw_web_contents_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M apps/custom_launcher_page_contents.h View 1 chunk +1 line, -1 line 0 comments Download
M apps/custom_launcher_page_contents.cc View 1 chunk +2 lines, -1 line 0 comments Download
M athena/content/web_activity.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/android/chrome_web_contents_delegate_android.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/chrome_web_contents_delegate_android.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/devtools/devtools_window.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/devtools/devtools_window.cc View 1 2 3 4 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/background_contents.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/background_contents.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/fast_unload_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/device_sensors/device_inertial_sensor_browsertest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/devtools/protocol/page_handler.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 2 chunks +8 lines, -10 lines 0 comments Download
M content/public/browser/web_contents_delegate.h View 2 chunks +3 lines, -2 lines 0 comments Download
M content/public/browser/web_contents_delegate.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M content/public/test/content_browser_test_utils.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/shell/browser/shell.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/shell/browser/shell.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M extensions/browser/app_window/app_window.h View 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/app_window/app_window.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M extensions/browser/extension_host.h View 1 chunk +2 lines, -1 line 0 comments Download
M extensions/browser/extension_host.cc View 1 chunk +2 lines, -1 line 0 comments Download
M extensions/browser/guest_view/web_view/web_view_guest.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M extensions/browser/guest_view/web_view/web_view_guest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 36 (11 generated)
Mathias Hällman
6 years, 1 month ago (2014-10-30 15:54:23 UTC) #2
Mike West
Can you give a little more explanation as to what you need this for? Both ...
6 years, 1 month ago (2014-10-31 14:45:11 UTC) #3
Mathias Hällman
On 2014/10/31 14:45:11, Mike West (OOO until 3rd) wrote: > Can you give a little ...
6 years, 1 month ago (2014-10-31 15:03:01 UTC) #4
Mathias Hällman
On 2014/10/31 15:03:01, Mathias Hällman wrote: > On 2014/10/31 14:45:11, Mike West (OOO until 3rd) ...
6 years, 1 month ago (2014-11-04 15:29:59 UTC) #5
Avi (use Gerrit)
BTW, philosophically, I don't have a problem adding the parameters.
6 years, 1 month ago (2014-11-04 16:50:35 UTC) #6
Mike West
On 2014/10/31 15:03:01, Mathias Hällman wrote: > First, my apologies for the two handfuls of ...
6 years, 1 month ago (2014-11-05 08:29:20 UTC) #7
Mathias Hällman
On 2014/11/05 08:29:20, Mike West wrote: > On 2014/10/31 15:03:01, Mathias Hällman wrote: > > ...
6 years, 1 month ago (2014-11-05 09:39:43 UTC) #8
Torne
android_webview LGTM
6 years, 1 month ago (2014-11-05 11:03:55 UTC) #10
hans
content/browser/device_sensors/ lgtm
6 years, 1 month ago (2014-11-05 11:23:22 UTC) #11
yurys
devtools - lgtm
6 years, 1 month ago (2014-11-05 13:11:00 UTC) #12
Avi (use Gerrit)
All of the files you asked me to review LGTM
6 years, 1 month ago (2014-11-05 16:43:54 UTC) #13
Yoyo Zhou
apps and extensions LGTM
6 years, 1 month ago (2014-11-05 19:40:04 UTC) #14
Mathias Hällman
On 2014/11/05 19:40:04, Yoyo Zhou wrote: > apps and extensions LGTM Trying some different reviewers ...
6 years, 1 month ago (2014-11-07 11:40:42 UTC) #16
Peter Kasting
LGTM
6 years, 1 month ago (2014-11-07 18:18:25 UTC) #17
davidben
chrome/browser/prerender/ lgtm https://codereview.chromium.org/691823002/diff/40001/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc (right): https://codereview.chromium.org/691823002/diff/40001/chrome/browser/prerender/prerender_manager.cc#newcode194 chrome/browser/prerender/prerender_manager.cc:194: bool ShouldSuppressDialogs(WebContents* source) override { Nit: May ...
6 years, 1 month ago (2014-11-07 19:08:26 UTC) #19
Paweł Hajdan Jr.
content/public/test LGTM
6 years, 1 month ago (2014-11-13 13:10:15 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/691823002/60001
6 years, 1 month ago (2014-11-13 13:21:49 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/27970)
6 years, 1 month ago (2014-11-13 13:38:34 UTC) #25
Mathias Hällman
On 2014/11/13 13:38:34, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 1 month ago (2014-11-18 07:51:51 UTC) #27
Ted C
On 2014/11/18 07:51:51, Mathias Hällman wrote: > On 2014/11/13 13:38:34, I haz the power (commit-bot) ...
6 years, 1 month ago (2014-11-18 18:06:07 UTC) #28
oshima
athena lgtm
6 years, 1 month ago (2014-11-18 21:32:18 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/691823002/80001
6 years, 1 month ago (2014-11-19 07:23:47 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/691823002/100001
6 years, 1 month ago (2014-11-19 07:28:02 UTC) #34
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years, 1 month ago (2014-11-19 08:19:09 UTC) #35
commit-bot: I haz the power
6 years, 1 month ago (2014-11-19 08:19:58 UTC) #36
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/72a5e46303c13d806475cd01aedfb1305fcde5d7
Cr-Commit-Position: refs/heads/master@{#304781}

Powered by Google App Engine
This is Rietveld 408576698