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

Issue 19623002: Make atob() throw an InvalidCharacterError on excess padding characters (Closed)

Created:
7 years, 5 months ago by do-not-use
Modified:
7 years, 5 months ago
CC:
blink-reviews, loislo+blink_chromium.org, eae+blinkwatch, yurys+blink_chromium.org, abarth-chromium, dglazkov+blink, adamk+blink_chromium.org, jeez, lgombos, gmorrita
Visibility:
Public.

Description

Make atob() throw an InvalidCharacterError on excess padding characters According to the latest specification, window.atob() should throw an InvalidCharacterError on excess padding characters: http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#dom-windowbase64-atob This behavior is consistent with both Firefox and IE10. We are now down from 26 failures to 12 on the following test suite: http://www.w3c-test.org/html/tests/submission/AryehGregor/base64.html BUG=261200 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=154538

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix style issue #

Patch Set 3 : Rebase on master #

Patch Set 4 : Rebase on master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -27 lines) Patch
M LayoutTests/fast/dom/Window/atob-btoa.html View 1 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/dom/Window/atob-btoa-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/page/DOMWindowBase64.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/wtf/text/Base64.h View 3 chunks +13 lines, -5 lines 0 comments Download
M Source/wtf/text/Base64.cpp View 1 3 chunks +28 lines, -15 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
do-not-use
7 years, 5 months ago (2013-07-17 16:59:16 UTC) #1
arv (Not doing code reviews)
LGTM https://codereview.chromium.org/19623002/diff/1/LayoutTests/fast/dom/Window/atob-btoa-expected.txt File LayoutTests/fast/dom/Window/atob-btoa-expected.txt (right): https://codereview.chromium.org/19623002/diff/1/LayoutTests/fast/dom/Window/atob-btoa-expected.txt#newcode39 LayoutTests/fast/dom/Window/atob-btoa-expected.txt:39: PASS window.atob("zzz==") threw exception InvalidCharacterError: An invalid or ...
7 years, 5 months ago (2013-07-17 17:49:06 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/19623002/7001
7 years, 5 months ago (2013-07-18 06:41:29 UTC) #3
commit-bot: I haz the power
Retried try job too often on blink_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=blink_presubmit&number=3774
7 years, 5 months ago (2013-07-18 07:00:37 UTC) #4
do-not-use
This needs review from a WTF owner because of the changes to Base64.
7 years, 5 months ago (2013-07-18 07:36:08 UTC) #5
eseidel
lgtm
7 years, 5 months ago (2013-07-18 20:51:25 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/19623002/7001
7 years, 5 months ago (2013-07-18 20:51:32 UTC) #7
commit-bot: I haz the power
Failed to apply patch for Source/core/page/DOMWindow.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 5 months ago (2013-07-18 20:51:36 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/19623002/20001
7 years, 5 months ago (2013-07-18 20:53:56 UTC) #9
commit-bot: I haz the power
Failed to apply patch for Source/core/page/DOMWindow.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 5 months ago (2013-07-18 20:53:58 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/19623002/23001
7 years, 5 months ago (2013-07-18 20:58:52 UTC) #11
commit-bot: I haz the power
7 years, 5 months ago (2013-07-18 23:08:35 UTC) #12
Message was sent while issue was closed.
Change committed as 154538

Powered by Google App Engine
This is Rietveld 408576698