<?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>37278</bug_id>
          
          <creation_ts>2010-04-08 09:16:30 -0700</creation_ts>
          <short_desc>No way for plugin to not handle NP_FULL when it handles the mime-type</short_desc>
          <delta_ts>2018-03-30 06:43:51 -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>Plug-ins</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Bastien Nocera">bugzilla</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>chpe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>210236</commentid>
    <comment_count>0</comment_count>
    <who name="Bastien Nocera">bugzilla</who>
    <bug_when>2010-04-08 09:16:30 -0700</bug_when>
    <thetext>Similarly to the Mozilla/Firefox bug opened a number of years ago at:
https://bugzilla.mozilla.org/show_bug.cgi?id=306867

A plugin has no way to not handle a particular plugin mode (from -&gt;newp).

In the new instance function, it should be possible to return a
NPERR_MODE_UNSUPPORTED if the mode doesn&apos;t match a supported one (for example,
a video plugin that doesn&apos;t want to handle NP_FULL).

1. Make sure your plugin can handle a particular mime-type
2. Host a file of that mime-type on a web server
3. Load the hosted file in a WebKit browser (Safari, Chromium, etc.)
4. The plugin should be instantiated using NP_FULL

5. Now make your plugin return an error when NP_FULL is passed as the mode.

6. Load the URL from 3. again

Expected result:
- Browser offers to download the file, or open it using one of the applications on the system that can handle that mimetype

Actual result:
- Broken plugin logo in the middle of the browser</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1410581</commentid>
    <comment_count>1</comment_count>
    <who name="Bastien Nocera">bugzilla</who>
    <bug_when>2018-03-30 06:43:51 -0700</bug_when>
    <thetext>Totem&apos;s web browser plugin doesn&apos;t exist any more.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>