<?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>27212</bug_id>
          
          <creation_ts>2014-10-31 17:46:42 +0000</creation_ts>
          <short_desc>HTML needs to explain heycam.github.io/webidl/#es-security per bug 27204 comment 7.</short_desc>
          <delta_ts>2016-01-18 12:29:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>22346</dup_id>
          
          <bug_file_loc>https://html.spec.whatwg.org/#scripting</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>bobbyholley</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>114372</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-10-31 17:46:42 +0000</bug_when>
    <thetext>Specification: https://html.spec.whatwg.org/multipage/webappapis.html
Multipage: https://html.spec.whatwg.org/multipage/#scripting
Complete: https://html.spec.whatwg.org/#scripting
Referrer: https://html.spec.whatwg.org/multipage/browsers.html

Comment:
HTML needs to explain heycam.github.io/webidl/#es-security per bug 27204
comment 7.

Posted from: 46.127.136.57 by annevk@annevk.nl
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:36.0) Gecko/20100101 Firefox/36.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114411</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-11-01 06:20:20 +0000</bug_when>
    <thetext>How does this differ from bug 20701 ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114412</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-11-01 08:56:22 +0000</bug_when>
    <thetext>I guess it might be a duplicate if Location/Window are the only objects we need http://heycam.github.io/webidl/#es-security for.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114422</commentid>
    <comment_count>3</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-11-03 05:30:03 +0000</bug_when>
    <thetext>Modulo document.domain, they are.

When document.domain is involved, browsers disagree in irreconcilable ways on the behavior, unfortunately.  HTML specifies a behavior that&apos;s not acceptable (considered insecure) to some browsers, etc.  So let&apos;s not worry about that case.

For the Window/Location case, bug 20701 may or may not define the behavior in question here, which is the behavior when you take a function from your own origin and .call it on a cross-origin object this value.  The proposed spec at https://etherpad.mozilla.org/html5-cross-origin-objects doesn&apos;t define it, afaict.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114423</commentid>
    <comment_count>4</comment_count>
    <who name="Bobby Holley (:bholley)">bobbyholley</who>
    <bug_when>2014-11-03 07:48:07 +0000</bug_when>
    <thetext>(In reply to Boris Zbarsky from comment #3)
&gt; For the Window/Location case, bug 20701 may or may not define the behavior
&gt; in question here, which is the behavior when you take a function from your
&gt; own origin and .call it on a cross-origin object this value.  The proposed
&gt; spec at https://etherpad.mozilla.org/html5-cross-origin-objects doesn&apos;t
&gt; define it, afaict.

Hm, I thought we did that somewhere, but I don&apos;t see it. Anyway, we should roll that into bug 20701 - the basic gist being &quot;call/apply of a whitelisted method, getter, or setter should work, regardless of which object it was originally retrieved from&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114424</commentid>
    <comment_count>5</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-11-03 08:07:19 +0000</bug_when>
    <thetext>Sure; the important part is that call/apply of a non-whitelisted method should _not_ work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124619</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2016-01-18 12:29:52 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 22346 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>