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

Issue 301163006: Add schedulePageBlock() to navigation scheduler (Closed)

Created:
6 years, 6 months ago by Tom Sepez
Modified:
6 years, 5 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, dglazkov+blink, gavinp+loader_chromium.org
Visibility:
Public.

Description

To allow view-source of pages fully blocked by XSSAuditor, we need to create a new back/forward entry for the blocked page instead of replacing the current one (which is the normal behaviour implemented by the existing code). This preserves the entry for the page which triggered the block, and we can later base the view-source page on its contents. We can't simply pass false to the existing code to get this behaviour, as other logic modifies this value and we don't get the desired result. This is blocking the Chromium CL at https://codereview.chromium.org/304313003 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178194

Patch Set 1 #

Total comments: 1

Patch Set 2 : Revive. #

Patch Set 3 : Add tests #

Patch Set 4 : message on window open blocked. #

Patch Set 5 : Fix omission. #

Total comments: 4

Patch Set 6 : use urlWithUniqueSecurityOrigin(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -1 line) Patch
A LayoutTests/http/tests/security/xssAuditor/window-open-block-mode.html View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/security/xssAuditor/window-open-block-mode-expected.txt View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M Source/core/html/parser/XSSAuditorDelegate.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/NavigationScheduler.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/loader/NavigationScheduler.cpp View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
Tom Sepez
Nate, here's a patch for discussion purposes. I've been scratching my head over this one ...
6 years, 6 months ago (2014-05-30 22:48:17 UTC) #1
Nate Chapin
A few concerns, which you've probably thought about more than I have: * It feels ...
6 years, 6 months ago (2014-05-30 23:04:36 UTC) #2
Tom Sepez
On 2014/05/30 23:04:36, Nate Chapin wrote: > A few concerns, which you've probably thought about ...
6 years, 6 months ago (2014-05-30 23:16:24 UTC) #3
Tom Sepez
On 2014/05/30 23:16:24, Tom Sepez wrote: > On 2014/05/30 23:04:36, Nate Chapin wrote: > > ...
6 years, 6 months ago (2014-05-30 23:18:34 UTC) #4
Nate Chapin
On 2014/05/30 23:18:34, Tom Sepez wrote: > On 2014/05/30 23:16:24, Tom Sepez wrote: > > ...
6 years, 6 months ago (2014-05-30 23:21:05 UTC) #5
Tom Sepez
> Interesting, we have that callback, but it's only used in content shell. Yeah, > ...
6 years, 6 months ago (2014-06-04 21:58:21 UTC) #6
Tom Sepez
And re-opening. It looks like we want to go with the approach of adding an ...
6 years, 6 months ago (2014-06-18 21:28:26 UTC) #7
Tom Sepez
+Adam since I think nate is out.
6 years, 6 months ago (2014-06-19 13:59:34 UTC) #8
abarth-chromium
On 2014/06/19 at 13:59:34, tsepez wrote: > +Adam since I think nate is out. I ...
6 years, 6 months ago (2014-06-19 18:25:12 UTC) #9
Tom Sepez
Hey Nate, This is the update of a CL we talked about a few weeks ...
6 years, 6 months ago (2014-06-20 23:10:25 UTC) #10
Tom Sepez
(Tests added).
6 years, 6 months ago (2014-06-23 22:13:22 UTC) #11
Tom Sepez
+eseidel in absence of Nate. Can you review or suggest an alternate? Thanks heaps.
6 years, 6 months ago (2014-06-24 16:49:49 UTC) #12
Tom Sepez
Ping? Eric? Nate?
6 years, 5 months ago (2014-06-27 19:17:32 UTC) #13
eseidel
Adam is a much better reviewer for security changes than I am.
6 years, 5 months ago (2014-06-28 00:05:58 UTC) #14
Tom Sepez
@nate - maybe you're the best candidate to review this, given adam and eric passed ...
6 years, 5 months ago (2014-07-14 16:20:35 UTC) #15
Nate Chapin
Seems reasonable. Just a couple nitpicks... https://codereview.chromium.org/301163006/diff/80001/Source/core/html/parser/XSSAuditorDelegate.cpp File Source/core/html/parser/XSSAuditorDelegate.cpp (right): https://codereview.chromium.org/301163006/diff/80001/Source/core/html/parser/XSSAuditorDelegate.cpp#newcode119 Source/core/html/parser/XSSAuditorDelegate.cpp:119: m_document->frame()->navigationScheduler().schedulePageBlock(m_document, Referrer()); lockBackForwardList ...
6 years, 5 months ago (2014-07-14 19:26:41 UTC) #16
jasvir1
Does this CL in combination with 304313003 mean someone might be able to redirect to ...
6 years, 5 months ago (2014-07-14 19:32:26 UTC) #17
Tom Sepez
On 2014/07/14 19:32:26, jasvir1 wrote: > Does this CL in combination with 304313003 mean someone ...
6 years, 5 months ago (2014-07-14 19:41:50 UTC) #18
Tom Sepez
https://codereview.chromium.org/301163006/diff/80001/Source/core/html/parser/XSSAuditorDelegate.cpp File Source/core/html/parser/XSSAuditorDelegate.cpp (right): https://codereview.chromium.org/301163006/diff/80001/Source/core/html/parser/XSSAuditorDelegate.cpp#newcode119 Source/core/html/parser/XSSAuditorDelegate.cpp:119: m_document->frame()->navigationScheduler().schedulePageBlock(m_document, Referrer()); On 2014/07/14 19:26:40, Nate Chapin wrote: > ...
6 years, 5 months ago (2014-07-14 19:45:49 UTC) #19
Tom Sepez
On 2014/07/14 19:32:26, jasvir1 wrote: > Does this CL in combination with 304313003 mean someone ...
6 years, 5 months ago (2014-07-14 20:04:38 UTC) #20
Tom Sepez
PTAL. Thanks.
6 years, 5 months ago (2014-07-14 20:09:19 UTC) #21
Nate Chapin
LGTM
6 years, 5 months ago (2014-07-14 20:15:30 UTC) #22
Tom Sepez
The CQ bit was checked by tsepez@chromium.org
6 years, 5 months ago (2014-07-14 20:17:17 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tsepez@chromium.org/301163006/100001
6 years, 5 months ago (2014-07-14 20:17:52 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-14 21:35:12 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-14 21:46:56 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/16385)
6 years, 5 months ago (2014-07-14 21:46:57 UTC) #27
Tom Sepez
The CQ bit was checked by tsepez@chromium.org
6 years, 5 months ago (2014-07-14 21:50:31 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tsepez@chromium.org/301163006/100001
6 years, 5 months ago (2014-07-14 21:51:36 UTC) #29
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-14 22:00:49 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-14 22:09:09 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/16391)
6 years, 5 months ago (2014-07-14 22:09:10 UTC) #32
Tom Sepez
The CQ bit was checked by tsepez@chromium.org
6 years, 5 months ago (2014-07-15 17:55:57 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tsepez@chromium.org/301163006/100001
6 years, 5 months ago (2014-07-15 17:56:50 UTC) #34
commit-bot: I haz the power
6 years, 5 months ago (2014-07-15 20:15:56 UTC) #35
Message was sent while issue was closed.
Change committed as 178194

Powered by Google App Engine
This is Rietveld 408576698