WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
158576
atob() / btoa() API should be exposed to workers
https://bugs.webkit.org/show_bug.cgi?id=158576
Summary
atob() / btoa() API should be exposed to workers
Chris Dumez
Reported
2016-06-09 13:11:19 PDT
atob() / btoa() API should be exposed to workers:
https://html.spec.whatwg.org/multipage/webappapis.html#windoworworkerglobalscope
Attachments
Patch
(36.66 KB, patch)
2016-06-09 15:33 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2016-06-09 13:18:37 PDT
Test:
http://w3c-test.org/workers/interfaces.worker
Radar WebKit Bug Importer
Comment 2
2016-06-09 15:27:43 PDT
<
rdar://problem/26729340
>
Chris Dumez
Comment 3
2016-06-09 15:33:05 PDT
Created
attachment 280958
[details]
Patch
Chris Dumez
Comment 4
2016-06-09 15:44:09 PDT
***
Bug 55663
has been marked as a duplicate of this bug. ***
WebKit Commit Bot
Comment 5
2016-06-09 18:40:35 PDT
Comment on
attachment 280958
[details]
Patch Clearing flags on attachment: 280958 Committed
r201898
: <
http://trac.webkit.org/changeset/201898
>
WebKit Commit Bot
Comment 6
2016-06-09 18:40:40 PDT
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 7
2016-06-09 18:55:32 PDT
Comment on
attachment 280958
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=280958&action=review
> Source/WebCore/page/Base64Utilities.h:36 > + Base64Utilities() = default; > +
We should just delete these two lines of code. This is what a class gets if you don’t explicitly define a constructor. We should do this only if we want to make the default constructor private or protected.
Chris Dumez
Comment 8
2016-06-09 18:56:49 PDT
Comment on
attachment 280958
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=280958&action=review
>> Source/WebCore/page/Base64Utilities.h:36 >> + > > We should just delete these two lines of code. This is what a class gets if you don’t explicitly define a constructor. We should do this only if we want to make the default constructor private or protected.
My bad. I'll drop them in a follow up.
Darin Adler
Comment 9
2016-06-09 19:11:46 PDT
Comment on
attachment 280958
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=280958&action=review
> Source/WebCore/page/Base64Utilities.h:38 > + String btoa(const String& stringToEncode, ExceptionCode&); > + String atob(const String& encodedString, ExceptionCode&);
Another thing: These should both be static member functions. More efficient that way. Neither makes any use of "this", directly or indirectly.
Chris Dumez
Comment 10
2016-06-09 20:18:33 PDT
Committed
r201903
: <
http://trac.webkit.org/changeset/201903
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug