Bug 97320

Summary: Use emptyString instead of String("")
Product: WebKit Reporter: Patrick R. Gansterer <paroga>
Component: WebCore Misc.Assignee: Patrick R. Gansterer <paroga>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: abarth, annevk, benjamin, haraken, japhet, mifenton, rwlbuis, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 86305    
Bug Blocks:    
Attachments:
Description Flags
Patch abarth: review-

Description Patrick R. Gansterer 2012-09-21 03:36:45 PDT
Use emptyString instead of String("")
Comment 1 Patrick R. Gansterer 2012-09-21 03:46:35 PDT
Created attachment 165110 [details]
Patch
Comment 2 Adam Barth 2012-09-21 09:09:40 PDT
Comment on attachment 165110 [details]
Patch

My understanding is that emptyString is only safe to use on the main thread.  Many of these lines of code look like they can be reached on worker threads.
Comment 3 Benjamin Poulain 2012-09-21 14:14:51 PDT
(Also see https://bugs.webkit.org/show_bug.cgi?id=95793 )
Comment 4 Anne van Kesteren 2023-12-28 08:35:32 PST
git grep cannot find these instances anymore.