<?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>19677</bug_id>
          
          <creation_ts>2012-10-23 20:55:11 +0000</creation_ts>
          <short_desc>Add &lt;canvas&gt;.supportsContext(DOMString contextId, any... arguments)</short_desc>
          <delta_ts>2012-11-04 10:43:43 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</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="Edward O&apos;Connor">eoconnor</reporter>
          <assigned_to name="Silvia Pfeiffer">silviapfeiffer1</assigned_to>
          <cc>dino</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>76978</commentid>
    <comment_count>0</comment_count>
    <who name="Edward O&apos;Connor">eoconnor</who>
    <bug_when>2012-10-23 20:55:11 +0000</bug_when>
    <thetext>Web authors need a way to detect whether or not different canvas contexts are supported. Currently authors do this by calling &lt;canvas&gt;.getContext, but this can be very expensive.

Dean proposed adding a supportsContext method in http://lists.w3.org/Archives/Public/public-html/2012Sep/0119.html

Ian added &lt;canvas&gt;.supportsContext in r7482 of the WHATWG spec:
http://html5.org/r/7482
https://github.com/w3c/html/commit/6e1081a860afd08e6aa0329032c9cf4106760a27

The work to implement &lt;canvas&gt;.supportsContext in WebKit is being tracked in
https://bugs.webkit.org/show_bug.cgi?id=70117

We should consider pulling this in for HTML5.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76979</commentid>
    <comment_count>1</comment_count>
    <who name="Edward O&apos;Connor">eoconnor</who>
    <bug_when>2012-10-23 20:56:00 +0000</bug_when>
    <thetext>Assigning to Silvia since the change has been made on the WHATWG side of things.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76999</commentid>
    <comment_count>2</comment_count>
    <who name="Edward O&apos;Connor">eoconnor</who>
    <bug_when>2012-10-23 22:53:28 +0000</bug_when>
    <thetext>See also https://github.com/w3c/html/commit/90c0786311cd92d5a4fd1c546e6a8a766c6d3b2c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77255</commentid>
    <comment_count>3</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2012-10-29 05:54:01 +0000</bug_when>
    <thetext>staged in https://github.com/w3c/html/compare/master...feature;whatwg_patches_week43_2012</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77827</commentid>
    <comment_count>4</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2012-11-04 10:43:43 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If
you are satisfied with this response, please change the state of
this bug to CLOSED. If you have additional information and would
like the Editor to reconsider, please reopen this bug. If you would
like to escalate the issue to the full HTML Working Group, please
add the TrackerRequest keyword to this bug, and suggest title and
text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this
document:   http://dev.w3.org/html5/decision-policy/decision-policy-v2.html

Status: Accepted
Change Description:
https://github.com/w3c/html/commit/6e1081a860afd08e6aa0329032c9cf4106760a27
https://github.com/w3c/html/commit/90c0786311cd92d5a4fd1c546e6a8a766c6d3b2c

Rationale: adopted resolution by WHATWG</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>