<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>23358</bug_id>
          
          <creation_ts>2013-09-25 23:20:06 +0000</creation_ts>
          <short_desc>A hook for objects that can enter a &quot;dead&quot; mode</short_desc>
          <delta_ts>2013-11-13 20:48:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>WebIDL</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</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>
          
          <blocked>23359</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ian &apos;Hixie&apos; Hickson">ian</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>allen</cc>
    
    <cc>brendan</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>dherman</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-script-coord</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>93835</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-09-25 23:20:06 +0000</bug_when>
    <thetext>I&apos;d like a WebIDL attribute I can put on interfaces that says &quot;anything on this that gets called should throw if it is not [magic hook]&quot; (where [magic hook] would be &quot;its Document is the active document of its Document&apos;s browsing context&quot; for the History interface, for instance). Right now I only have one use case, but I have a feeling this will come up more often. For example, maybe that would be a good way to handle objects that are neutered by the structure cloning stuff.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93845</commentid>
    <comment_count>1</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2013-09-26 01:18:42 +0000</bug_when>
    <thetext>On IRC you suggested maybe we don&apos;t even need an extended attribute for this, just a hook that gets invoked at the right places.  Just like we have the &quot;perform a security check&quot; on operation invocation, attribute access, etc.

Are the cases you want to handle here just another kind of security check, and we can use the same mechanism?  The spec throws a SecurityError if the security check fails.  Is that appropriate for the cases you want to handle?  Can you do some testing to find out?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93853</commentid>
    <comment_count>2</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-09-26 02:53:57 +0000</bug_when>
    <thetext>Is there a reason this can&apos;t happen effectively in the &quot;prose&quot; section (i.e. after argument conversion)?  In practice it only matters if your argument conversions trigger side-effects (including exceptions), but doing this sort of check before argument conversions imposes a significant cost in implementation complexity that doesn&apos;t seem warranted here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93903</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-09-26 18:10:56 +0000</bug_when>
    <thetext>Taking to do further research.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96243</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-11-13 20:48:44 +0000</bug_when>
    <thetext>I&apos;ll deal with the History case in prose.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>