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

Issue 333643008: WindowFeatures arguments shoud ignore invalid characters in values (Closed)

Created:
6 years, 6 months ago by arv (Not doing code reviews)
Modified:
6 years, 6 months ago
Reviewers:
cbiesinger, mathiasb
CC:
blink-reviews
Project:
blink
Visibility:
Public.

Description

WindowFeatures arguments shoud ignore invalid characters in values Original patch from http://trac.webkit.org/changeset/169849 We were getting the length of the string before calling lower() on it but we were looping over the new string which might have a different length than the original. BUG=383704 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176235

Patch Set 1 #

Patch Set 2 : Update test further since our tests are different from webkits #

Total comments: 1

Patch Set 3 : Add some comments #

Patch Set 4 : Fix test #

Patch Set 5 : Maybe update the expected.txt next time #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -5 lines) Patch
A LayoutTests/fast/dom/Window/resources/window-property-invalid-characters-ignored.html View 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/Window/window-property-invalid-characters-ignored.html View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/Window/window-property-invalid-characters-ignored-expected.txt View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/page/WindowFeatures.cpp View 1 chunk +4 lines, -5 lines 0 comments Download

Messages

Total messages: 42 (0 generated)
arv (Not doing code reviews)
Update test further since our tests are different from webkits
6 years, 6 months ago (2014-06-12 21:26:48 UTC) #1
arv (Not doing code reviews)
PTAL
6 years, 6 months ago (2014-06-12 21:28:21 UTC) #2
cbiesinger
lgtm some random musings below. https://codereview.chromium.org/333643008/diff/20001/LayoutTests/fast/dom/Window/window-property-invalid-characters-ignored.html File LayoutTests/fast/dom/Window/window-property-invalid-characters-ignored.html (right): https://codereview.chromium.org/333643008/diff/20001/LayoutTests/fast/dom/Window/window-property-invalid-characters-ignored.html#newcode15 LayoutTests/fast/dom/Window/window-property-invalid-characters-ignored.html:15: var w = window.open("resources/window-property-invalid-characters-ignored.html", ...
6 years, 6 months ago (2014-06-12 23:49:39 UTC) #3
arv (Not doing code reviews)
On 2014/06/12 at 23:49:39, cbiesinger wrote: > lgtm > > some random musings below. > ...
6 years, 6 months ago (2014-06-13 14:12:03 UTC) #4
arv (Not doing code reviews)
The CQ bit was checked by arv@chromium.org
6 years, 6 months ago (2014-06-13 14:27:04 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/arv@chromium.org/333643008/40001
6 years, 6 months ago (2014-06-13 14:28:11 UTC) #6
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, 6 months ago (2014-06-13 15:41:43 UTC) #7
cbiesinger
On 2014/06/13 14:12:03, arv wrote: > On 2014/06/12 at 23:49:39, cbiesinger wrote: > > lgtm ...
6 years, 6 months ago (2014-06-13 15:57:49 UTC) #8
arv (Not doing code reviews)
The CQ bit was unchecked by arv@chromium.org
6 years, 6 months ago (2014-06-13 16:19:14 UTC) #9
arv (Not doing code reviews)
On 2014/06/13 15:57:49, cbiesinger wrote: > On 2014/06/13 14:12:03, arv wrote: > > On 2014/06/12 ...
6 years, 6 months ago (2014-06-13 16:27:18 UTC) #10
arv (Not doing code reviews)
Fix test
6 years, 6 months ago (2014-06-13 16:28:11 UTC) #11
arv (Not doing code reviews)
The CQ bit was checked by arv@chromium.org
6 years, 6 months ago (2014-06-13 16:28:16 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/arv@chromium.org/333643008/60001
6 years, 6 months ago (2014-06-13 16:29:07 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 6 months ago (2014-06-13 17:40:01 UTC) #14
cbiesinger
On 2014/06/13 16:27:18, arv wrote: > You cannot really draw any conclusions what WTF::String::lower does ...
6 years, 6 months ago (2014-06-13 17:42:46 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-13 18:46:40 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/11932)
6 years, 6 months ago (2014-06-13 18:46:40 UTC) #17
arv (Not doing code reviews)
The CQ bit was checked by arv@chromium.org
6 years, 6 months ago (2014-06-13 18:52:11 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/arv@chromium.org/333643008/60001
6 years, 6 months ago (2014-06-13 18:52:58 UTC) #19
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, 6 months ago (2014-06-13 19:53:42 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-13 20:48:40 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/11959)
6 years, 6 months ago (2014-06-13 20:48:41 UTC) #22
arv (Not doing code reviews)
The CQ bit was checked by arv@chromium.org
6 years, 6 months ago (2014-06-13 21:01:10 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/arv@chromium.org/333643008/60001
6 years, 6 months ago (2014-06-13 21:01:59 UTC) #24
mathiasb
On 2014/06/13 17:42:46, cbiesinger wrote: > On 2014/06/13 16:27:18, arv wrote: > > You cannot ...
6 years, 6 months ago (2014-06-13 22:10:29 UTC) #25
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, 6 months ago (2014-06-13 22:12:19 UTC) #26
mathiasb
On 2014/06/13 16:27:18, arv wrote: > There are two possible cases where things could go ...
6 years, 6 months ago (2014-06-13 22:14:20 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-13 23:00:39 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/11382)
6 years, 6 months ago (2014-06-13 23:00:39 UTC) #29
arv (Not doing code reviews)
The CQ bit was checked by arv@chromium.org
6 years, 6 months ago (2014-06-13 23:15:53 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/arv@chromium.org/333643008/60001
6 years, 6 months ago (2014-06-13 23:16:08 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-14 01:22:08 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/11382)
6 years, 6 months ago (2014-06-14 01:22:09 UTC) #33
arv (Not doing code reviews)
Maybe update the expected.txt next time
6 years, 6 months ago (2014-06-16 15:47:05 UTC) #34
arv (Not doing code reviews)
The CQ bit was checked by arv@chromium.org
6 years, 6 months ago (2014-06-16 15:48:32 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/arv@chromium.org/333643008/80001
6 years, 6 months ago (2014-06-16 15:48:43 UTC) #36
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-16 17:56:39 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/12134)
6 years, 6 months ago (2014-06-16 17:56:40 UTC) #38
arv (Not doing code reviews)
The CQ bit was checked by arv@chromium.org
6 years, 6 months ago (2014-06-16 18:46:49 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/arv@chromium.org/333643008/80001
6 years, 6 months ago (2014-06-16 18:48:02 UTC) #40
commit-bot: I haz the power
Change committed as 176235
6 years, 6 months ago (2014-06-16 19:36:04 UTC) #41
cbiesinger
6 years, 6 months ago (2014-06-17 01:12:24 UTC) #42
Message was sent while issue was closed.
On 2014/06/13 22:10:29, mathiasb wrote:
> On 2014/06/13 17:42:46, cbiesinger wrote:
> > On 2014/06/13 16:27:18, arv wrote:
> > > You cannot really draw any conclusions what WTF::String::lower does based
in
> > JS'
> > > String.prototype.toLowerCase. That was just for a quick and dirty
> comparison.
> > > The ECMAScript standard falls back on the unicode standard to defines how
> > \u0130
> > > should be lower cased.
> > 
> > Fair enough. Still, as far as I can tell that our JS toLowerCase does not do
> the
> > right thing -- according to
> > http://www.fileformat.info/info/unicode/char/0130/index.htm, the lowercase
of
> > U+0130 is just the standard i (U+0069).
> 
> The normative document is
> http://unicode.org/Public/UCD/latest/ucd/CaseFolding.txt which contains:
> 
> 0130; F; 0069 0307; # LATIN CAPITAL LETTER I WITH DOT ABOVE
> 0130; T; 0069; # LATIN CAPITAL LETTER I WITH DOT ABOVE
> 
> The `F` entry should be used when performing full case folding and the `T`
entry
> is a special case specifically for Turkish languages. It seems the `F` variant
> is what would be expected here.

Oh... that must be so that roundtripping works correctly. Hmm. I guess that
makes sense. Thanks for pointing to the canonical reference!

Powered by Google App Engine
This is Rietveld 408576698