<?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>117093</bug_id>
          
          <creation_ts>2013-05-31 14:29:50 -0700</creation_ts>
          <short_desc>HTMLCanvasElement supportsContext function does not account for optional attributes parameters</short_desc>
          <delta_ts>2024-09-04 01:06:02 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Canvas</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Ruth Fong">ruthiecftg</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>annevk</cc>
    
    <cc>dino</cc>
    
    <cc>ruthiecftg</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>895991</commentid>
    <comment_count>0</comment_count>
    <who name="Ruth Fong">ruthiecftg</who>
    <bug_when>2013-05-31 14:29:50 -0700</bug_when>
    <thetext>Once landed, the patch for bug 70117 (https://bugs.webkit.org/show_bug.cgi?id=70117) implements the supportsContext function for HTMLCanvasElement as spec&apos;ed in HTML standards (http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-canvas-supportscontext).

HTML standards states that &quot;The supportsContext(contextId, arguments...) method of the canvas element, when invoked, must return false if calling getContext() on the same object and with the same arguments would definitely return null at this time, and true otherwise.&quot;

The patch for bug 70117 will not account for the optional arguments, i.e. it&apos;s return value is only based on the contextId parameter.

supportsContext function (implemented in Source/WebCore/html/HTMLCanvasElement.cpp after the patch for bug 70117 lands) should be updated to account for the optional parameters.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>895992</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2013-05-31 14:30:05 -0700</bug_when>
    <thetext>&lt;rdar://problem/14037811&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2057507</commentid>
    <comment_count>2</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2024-09-04 01:06:02 -0700</bug_when>
    <thetext>This was removed from the specification and WebKit at some point.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>