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

Issue 884213006: Make document.location unforgeable (Closed)

Created:
5 years, 10 months ago by philipj_slow
Modified:
5 years, 10 months ago
CC:
arv+blink, blink-reviews, blink-reviews-dom_chromium.org, Inactive, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Make document.location unforgeable https://html.spec.whatwg.org/#document https://heycam.github.io/webidl/#Unforgeable In document-special-properties.html, an <iframe name="location"> would previously shadow document.location but now does not. This brings us in line with IE11. Firefox Nightly does the same, but seemingly only because it doesn't fall back to named elements at all. BUG=444015 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189862

Patch Set 1 #

Patch Set 2 : DoNotCheckSecurity #

Patch Set 3 : fix test #

Total comments: 2

Patch Set 4 : drop DoNotCheckSecurity #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -2 lines) Patch
A LayoutTests/fast/dom/Document/location-unforgeable.html View 1 chunk +16 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/HTMLDocument/document-special-properties-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Document.idl View 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (4 generated)
philipj_slow
DoNotCheckSecurity
5 years, 10 months ago (2015-02-04 11:00:51 UTC) #1
philipj_slow
Jochen, can you PTAL? I'm very uncertain about DoNotCheckSecurity and am not sure if it ...
5 years, 10 months ago (2015-02-05 16:47:30 UTC) #3
philipj_slow
Ping jochen.
5 years, 10 months ago (2015-02-09 13:55:05 UTC) #4
jochen (gone - plz use gerrit)
https://codereview.chromium.org/884213006/diff/40001/Source/core/dom/Document.idl File Source/core/dom/Document.idl (right): https://codereview.chromium.org/884213006/diff/40001/Source/core/dom/Document.idl#newcode131 Source/core/dom/Document.idl:131: [PutForwards=href, DoNotCheckSecurity, Unforgeable] readonly attribute Location location; why DoNotCheckSecurity?
5 years, 10 months ago (2015-02-09 14:29:07 UTC) #5
philipj_slow
https://codereview.chromium.org/884213006/diff/40001/Source/core/dom/Document.idl File Source/core/dom/Document.idl (right): https://codereview.chromium.org/884213006/diff/40001/Source/core/dom/Document.idl#newcode131 Source/core/dom/Document.idl:131: [PutForwards=href, DoNotCheckSecurity, Unforgeable] readonly attribute Location location; On 2015/02/09 ...
5 years, 10 months ago (2015-02-09 14:37:01 UTC) #6
jochen (gone - plz use gerrit)
+dcarney for the security check question in comment #3
5 years, 10 months ago (2015-02-09 14:38:18 UTC) #8
jochen (gone - plz use gerrit)
lgtm
5 years, 10 months ago (2015-02-09 16:07:18 UTC) #9
jochen (gone - plz use gerrit)
(Dan said it's fine)
5 years, 10 months ago (2015-02-09 16:07:38 UTC) #10
philipj_slow
Thanks, Jochen! Dan, can you explain the difference between having and not having DoNotCheckSecurity to ...
5 years, 10 months ago (2015-02-09 16:56:21 UTC) #11
dcarney
On 2015/02/09 16:56:21, philipj_UTC7 wrote: > Thanks, Jochen! > > Dan, can you explain the ...
5 years, 10 months ago (2015-02-09 20:03:03 UTC) #12
philipj_slow
On 2015/02/09 20:03:03, dcarney wrote: > On 2015/02/09 16:56:21, philipj_UTC7 wrote: > > Thanks, Jochen! ...
5 years, 10 months ago (2015-02-10 03:24:08 UTC) #13
philipj_slow
drop DoNotCheckSecurity
5 years, 10 months ago (2015-02-10 03:28:15 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/884213006/60001
5 years, 10 months ago (2015-02-10 03:29:07 UTC) #17
commit-bot: I haz the power
5 years, 10 months ago (2015-02-10 04:41:47 UTC) #18
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189862

Powered by Google App Engine
This is Rietveld 408576698