<?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>50555</bug_id>
          
          <creation_ts>2010-12-06 00:51:51 -0800</creation_ts>
          <short_desc>implement the HTML5 &quot;context menu&quot; feature (contextmenu attribute)</short_desc>
          <delta_ts>2022-07-31 11:14:10 -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>WebCore Misc.</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>http://dev.w3.org/html5/spec/interactive-elements.html#context-menus</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HTML5</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>32934</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="sideshowbarker">mike</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>bronislav.klucka</cc>
    
    <cc>bugs</cc>
    
    <cc>code.vineet</cc>
    
    <cc>donggwan.kim</cc>
    
    <cc>dvpdiner2</cc>
    
    <cc>elijahel</cc>
    
    <cc>eoconnor</cc>
    
    <cc>fwj834</cc>
    
    <cc>ian</cc>
    
    <cc>jan.varga</cc>
    
    <cc>jonas</cc>
    
    <cc>mamacdon</cc>
    
    <cc>mounir</cc>
    
    <cc>peter</cc>
    
    <cc>rniwa</cc>
    
    <cc>syoichi</cc>
    
    <cc>webmaster</cc>
    
    <cc>xqb748</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>317481</commentid>
    <comment_count>0</comment_count>
    <who name="sideshowbarker">mike</who>
    <bug_when>2010-12-06 00:51:51 -0800</bug_when>
    <thetext>In the HTML5 spec, section 4.11.4.3, &quot;Context menus&quot;, specifies a mechanism for allowing author-developers to define a custom context menu for a particular element. The mechanism enables author-developers to define the context menu declaratively, through markup, by using a &quot;contextmenu&quot; attribute whose value is the ID of a particular menu element in the same document.

http://dev.w3.org/html5/spec/interactive-elements.html#context-menus</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>448524</commentid>
    <comment_count>1</comment_count>
    <who name="sideshowbarker">mike</who>
    <bug_when>2011-08-09 05:18:25 -0700</bug_when>
    <thetext>Mozilla are working on an implementation of this that looks like it will land soonish

https://bugzilla.mozilla.org/show_bug.cgi?id=617528</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>448531</commentid>
    <comment_count>2</comment_count>
    <who name="Jan Varga">jan.varga</who>
    <bug_when>2011-08-09 05:44:14 -0700</bug_when>
    <thetext>Actually the basic implementation has already landed.
FYI, the supported syntax differs a bit:

&lt;menu type=&quot;context&quot;&gt;
  &lt;menuitem label=&quot;Foo&quot;&gt;&lt;/menuitem&gt;
&lt;/menu&gt;

if you&apos;re interested, we can provide more details ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>448535</commentid>
    <comment_count>3</comment_count>
    <who name="Olli Pettay (:smaug)">bugs</who>
    <bug_when>2011-08-09 05:49:25 -0700</bug_when>
    <thetext>And plenty of spec bugs have been filed to fix menu/command API.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>469283</commentid>
    <comment_count>4</comment_count>
    <who name="Antaryami Pandia">xqb748</who>
    <bug_when>2011-09-19 01:36:12 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Actually the basic implementation has already landed.
&gt; FYI, the supported syntax differs a bit:
&gt; 
&gt; &lt;menu type=&quot;context&quot;&gt;
&gt;   &lt;menuitem label=&quot;Foo&quot;&gt;&lt;/menuitem&gt;
&gt; &lt;/menu&gt;
&gt; 
&gt; if you&apos;re interested, we can provide more details ...

We have started working on html5 menu item (https://bugs.webkit.org/show_bug.cgi?id=58454) and also be working on context menu.

So can you please share the overall architecture/design documents.Also it will be good if the same can be posted as a webkit blog and/or on a webkit-dev list.That way other people can also share thoughts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>469956</commentid>
    <comment_count>5</comment_count>
    <who name="Jan Varga">jan.varga</who>
    <bug_when>2011-09-20 01:48:51 -0700</bug_when>
    <thetext>Ok, I&apos;ll put together some info for you...

The most import thing is that our implementation doesn&apos;t use the command API to generate custom context menu items and that we added a new element &lt;menuitem&gt;.

In the meantime you can check out the patch:
https://bug617528.bugzilla.mozilla.org/attachment.cgi?id=551436</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>472971</commentid>
    <comment_count>6</comment_count>
    <who name="Antaryami Pandia">xqb748</who>
    <bug_when>2011-09-25 22:31:25 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; Ok, I&apos;ll put together some info for you...
&gt; 
&gt; The most import thing is that our implementation doesn&apos;t use the command API to generate custom context menu items and that we added a new element &lt;menuitem&gt;.
&gt; 
&gt; In the meantime you can check out the patch:
&gt; https://bug617528.bugzilla.mozilla.org/attachment.cgi?id=551436

Thanks for info.
Is there any plan to push these new element/changes to spec?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>472974</commentid>
    <comment_count>7</comment_count>
    <who name="Jan Varga">jan.varga</who>
    <bug_when>2011-09-25 22:50:47 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; Thanks for info.
&gt; Is there any plan to push these new element/changes to spec?

the discussion is still ongoing

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13608</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>506845</commentid>
    <comment_count>8</comment_count>
    <who name="Jan Varga">jan.varga</who>
    <bug_when>2011-11-21 03:56:07 -0800</bug_when>
    <thetext>hey, if you&apos;re still working on it, could you comment in the w3c &lt;menuitem&gt; bug ?
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13608</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>507468</commentid>
    <comment_count>9</comment_count>
    <who name="Antaryami Pandia">xqb748</who>
    <bug_when>2011-11-22 01:37:17 -0800</bug_when>
    <thetext>of late our priorities has been changed.so I am not actively working on this now.

As for &lt;menuitem&gt; is considered, I feel it&apos;s better to know the opinion of larger webkit community.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>669102</commentid>
    <comment_count>10</comment_count>
    <who name="Bronislav Klucka">bronislav.klucka</who>
    <bug_when>2012-07-13 09:02:43 -0700</bug_when>
    <thetext>any news here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>954335</commentid>
    <comment_count>11</comment_count>
    <who name="Elijah El-Haddad">elijahel</who>
    <bug_when>2013-11-26 13:42:52 -0800</bug_when>
    <thetext>I&apos;m currently working on an open source Web IDE (Eclipse Orion) and having this feature across all browsers would be very beneficial to us.

Any plans to complete the implementation?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1887947</commentid>
    <comment_count>12</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-07-31 05:23:40 -0700</bug_when>
    <thetext>&lt;menuitem&gt; is marked as obsolete: https://html.spec.whatwg.org/multipage/obsolete.html#non-conforming-features

https://github.com/whatwg/html/pull/2742

Blink also dropped it here:

https://chromium.googlesource.com/chromium/src.git/+/e90a0487386316a1e97f69159f20fbe5933cb3b9

Gecko dropped it here:

https://bugzilla.mozilla.org/show_bug.cgi?id=1372276

______

I think we can mark this as &quot;RESOLVED WONTFIX&quot;. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1887961</commentid>
    <comment_count>13</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2022-07-31 11:14:10 -0700</bug_when>
    <thetext>Yup, won&apos;t fix at this point.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>