Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
2010-03-06 MORITA Hajime <morrita@google.com>
Reviewed by Darin Adler. Moved implementations of window.btoa() and window.atob() from JSDOMWindow to DOMWindow, and make V8DOMWindow use DOMWindow functions instead of having a separate implementation. As a side effect, the error message has changed from "Cannot decode base64" to one that indicates DOM Exception, which is compatible to Firefox. Refactoring: window.btoa() and window.atob() should be implemented on DOMWindow https://bugs.webkit.org/show_bug.cgi?id=35723 * fast/dom/Window/atob-btoa-expected.txt: Rebaselined expectation due to change of error message. 2010-03-06 MORITA Hajime <morrita@google.com> Reviewed by Darin Adler. Moved implementations of window.btoa() and window.atob() from JSDOMWindow to DOMWindow, and make V8DOMWindow use DOMWindow functions instead of having a separate implementation. As a side effect, the error message has changed from "Cannot decode base64" to one that indicates DOM Exception, which is compatible to Firefox. Refactoring: window.btoa() and window.atob() should be implemented on DOMWindow https://bugs.webkit.org/show_bug.cgi?id=35723 No new test. No new functionality. * bindings/js/JSDOMWindowCustom.cpp: (WebCore::JSDOMWindow::atob): (WebCore::JSDOMWindow::btoa): Moved conversion code to DOMWindow and invoke it. Argument checking remains here. * bindings/v8/custom/V8DOMWindowCustom.cpp: (WebCore::V8DOMWindow::atobCallback): (WebCore::V8DOMWindow::btoaCallback): Remove conversion code and call DOMWindow APIs. Although argument checking remains here. * page/DOMWindow.cpp: (WebCore::hasMultibyteCharacters): (WebCore::DOMWindow::btoa): (WebCore::DOMWindow::atob): * page/DOMWindow.h: Moved Conversion code from JSDOMWindow, modifing to fit JSC independent. Canonical link: https://commits.webkit.org/46916@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@55619 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
7 changed files
with
129 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters