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

Issue 10868116: Pass result of blockage across content API when new tab blocked. (Closed)

Created:
8 years, 3 months ago by Tom Sepez
Modified:
8 years, 1 month ago
CC:
chromium-reviews, Avi (use Gerrit), mihaip-chromium-reviews_chromium.org, creis+watch_chromium.org, ajwong+watch_chromium.org, tfarina, jeremya+watch_chromium.org, dcheng, joi+watch-content_chromium.org, Aaron Boodman, groby+watch_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, gbillock+watch_chromium.org, smckay+watch_chromium.org, markusheintz
Visibility:
Public.

Description

Pass result of blockage across content API when new tab blocked. This change allows the proper blockage of foreground tabs created without user-gestures for rel=noreferrer links. BUG=118317 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155535

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Patch Set 7 : #

Total comments: 1

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -117 lines) Patch
M chrome/browser/background/background_contents_service.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/background/background_contents_service.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/component/web_contents_delegate_android/web_contents_delegate_android.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/component/web_contents_delegate_android/web_contents_delegate_android.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/debugger/devtools_window.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/debugger/devtools_window.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_host.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -4 lines 1 comment Download
M chrome/browser/notifications/balloon_host.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/notifications/balloon_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/tab_contents/background_contents.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/tab_contents/background_contents.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/blocked_content/blocked_content_container.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/blocked_content/blocked_content_container.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +16 lines, -8 lines 0 comments Download
M chrome/browser/ui/blocked_content/blocked_content_tab_helper.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/blocked_content/blocked_content_tab_helper.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +12 lines, -5 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_tabstrip.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_tabstrip.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +13 lines, -9 lines 0 comments Download
M chrome/browser/ui/cocoa/web_dialog_window_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/extensions/shell_window.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/extensions/shell_window.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/web_dialog_gtk.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/web_dialog_gtk.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/intents/web_intent_inline_disposition_delegate.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/panels/panel_host.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/external_tab_container_win.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/external_tab_container_win.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_ui_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/web_dialog_web_contents_delegate_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +23 lines, -24 lines 0 comments Download
M content/public/browser/web_contents.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -8 lines 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M ui/views/controls/webview/web_dialog_view.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/controls/webview/web_dialog_view.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -2 lines 0 comments Download
M ui/web_dialogs/web_dialog_web_contents_delegate.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M ui/web_dialogs/web_dialog_web_contents_delegate.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
Tom Sepez
Hi John, This patch isn't quite ready, but I wanted to pull you in early ...
8 years, 3 months ago (2012-08-27 22:00:10 UTC) #1
jam
content/public is reasonable, just a comment: https://codereview.chromium.org/10868116/diff/1/content/public/browser/web_contents.h File content/public/browser/web_contents.h (right): https://codereview.chromium.org/10868116/diff/1/content/public/browser/web_contents.h#newcode230 content/public/browser/web_contents.h:230: virtual bool AddNewContents(WebContents* ...
8 years, 3 months ago (2012-08-29 00:07:23 UTC) #2
Tom Sepez
Hi John, please re-review. Thanks.
8 years, 3 months ago (2012-09-04 19:03:56 UTC) #3
jam
https://codereview.chromium.org/10868116/diff/28016/chrome/browser/ui/views/external_tab_container_win.cc File chrome/browser/ui/views/external_tab_container_win.cc (right): https://codereview.chromium.org/10868116/diff/28016/chrome/browser/ui/views/external_tab_container_win.cc#newcode540 chrome/browser/ui/views/external_tab_container_win.cc:540: return false; can you explain this? I'm not sure ...
8 years, 3 months ago (2012-09-04 19:50:46 UTC) #4
Tom Sepez
John, Reverting CreateWebContents to type void removes the code on which you previously commented. Thanks, ...
8 years, 3 months ago (2012-09-04 20:46:16 UTC) #5
Tom Sepez
John, please re-re-review. Thanks.
8 years, 3 months ago (2012-09-05 00:37:30 UTC) #6
jam
lgtm with nit After looking at this change a few times, it seems that there's ...
8 years, 3 months ago (2012-09-05 06:12:14 UTC) #7
Tom Sepez
On 2012/09/05 06:12:14, John Abd-El-Malek wrote: > lgtm with nit > > After looking at ...
8 years, 3 months ago (2012-09-05 16:58:41 UTC) #8
jam
On Wed, Sep 5, 2012 at 9:58 AM, <tsepez@chromium.org> wrote: > On 2012/09/05 06:12:14, John ...
8 years, 3 months ago (2012-09-05 16:59:56 UTC) #9
Tom Sepez
It generally makes writing expressions containing the function easier, particularly if you're fond of writing ...
8 years, 3 months ago (2012-09-05 17:14:44 UTC) #10
jam
I highly doubt that performance here will be an issue. I personally think it would ...
8 years, 3 months ago (2012-09-05 17:38:30 UTC) #11
tsepez (do not use)
Clearly there is no performance issue in this case, I'm just in the habit of ...
8 years, 3 months ago (2012-09-05 17:43:41 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tsepez@chromium.org/10868116/24023
8 years, 3 months ago (2012-09-05 18:48:23 UTC) #13
commit-bot: I haz the power
Presubmit check for 10868116-24023 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 3 months ago (2012-09-05 18:48:43 UTC) #14
Tom Sepez
Ben, please review as owner for ui, ui/views. Thanks.
8 years, 3 months ago (2012-09-05 18:50:52 UTC) #15
Ben Goodger (Google)
ui lgtm, but for the record, I am similarly confused by the bool return. seems ...
8 years, 3 months ago (2012-09-06 21:19:24 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tsepez@chromium.org/10868116/24023
8 years, 3 months ago (2012-09-06 21:35:19 UTC) #17
jam
On 2012/09/06 21:19:24, Ben Goodger (Google) wrote: > ui lgtm, but for the record, I ...
8 years, 3 months ago (2012-09-06 21:42:56 UTC) #18
Tom Sepez
Will do.
8 years, 3 months ago (2012-09-06 22:05:24 UTC) #19
Tom Sepez
John, please take a look at this CL which uses output parameter.
8 years, 3 months ago (2012-09-07 00:35:02 UTC) #20
jam
lgtm, thanks
8 years, 3 months ago (2012-09-07 01:08:19 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tsepez@chromium.org/10868116/26122
8 years, 3 months ago (2012-09-07 19:19:48 UTC) #22
commit-bot: I haz the power
Change committed as 155535
8 years, 3 months ago (2012-09-07 23:44:03 UTC) #23
jochen (gone - plz use gerrit)
8 years, 1 month ago (2012-11-20 10:50:44 UTC) #24
https://chromiumcodereview.appspot.com/10868116/diff/26122/chrome/browser/ext...
File chrome/browser/extensions/extension_host.cc (left):

https://chromiumcodereview.appspot.com/10868116/diff/26122/chrome/browser/ext...
chrome/browser/extensions/extension_host.cc:614: return;
why did you delete this?

Powered by Google App Engine
This is Rietveld 408576698