<?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>187494</bug_id>
          
          <creation_ts>2018-07-09 17:09:56 -0700</creation_ts>
          <short_desc>MiniBrowser lacks entitlements to add extensions</short_desc>
          <delta_ts>2019-02-08 15:15:02 -0800</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 Local Build</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.13</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>192431</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeff Johnson">opendarwin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jberlin</cc>
    
    <cc>joepeck</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1440639</commentid>
    <comment_count>0</comment_count>
    <who name="Jeff Johnson">opendarwin</who>
    <bug_when>2018-07-09 17:09:56 -0700</bug_when>
    <thetext>Steps to Reproduce:
1. Build WebKit on macOS 10.13
2. Debug MiniBrowser
3. Open &quot;Debug&quot; menu
4. Select &quot;Show Extensions Manager&quot;
5. Click the + button

This fails because of sandboxing. To fix, you just need to add the User Selected File sandbox entitlement to the MiniBrowser target App Sandbox Capabilities:

$ git diff
diff --git a/Tools/MiniBrowser/MiniBrowser.entitlements b/Tools/MiniBrowser/MiniBrowser.entitlements
index ea26ab24210..f5bddd5e533 100644
--- a/Tools/MiniBrowser/MiniBrowser.entitlements
+++ b/Tools/MiniBrowser/MiniBrowser.entitlements
@@ -4,6 +4,8 @@
 &lt;dict&gt;
        &lt;key&gt;com.apple.security.app-sandbox&lt;/key&gt;
        &lt;true/&gt;
+       &lt;key&gt;com.apple.security.files.user-selected.read-only&lt;/key&gt;
+       &lt;true/&gt;
        &lt;key&gt;com.apple.security.network.client&lt;/key&gt;
        &lt;true/&gt;
        &lt;key&gt;com.apple.security.temporary-exception.files.absolute-path.read-only&lt;/key&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1504324</commentid>
    <comment_count>1</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2019-02-08 15:15:02 -0800</bug_when>
    <thetext>Oops, thanks for the heads up. This is getting addressed in bug 192431.

*** This bug has been marked as a duplicate of bug 192431 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>