<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>189972</bug_id>
          
          <creation_ts>2018-09-25 13:43:29 -0700</creation_ts>
          <short_desc>Allow for suffixes to com.apple.WebKit.WebContent</short_desc>
          <delta_ts>2018-09-26 17:43:12 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alex Christensen">achristensen</reporter>
          <assigned_to name="Alex Christensen">achristensen</assigned_to>
          <cc>aestes</cc>
    
    <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>darin</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1463314</commentid>
    <comment_count>0</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2018-09-25 13:43:29 -0700</bug_when>
    <thetext>Allow for suffixes to com.apple.WebKit.WebContent</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1463316</commentid>
    <comment_count>1</comment_count>
      <attachid>350783</attachid>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2018-09-25 13:45:22 -0700</bug_when>
    <thetext>Created attachment 350783
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1463331</commentid>
    <comment_count>2</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2018-09-25 14:06:56 -0700</bug_when>
    <thetext>http://trac.webkit.org/r236474</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1463334</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-09-25 14:07:31 -0700</bug_when>
    <thetext>&lt;rdar://problem/44773386&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1463486</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2018-09-25 20:01:32 -0700</bug_when>
    <thetext>This will be tricky to start using, because many system frameworks hardcore existing WebContent names. We’ll need to work with them if we want to add more names.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1463632</commentid>
    <comment_count>5</comment_count>
      <attachid>350783</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2018-09-26 09:41:32 -0700</bug_when>
    <thetext>Comment on attachment 350783
Patch

Gets rid of the &quot;com.apple.WebProcess&quot; bundle ID. Was that being used anywhere?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1463648</commentid>
    <comment_count>6</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2018-09-26 10:59:56 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #4)
&gt; This will be tricky to start using, because many system frameworks hardcode
&gt; existing WebContent names. We’ll need to work with them if we want to add
&gt; more names.

Tricky but possible.  I intend to do just that.

(In reply to Darin Adler from comment #5)
&gt; Comment on attachment 350783 [details]
&gt; Patch
&gt; 
&gt; Gets rid of the &quot;com.apple.WebProcess&quot; bundle ID. Was that being used
&gt; anywhere?

I believe it&apos;s historical.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1463832</commentid>
    <comment_count>7</comment_count>
      <attachid>350783</attachid>
    <who name="Andy Estes">aestes</who>
    <bug_when>2018-09-26 17:07:50 -0700</bug_when>
    <thetext>Comment on attachment 350783
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=350783&amp;action=review

&gt; Source/WebCore/platform/cocoa/RuntimeApplicationChecksCocoa.mm:89
&gt; +    static bool mainBundleIsWebProcess = [[[NSBundle mainBundle] bundleIdentifier] hasPrefix:@&quot;com.apple.WebKit.WebContent&quot;];

I don’t know what suffixes you have in mind, but I’m a little surprised that the prefix string doesn’t end in a period. Will a suffix ever not be separated from the prefix by a period?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1463833</commentid>
    <comment_count>8</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2018-09-26 17:08:54 -0700</bug_when>
    <thetext>com.apple.WebKit.WebContent is valid
com.apple.WebKit.WebContent.something is valid
It can&apos;t have a period.  There might be no suffix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1463835</commentid>
    <comment_count>9</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2018-09-26 17:13:03 -0700</bug_when>
    <thetext>(In reply to Alex Christensen from comment #8)
&gt; com.apple.WebKit.WebContent is valid
&gt; com.apple.WebKit.WebContent.something is valid
&gt; It can&apos;t have a period.  There might be no suffix.

com.apple.WebKit.WebContentdevelopment is also valid. Is that what you intend?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1463838</commentid>
    <comment_count>10</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2018-09-26 17:15:16 -0700</bug_when>
    <thetext>Are you suggesting we check for exact equality with &quot;com.apple.WebKit.WebContent&quot; or beginning with &quot;com.apple.WebKit.WebContent.&quot;?  I think that&apos;s overkill, especially since the right solution is to remove these bundle checks entirely.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1463847</commentid>
    <comment_count>11</comment_count>
    <who name="Andy Estes">aestes</who>
    <bug_when>2018-09-26 17:43:12 -0700</bug_when>
    <thetext>(In reply to Alex Christensen from comment #10)
&gt; Are you suggesting we check for exact equality with
&gt; &quot;com.apple.WebKit.WebContent&quot; or beginning with
&gt; &quot;com.apple.WebKit.WebContent.&quot;?  I think that&apos;s overkill, especially since
&gt; the right solution is to remove these bundle checks entirely

You could also check if the string begins with com.apple.WebKit.WebContent and is equal in length to the prefix or has a period as the first character in the suffix. That wouldn’t require two comparisons.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>350783</attachid>
            <date>2018-09-25 13:45:22 -0700</date>
            <delta_ts>2018-09-25 14:03:17 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-189972-20180925134521.patch</filename>
            <type>text/plain</type>
            <size>2912</size>
            <attacher name="Alex Christensen">achristensen</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDIzNjQ2MikKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDEzIEBACisyMDE4LTA5LTI1ICBBbGV4IENo
cmlzdGVuc2VuICA8YWNocmlzdGVuc2VuQHdlYmtpdC5vcmc+CisKKyAgICAgICAgQWxsb3cgZm9y
IHN1ZmZpeGVzIHRvIGNvbS5hcHBsZS5XZWJLaXQuV2ViQ29udGVudAorICAgICAgICBodHRwczov
L2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTg5OTcyCisKKyAgICAgICAgUmV2aWV3
ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgKiBwbGF0Zm9ybS9jb2NvYS9SdW50aW1l
QXBwbGljYXRpb25DaGVja3NDb2NvYS5tbToKKyAgICAgICAgKFdlY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5hbWUgV1RGX0NPTVBJTEVSX0dDQ19PUl9DTEFORyB0byBXVEZfQ09NUElMRVJf
R0NDX0NPTVBBVElCTEUKSW5kZXg6IFNvdXJjZS9ibWFsbG9jL2JtYWxsb2MvUHJvY2Vzc0NoZWNr
Lm1tCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9ibWFsbG9jL2JtYWxsb2MvUHJvY2Vzc0NoZWNrLm1t
CShyZXZpc2lvbiAyMzY0NjIpCisrKyBTb3VyY2UvYm1hbGxvYy9ibWFsbG9jL1Byb2Nlc3NDaGVj
ay5tbQkod29ya2luZyBjb3B5KQpAQCAtMzgsOSArMzgsNyBAQCBib29sIGdpZ2FjYWdlRW5hYmxl
ZEZvclByb2Nlc3MoKQogCiAgICAgTlNTdHJpbmcgKmFwcE5hbWUgPSBbW05TQnVuZGxlIG1haW5C
dW5kbGVdIGJ1bmRsZUlkZW50aWZpZXJdOwogICAgIGlmIChhcHBOYW1lKSB7Ci0gICAgICAgIGJv
b2wgaXNXZWJQcm9jZXNzID0gW2FwcE5hbWUgaXNFcXVhbFRvU3RyaW5nOkAiY29tLmFwcGxlLldl
YktpdC5XZWJDb250ZW50LkRldmVsb3BtZW50Il0KLSAgICAgICAgICAgIHx8IFthcHBOYW1lIGlz
RXF1YWxUb1N0cmluZzpAImNvbS5hcHBsZS5XZWJLaXQuV2ViQ29udGVudCJdCi0gICAgICAgICAg
ICB8fCBbYXBwTmFtZSBpc0VxdWFsVG9TdHJpbmc6QCJjb20uYXBwbGUuV2ViUHJvY2VzcyJdOwor
ICAgICAgICBib29sIGlzV2ViUHJvY2VzcyA9IFthcHBOYW1lIGhhc1ByZWZpeDpAImNvbS5hcHBs
ZS5XZWJLaXQuV2ViQ29udGVudCJdOwogICAgICAgICByZXR1cm4gaXNXZWJQcm9jZXNzOwogICAg
IH0KIAo=
</data>
<flag name="review"
          id="368185"
          type_id="1"
          status="+"
          setter="cdumez"
    />
          </attachment>
      

    </bug>

</bugzilla>