Bug 223714

Summary: Use StaticStringImpl instead of StringImpl::createStaticStringImpl if it is not dynamic string content
Product: WebKit Reporter: Yusuke Suzuki <ysuzuki>
Component: New BugsAssignee: Yusuke Suzuki <ysuzuki>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, cdumez, cmarcelo, darin, ews-watchlist, saam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch saam: review+

Yusuke Suzuki
Reported 2021-03-24 15:09:58 PDT
Use StaticStringImpl instead of StringImpl::createStaticStringImpl if it is not dynamic string content
Attachments
Patch (2.43 KB, patch)
2021-03-24 15:11 PDT, Yusuke Suzuki
saam: review+
Yusuke Suzuki
Comment 1 2021-03-24 15:11:30 PDT
Yusuke Suzuki
Comment 2 2021-03-24 19:31:53 PDT
Radar WebKit Bug Importer
Comment 3 2021-03-24 19:32:16 PDT
Darin Adler
Comment 4 2021-03-25 16:23:48 PDT
Comment on attachment 424190 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=424190&action=review > Source/WTF/wtf/URL.cpp:858 > +static StaticStringImpl aboutBlankString { "about:blank" }; Why are these outside the functions? > Source/WTF/wtf/URL.cpp:869 > +static StaticStringImpl aboutSrcDocString { "about:srcdoc" }; Ditto.
Note You need to log in before you can comment on or make changes to this bug.