<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WebKit2 should load plugins from [[NSBundle mainBundle] builtInPlugInsURL]"
   href="https://bugs.webkit.org/show_bug.cgi?id=156524">156524</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>WebKit2 should load plugins from [[NSBundle mainBundle] builtInPlugInsURL]
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebKit2
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jonathan&#64;e3software.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Old-WebKit includes [[NSBundle mainBundle] builtInPlugInsPath] in the search path for plugins, but WebKit2 on Mac does not. For applications that bundle custom plug-ins, it would be really nice if WebKit2 could include [[NSBundle mainBundle] builtInPlugInsPath] when loading plugins so that WKWebView can display custom plugin content. Our application [1] uses this functionality in old-WebKit, as does Mail.app and possibly others.

Currently PluginInfoStore::pluginsDirectories() only searches:

[NSHomeDirectory() stringByAppendingPathComponent:&#64;&quot;Library/Internet Plug-Ins&quot;]
&quot;/Library/Internet Plug-Ins&quot;

An alternate solution would be to expose API for adding additional plugin search paths.

[1]: directmailmac.com</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>