[Webkit-unassigned] [Bug 241584] New: remove concept of non-static Strings with non-owned character data

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 13 19:32:35 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=241584

            Bug ID: 241584
           Summary: remove concept of non-static Strings with non-owned
                    character data
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: heycam at apple.com

It's possible to create non-static String objects that point to non-owned character data.  Specifically, StringView::toStringWithoutCopying can do this.  It's a bit dangerous since it's then not obvious to users of String that there is an arbitrary ownership dependence in there.

We should consider removing that feature of String objects and replace their use with explicit uses of StringView.

It's possible some places may want to represent "a String or a StringView", and we can consider introducing a type to mean that.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220614/2be6ef5e/attachment.htm>


More information about the webkit-unassigned mailing list