WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
136392
Use UTF8Encoding in more places
https://bugs.webkit.org/show_bug.cgi?id=136392
Summary
Use UTF8Encoding in more places
Joseph Pecoraro
Reported
2014-08-29 15:51:33 PDT
There were a few places that were constructing a TextEncoding from a string where we can use the global singleton.
Attachments
[PATCH] Proposed Fix
(7.39 KB, patch)
2014-08-29 15:53 PDT
,
Joseph Pecoraro
joepeck
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2014-08-29 15:53:11 PDT
Created
attachment 237384
[details]
[PATCH] Proposed Fix
Alexey Proskuryakov
Comment 2
2014-08-29 17:24:57 PDT
Comment on
attachment 237384
[details]
[PATCH] Proposed Fix This makes me nervous about thread safety. XMLHttpRequest can live in a worker thread, and UTF8Encoding() function is not thread safe. I'm not sure how thread safe TextEncoding itself is.
Alexey Proskuryakov
Comment 3
2014-08-29 17:26:28 PDT
I think that all or almost all of TextEncoding and actual codec are thread safe, so it's probably just the UTF8Encoding() function that's a concern.
Joseph Pecoraro
Comment 4
2014-08-29 17:28:21 PDT
Comment on
attachment 237384
[details]
[PATCH] Proposed Fix Alexey mentioned there might be threading concerns here. The XMLHttpRequest and WorkerScriptLoader seem like they could be used from a non-main thread. This requires more thought. Putting cq- and clearing review flag for now.
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