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

Issue 239143009: Disallow top-level navigation in gaia iframe (Closed)

Created:
6 years, 8 months ago by guohui
Modified:
6 years, 8 months ago
CC:
chromium-reviews, arv+watch_chromium.org
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : allow-same-origin #

Patch Set 3 : adds browsertest #

Total comments: 6

Patch Set 4 : real test #

Patch Set 5 : fix broken cros bot? #

Patch Set 6 : undo cros change #

Total comments: 3

Patch Set 7 : fix racing #

Patch Set 8 : allows popup #

Patch Set 9 : allows pointer lock api #

Patch Set 10 : disable flaky test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -1 line) Patch
M chrome/browser/resources/gaia_auth/main.html View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/resources/inline_login/inline_login.js View 1 2 3 4 5 6 2 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +44 lines, -0 lines 0 comments Download
A chrome/test/data/login/deframe.html View 1 2 3 4 5 6 7 8 9 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
guohui
6 years, 8 months ago (2014-04-16 22:02:45 UTC) #1
Roger Tawa OOO till Jul 10th
Lgtm Thanks, Roger On Apr 16, 2014 6:02 PM, <guohui@chromium.org> wrote: > Reviewers: Charlie Reis, ...
6 years, 8 months ago (2014-04-16 22:12:24 UTC) #2
Charlie Reis
LGTM for preventing framebusting, though please also wait for Daniel to confirm.
6 years, 8 months ago (2014-04-16 22:21:51 UTC) #3
dcheng
This looks right, but how hard would it be to add a browser test for ...
6 years, 8 months ago (2014-04-16 22:23:17 UTC) #4
Charlie Reis
On 2014/04/16 22:23:17, dcheng wrote: > This looks right, but how hard would it be ...
6 years, 8 months ago (2014-04-16 22:26:17 UTC) #5
xiyuan
Seems that "allow-same-origin" is needed for Cros login. Uncaught SecurityError: Failed to set the 'cookie' ...
6 years, 8 months ago (2014-04-16 22:35:24 UTC) #6
guohui
thanks a lot xiyuan, fixed in the patch 2 as suggested. will add test tmrw ...
6 years, 8 months ago (2014-04-16 22:46:00 UTC) #7
xiyuan
lgtm
6 years, 8 months ago (2014-04-16 22:59:11 UTC) #8
guohui
Added browsertest. Please take another look. Thanks!
6 years, 8 months ago (2014-04-17 00:30:20 UTC) #9
xiyuan
https://codereview.chromium.org/239143009/diff/80001/chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc File chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc (right): https://codereview.chromium.org/239143009/diff/80001/chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc#newcode178 chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc:178: ui_test_utils::NavigateToURL(browser(), url); NavigateToURL waits for one LOAD_STOP notification. Would ...
6 years, 8 months ago (2014-04-17 01:15:29 UTC) #10
Charlie Reis
Hmm, this test doesn't fail when the fix is removed, at least on my local ...
6 years, 8 months ago (2014-04-17 01:20:19 UTC) #11
guohui
thanks charlie for catching it. It did fail without fix on my machine once, but ...
6 years, 8 months ago (2014-04-17 12:43:25 UTC) #12
guohui
in patch 5, i made a fix for the broken cros bot which requires slight ...
6 years, 8 months ago (2014-04-17 14:44:50 UTC) #13
xiyuan
https://codereview.chromium.org/239143009/diff/180001/chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc File chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc (right): https://codereview.chromium.org/239143009/diff/180001/chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc#newcode142 chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc:142: ASSERT_TRUE(message_queue.WaitForMessage(&message)); This is could timeout when 'ready' event is ...
6 years, 8 months ago (2014-04-17 15:04:15 UTC) #14
guohui
https://codereview.chromium.org/239143009/diff/180001/chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc File chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc (right): https://codereview.chromium.org/239143009/diff/180001/chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc#newcode142 chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc:142: ASSERT_TRUE(message_queue.WaitForMessage(&message)); On 2014/04/17 15:04:15, xiyuan (OOO Apr 17-18) wrote: ...
6 years, 8 months ago (2014-04-17 15:08:30 UTC) #15
guohui
https://codereview.chromium.org/239143009/diff/180001/chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc File chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc (right): https://codereview.chromium.org/239143009/diff/180001/chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc#newcode142 chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc:142: ASSERT_TRUE(message_queue.WaitForMessage(&message)); On 2014/04/17 15:08:31, guohui wrote: > On 2014/04/17 ...
6 years, 8 months ago (2014-04-17 15:28:48 UTC) #16
xiyuan
LGTM!
6 years, 8 months ago (2014-04-17 15:35:35 UTC) #17
Charlie Reis
Thanks for updating the test. LGTM
6 years, 8 months ago (2014-04-17 16:51:04 UTC) #18
guohui
The CQ bit was checked by guohui@chromium.org
6 years, 8 months ago (2014-04-17 17:46:35 UTC) #19
guohui
The CQ bit was unchecked by guohui@chromium.org
6 years, 8 months ago (2014-04-17 17:46:40 UTC) #20
guohui
The CQ bit was checked by guohui@chromium.org
6 years, 8 months ago (2014-04-17 17:46:45 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/guohui@chromium.org/239143009/220001
6 years, 8 months ago (2014-04-17 17:47:39 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-17 19:00:35 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_x64_rel
6 years, 8 months ago (2014-04-17 19:00:36 UTC) #24
guohui
The CQ bit was checked by guohui@chromium.org
6 years, 8 months ago (2014-04-17 19:01:18 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/guohui@chromium.org/239143009/220001
6 years, 8 months ago (2014-04-17 19:02:27 UTC) #26
guohui
The CQ bit was checked by guohui@chromium.org
6 years, 8 months ago (2014-04-17 19:53:43 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/guohui@chromium.org/239143009/240001
6 years, 8 months ago (2014-04-17 19:54:10 UTC) #28
commit-bot: I haz the power
Change committed as 264672
6 years, 8 months ago (2014-04-17 23:42:40 UTC) #29
guohui
The CQ bit was checked by guohui@chromium.org
6 years, 8 months ago (2014-04-18 01:51:46 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/guohui@chromium.org/239143009/280001
6 years, 8 months ago (2014-04-18 01:52:28 UTC) #31
commit-bot: I haz the power
6 years, 8 months ago (2014-04-18 10:07:24 UTC) #32
Message was sent while issue was closed.
Change committed as 264758

Powered by Google App Engine
This is Rietveld 408576698