<?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>201444</bug_id>
          
          <creation_ts>2019-09-03 20:22:13 -0700</creation_ts>
          <short_desc>[macOS] Unable to open local file from favorites bar</short_desc>
          <delta_ts>2019-09-03 21:12:17 -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>WebKit Misc.</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="Per Arne Vollan">pvollan</reporter>
          <assigned_to name="Per Arne Vollan">pvollan</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1567620</commentid>
    <comment_count>0</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2019-09-03 20:22:13 -0700</bug_when>
    <thetext>The sandbox extension handle should be created providing the pid of the receiving process.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1567621</commentid>
    <comment_count>1</comment_count>
      <attachid>377951</attachid>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2019-09-03 20:24:48 -0700</bug_when>
    <thetext>Created attachment 377951
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1567622</commentid>
    <comment_count>2</comment_count>
      <attachid>377951</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2019-09-03 20:26:40 -0700</bug_when>
    <thetext>Comment on attachment 377951
Patch

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

r=me

&gt; Source/WebKit/UIProcess/WebPageProxy.cpp:1068
&gt; +        if (SandboxExtension::createHandleForReadByPid(resourceDirectoryURL.fileSystemPath(), process.processIdentifier(), sandboxExtensionHandle)) {

Yikes! How did we miss this path?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1567625</commentid>
    <comment_count>3</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2019-09-03 20:30:53 -0700</bug_when>
    <thetext>(In reply to Brent Fulgham from comment #2)
&gt; Comment on attachment 377951 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=377951&amp;action=review
&gt; 
&gt; r=me
&gt; 
&gt; &gt; Source/WebKit/UIProcess/WebPageProxy.cpp:1068
&gt; &gt; +        if (SandboxExtension::createHandleForReadByPid(resourceDirectoryURL.fileSystemPath(), process.processIdentifier(), sandboxExtensionHandle)) {
&gt; 
&gt; Yikes! How did we miss this path?

I originally thought only the explicit references to &quot;/&quot; needed replacement, but also this one needs replacement. It actually resolves to &quot;/&quot; as well.

Thanks for reviewing!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1567632</commentid>
    <comment_count>4</comment_count>
      <attachid>377951</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-09-03 21:11:14 -0700</bug_when>
    <thetext>Comment on attachment 377951
Patch

Clearing flags on attachment: 377951

Committed r249454: &lt;https://trac.webkit.org/changeset/249454&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1567633</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-09-03 21:11:15 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1567634</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-09-03 21:12:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/55005268&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>377951</attachid>
            <date>2019-09-03 20:24:48 -0700</date>
            <delta_ts>2019-09-03 21:11:14 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-201444-20190903202447.patch</filename>
            <type>text/plain</type>
            <size>1735</size>
            <attacher name="Per Arne Vollan">pvollan</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XZWJL
aXQvQ2hhbmdlTG9nCShyZXZpc2lvbiAyNDk0NTIpCisrKyBTb3VyY2UvV2ViS2l0L0NoYW5nZUxv
Zwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBACisyMDE5LTA5LTAzICBQZXIgQXJuZSBW
b2xsYW4gIDxwdm9sbGFuQGFwcGxlLmNvbT4KKworICAgICAgICBbbWFjT1NdIFVuYWJsZSB0byBv
cGVuIGxvY2FsIGZpbGUgZnJvbSBmYXZvcml0ZXMgYmFyCisgICAgICAgIGh0dHBzOi8vYnVncy53
ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0yMDE0NDQKKworICAgICAgICBSZXZpZXdlZCBieSBO
T0JPRFkgKE9PUFMhKS4KKworICAgICAgICBUaGUgc2FuZGJveCBleHRlbnNpb24gaGFuZGxlIHNo
b3VsZCBiZSBjcmVhdGVkIHByb3ZpZGluZyB0aGUgcGlkIG9mIHRoZSByZWNlaXZpbmcgcHJvY2Vz
cy4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