<?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>29383</bug_id>
          
          <creation_ts>2016-01-20 13:22:07 +0000</creation_ts>
          <short_desc>Need a way to define toJSON, valueOf, @@toPrimitive</short_desc>
          <delta_ts>2016-01-29 01:56:56 +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>WORKSFORME</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>
          <dependson>27361</dependson>
    
    <dependson>29183</dependson>
          <blocked>29384</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne">annevk</reporter>
          <assigned_to name="Cameron McCormack">cam</assigned_to>
          <cc>bobbyholley</cc>
    
    <cc>josh</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>124643</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2016-01-20 13:22:07 +0000</bug_when>
    <thetext>We want to get rid of [Unforgeable] for Location (the only interface to use that annotation as far as I know), but we do not want to lose out on basically nullifying these properties.

As we change this setup, we should also consider making them no longer enumerable as per bug 27361.

This subsumes bug 29183 in a way.

Perhaps a good general solution would be to allow specifications to define data properties. This has been requested now and then, perhaps now is the time.

https://github.com/annevk/html-cross-origin-objects has some additional context as does bug 29376 comment 7.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124673</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2016-01-22 14:41:16 +0000</bug_when>
    <thetext>See also https://github.com/annevk/html-cross-origin-objects/issues/21 by the way. There might be more properties here that warrant some kind of override.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124735</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2016-01-29 00:33:46 +0000</bug_when>
    <thetext>The way I plan to do this for now is by simply defining these properties in prose when the Location object is allocated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124737</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2016-01-29 01:56:56 +0000</bug_when>
    <thetext>Resolving this as worksforme. If we want to add data properties in IDL that will need its own justification.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>