<?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>5357</bug_id>
          
          <creation_ts>2005-10-12 15:49:22 -0700</creation_ts>
          <short_desc>REGRESSION: Scriptable plugin hides properties of OBJECT element</short_desc>
          <delta_ts>2005-11-07 23:08:25 -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>JavaScriptCore</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mitz</reporter>
          <assigned_to name="Geoffrey Garen">ggaren</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21925</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2005-10-12 15:49:22 -0700</bug_when>
    <thetext>A plugin that implements a scriptable object in ObjC can cause all properties of the OBJECT element 
containing it to be undefined.

To reproduce: open the testcase in Safari. It tests for the children property not being undefined.

This happens when the plugin does not respond to 
invokeUndefinedMethodFromWebScript:withArguments:.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21926</commentid>
    <comment_count>1</comment_count>
      <attachid>4330</attachid>
    <who name="">mitz</who>
    <bug_when>2005-10-12 15:50:51 -0700</bug_when>
    <thetext>Created attachment 4330
testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21927</commentid>
    <comment_count>2</comment_count>
      <attachid>4331</attachid>
    <who name="">mitz</who>
    <bug_when>2005-10-12 15:58:51 -0700</bug_when>
    <thetext>Created attachment 4331
proposed patch

The bug resulted from the path for bug 4313, specifically the change in
RuntimeObjectImp::getOwnPropertySlot. An alternative fix is to undo that
change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21973</commentid>
    <comment_count>3</comment_count>
      <attachid>4331</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-10-13 07:17:03 -0700</bug_when>
    <thetext>Comment on attachment 4331
proposed patch

I believe the underlying cause here is that Objective-C &quot;undefined&quot; values are
not returned true to isUndefined(). I think we should fix that rather than
applying this patch or undoing the change from bug 4313.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22246</commentid>
    <comment_count>4</comment_count>
      <attachid>4331</attachid>
    <who name="">mitz</who>
    <bug_when>2005-10-19 00:08:52 -0700</bug_when>
    <thetext>Comment on attachment 4331
proposed patch

Asking Maciej to review this patch, after I talked with Darin.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22970</commentid>
    <comment_count>5</comment_count>
      <attachid>4331</attachid>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2005-10-25 22:24:10 -0700</bug_when>
    <thetext>Comment on attachment 4331
proposed patch

r=me</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4330</attachid>
            <date>2005-10-12 15:50:51 -0700</date>
            <delta_ts>2005-10-12 15:50:51 -0700</delta_ts>
            <desc>testcase</desc>
            <filename>pluginHidesProperties.html</filename>
            <type>text/html</type>
            <size>598</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgo8dGl0bGU+UGx1Z2luIGhpZGVzIE9CSkVDVCdzIHByb3BlcnRpZXM8L3Rp
dGxlPgo8c2NyaXB0IHR5cGU9InRleHQvamF2YXNjcmlwdCI+CmZ1bmN0aW9uIHRlc3QoKQp7CiAg
ICB2YXIgcmVzdWx0ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ29iaicpLmNoaWxkcmVuID09
IHVuZGVmaW5lZCA/ICJGQUlMRUQiIDogIlBBU1NFRCI7CiAgICBkb2N1bWVudC5nZXRFbGVtZW50
QnlJZCgicmVzdWx0IikuaW5uZXJUZXh0ID0gcmVzdWx0Owp9Cjwvc2NyaXB0Pgo8L2hlYWQ+Cjxi
b2R5IG9ubG9hZD0idGVzdCgpIj4KPHA+ClRoaXMgdGVzdCBjaGVja3MgZm9yIGEgcmVncmVzc2lv
biB3aGVyZSBzY3JpcHRhYmxlIHBsdWdpbnMgaGlkZSBwcm9wZXJ0aWVzIG9mCnRoZSBPQkpFQ1Qg
ZWxlbWVudC4KSWYgdGhlIHRlc3QgcGFzc2VzLCB5b3Ugd2lsbCBzZWUgYSAiUEFTU0VEIiBtZXNz
YWdlIGJlbG93Lgo8L3A+CjxwIGlkPSJyZXN1bHQiPjwvcD4KPG9iamVjdCBpZD0ib2JqIiBjbGFz
c2lkPSJjbHNpZDowMkJGMjVENS04QzE3LTRCMjMtQkM4MC1EMzQ4OEFCRERDNkIiPjwhLS0gcXVp
Y2t0aW1lIC0tPgo8L29iamVjdD4KPC9ib2R5Pg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4331</attachid>
            <date>2005-10-12 15:58:51 -0700</date>
            <delta_ts>2005-10-25 22:24:10 -0700</delta_ts>
            <desc>proposed patch</desc>
            <filename>5357_r1.patch</filename>
            <type>text/plain</type>
            <size>911</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">SW5kZXg6IG9iamNfY2xhc3MubW0KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL2N2cy9yb290L0phdmFT
Y3JpcHRDb3JlL2JpbmRpbmdzL29iamMvb2Jq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          status="+"
          setter="mjs"
    />
          </attachment>
      

    </bug>

</bugzilla>