<?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>57566</bug_id>
          
          <creation_ts>2011-03-31 11:55:50 -0700</creation_ts>
          <short_desc>Can&apos;t identify file entities with WebKit::WebContextMenuData enum</short_desc>
          <delta_ts>2011-04-06 01:52:46 -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>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>1</everconfirmed>
          <reporter name="Zelidrag Hornung">zelidrag</reporter>
          <assigned_to name="Zelidrag Hornung">zelidrag</assigned_to>
          <cc>abarth</cc>
    
    <cc>commit-queue</cc>
    
    <cc>ericu</cc>
    
    <cc>eric</cc>
    
    <cc>levin</cc>
    
    <cc>shanestephens</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>377367</commentid>
    <comment_count>0</comment_count>
    <who name="Zelidrag Hornung">zelidrag</who>
    <bug_when>2011-03-31 11:55:50 -0700</bug_when>
    <thetext>We need to be able to use ContextMenuParams for file entity identification for ChromeOS file browser. The only change needed on WK side is to add a new enum WebKit::WebContextMenuData value to WebContextMenuData::MediaType - MediaTypeFile.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>377369</commentid>
    <comment_count>1</comment_count>
      <attachid>87774</attachid>
    <who name="Zelidrag Hornung">zelidrag</who>
    <bug_when>2011-03-31 11:59:25 -0700</bug_when>
    <thetext>Created attachment 87774
Added MediaTypeFile enum value to WebContextMenuData::MediaType</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>378254</commentid>
    <comment_count>2</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2011-04-01 17:55:08 -0700</bug_when>
    <thetext>This is a trivial change and by itself it seems fine, but I find it hard to understand how this enum change does anything and why it is beneficial and if it useful (w/o doing any other changes in WebKit), why this enum is upstream at all.

Thus my reluctance to r+.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>379777</commentid>
    <comment_count>3</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2011-04-05 11:46:48 -0700</bug_when>
    <thetext>Summary: There is a function/strucutre in WebKit that stores these enum values without caring what they are and a new one is needed for purposes on the Chromium side.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>379842</commentid>
    <comment_count>4</comment_count>
      <attachid>87774</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-04-05 13:44:36 -0700</bug_when>
    <thetext>Comment on attachment 87774
Added MediaTypeFile enum value to WebContextMenuData::MediaType

Clearing flags on attachment: 87774

Committed r82976: &lt;http://trac.webkit.org/changeset/82976&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>379843</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-04-05 13:44:41 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>380025</commentid>
    <comment_count>6</comment_count>
    <who name="Shane Stephens">shanestephens</who>
    <bug_when>2011-04-05 18:46:48 -0700</bug_when>
    <thetext>Reopening this bug as we need to roll out the patch - it breaks chromium build</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>380039</commentid>
    <comment_count>7</comment_count>
    <who name="David Levin">levin</who>
    <bug_when>2011-04-05 19:03:57 -0700</bug_when>
    <thetext>Here&apos;s how to do this patch in a way that won&apos;t break any builds.

1. Submit a patch on the chromium side which fixes the build for when this enum is added but ifdef all the places.

Something like 
   #ifdef WebContextMenuDataFileTypeDefined
but with proper casing.

2. Put up with patch and add a 
   #define WebContextMenuDataFileTypeDefined
in the header file file.

3. Once it gets into chromium, you remove all the ifdef&apos;s and submit that patch.

4. Then one final patch in WebKit which removes  #define WebContextMenuDataFileTypeDefined from this header.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>380068</commentid>
    <comment_count>8</comment_count>
      <attachid>88356</attachid>
    <who name="Zelidrag Hornung">zelidrag</who>
    <bug_when>2011-04-05 19:56:30 -0700</bug_when>
    <thetext>Created attachment 88356
Added MediaTypeFile enum value to WebContextMenuData::MediaType... with fix for Chromium side 

added new define WEBCONTEXT_MEDIATYPEFILE_DEFINED that should prevent Chromium build from breaking 

this needs to land after http://codereview.chromium.org/6799005/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>380157</commentid>
    <comment_count>9</comment_count>
      <attachid>88356</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-04-05 23:30:12 -0700</bug_when>
    <thetext>Comment on attachment 88356
Added MediaTypeFile enum value to WebContextMenuData::MediaType... with fix for Chromium side 

Clearing flags on attachment: 88356

Committed r83023: &lt;http://trac.webkit.org/changeset/83023&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>380158</commentid>
    <comment_count>10</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-04-05 23:30:16 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>380216</commentid>
    <comment_count>11</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-04-06 01:52:46 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/83023 might have broken GTK Linux 32-bit Debug</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>87774</attachid>
            <date>2011-03-31 11:59:25 -0700</date>
            <delta_ts>2011-04-05 19:56:30 -0700</delta_ts>
            <desc>Added MediaTypeFile enum value to WebContextMenuData::MediaType</desc>
            <filename>wk-57566.diff</filename>
            <type>text/plain</type>
            <size>1119</size>
            <attacher name="Zelidrag Hornung">zelidrag</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvY2hyb21pdW0vQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNv
dXJjZS9XZWJLaXQvY2hyb21pdW0vQ2hhbmdlTG9nCShyZXZpc2lvbiA4MjYwMikKKysrIFNvdXJj
ZS9XZWJLaXQvY2hyb21pdW0vQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTIg
QEAKKzIwMTEtMDMtMzEgIFplbGlkcmFnIEhvcm51bmcgIDx6ZWxpZHJhZ0BjaHJvbWl1bS5vcmc+
CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgQWRkZWQg
TWVkaWFUeXBlRmlsZSBlbnVtIHZhbHVlIHRvIFdlYkNvbnRleHRNZW51RGF0YTo6TWVkaWFUeXBl
LgorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9NTc1NjYK
KworICAgICAgICAqIHB1YmxpYy9XZWJDb250ZXh0TWVudURhdGEuaDoKKwogMjAxMS0wMy0zMSAg
RXZhbiBNYXJ0aW4gIDxldmFuQGNocm9taXVtLm9yZz4KIAogICAgICAgICBSZXZpZXdlZCBieSBF
cmljIFNlaWRlbC4KSW5kZXg6IFNvdXJjZS9XZWJLaXQvY2hyb21pdW0vcHVibGljL1dlYkNvbnRl
eHRNZW51RGF0YS5oCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XZWJLaXQvY2hyb21pdW0vcHVibGlj
L1dlYkNvbnRleHRNZW51RGF0YS5oCShyZXZpc2lvbiA4MjUxOCkKKysrIFNvdXJjZS9XZWJLaXQv
Y2hyb21pdW0vcHVibGljL1dlYkNvbnRleHRNZW51RGF0YS5oCSh3b3JraW5nIGNvcHkpCkBAIC01
Miw2ICs1Miw4IEBAIHN0cnVjdCBXZWJDb250ZXh0TWVudURhdGEgewogICAgICAgICBNZWRpYVR5
cGVWaWRlbywKICAgICAgICAgLy8gQW4gYXVkaW8gbm9kZSBpcyBzZWxlY3RlZC4KICAgICAgICAg
TWVkaWFUeXBlQXVkaW8sCisgICAgICAgIC8vIEEgZmlsZSBub2RlIGlzIHNlbGVjdGVkLgorICAg
ICAgICBNZWRpYVR5cGVGaWxlLAogICAgICAgICAvLyBBIHBsdWdpbiBub2RlIGlzIHNlbGVjdGVk
LgogICAgICAgICBNZWRpYVR5cGVQbHVnaW4sCiAgICAgfTsK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>88356</attachid>
            <date>2011-04-05 19:56:30 -0700</date>
            <delta_ts>2011-04-05 23:30:12 -0700</delta_ts>
            <desc>Added MediaTypeFile enum value to WebContextMenuData::MediaType... with fix for Chromium side </desc>
            <filename>wk-57566.diff</filename>
            <type>text/plain</type>
            <size>1308</size>
            <attacher name="Zelidrag Hornung">zelidrag</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvY2hyb21pdW0vQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNv
dXJjZS9XZWJLaXQvY2hyb21pdW0vQ2hhbmdlTG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KwogbmFtZXNwYWNlIFdl
YktpdCB7CiAKIC8vIFRoaXMgc3RydWN0IGlzIHBhc3NlZCB0byBXZWJWaWV3Q2xpZW50OjpTaG93
Q29udGV4dE1lbnUuCkBAIC01Miw2ICs1NCw4IEBAIHN0cnVjdCBXZWJDb250ZXh0TWVudURhdGEg
ewogICAgICAgICBNZWRpYVR5cGVWaWRlbywKICAgICAgICAgLy8gQW4gYXVkaW8gbm9kZSBpcyBz
ZWxlY3RlZC4KICAgICAgICAgTWVkaWFUeXBlQXVkaW8sCisgICAgICAgIC8vIEEgZmlsZSBub2Rl
IGlzIHNlbGVjdGVkLgorICAgICAgICBNZWRpYVR5cGVGaWxlLAogICAgICAgICAvLyBBIHBsdWdp
biBub2RlIGlzIHNlbGVjdGVkLgogICAgICAgICBNZWRpYVR5cGVQbHVnaW4sCiAgICAgfTsK
</data>

          </attachment>
      

    </bug>

</bugzilla>