<?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>135419</bug_id>
          
          <creation_ts>2014-07-30 10:37:55 -0700</creation_ts>
          <short_desc>Black canvas when using RTL/webGL on Google Maps</short_desc>
          <delta_ts>2014-07-30 14:25:25 -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>WebGL</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>http://google.com/maps?force=webgl&amp;hl=ar</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="Michael Davidson">mdavids</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>bfulgham</cc>
    
    <cc>dino</cc>
    
    <cc>mitz</cc>
    
    <cc>roger_fong</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1025733</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Davidson">mdavids</who>
    <bug_when>2014-07-30 10:37:55 -0700</bug_when>
    <thetext>When launching in RTL languages, the WebGL canvas is always black. This doesn&apos;t happen for our 2D canvas rendering, and doesn&apos;t happen in LTR languages.

Compare:

http://google.com/maps?force=webgl&amp;hl=ar   (RTL, WebGL, bad)
http://google.com/maps?force=webgl&amp;hl=en  (LTR, WebGL, looks good!)
http://google.com/maps?force=canvas&amp;hl=at (RTL, Canvas2D, good)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1025742</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-07-30 10:53:21 -0700</bug_when>
    <thetext>What operating system version are you running when you encounter this? Is it a shipping Mavericks version, or the developer seed for the upcoming OS?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1025744</commentid>
    <comment_count>2</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2014-07-30 10:58:35 -0700</bug_when>
    <thetext>I think this is a problem in your content.  Switching the user agent to Google Chrome -- Mac makes it no longer happen.
I see the map for a moment, then it smoothly fades to black.  I&apos;m not familiar with the inner workings of Google Maps.  Do you have any idea what would cause this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1025753</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Davidson">mdavids</who>
    <bug_when>2014-07-30 11:19:09 -0700</bug_when>
    <thetext>My OS: 10.9.4
Retina MBP
GPU:  NVIDIA GeForce GT 650M 1024 MB

Alex, the initial map you see is image tags showing raster content. The WebGL context never shows content, it&apos;s always black.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1025754</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Davidson">mdavids</who>
    <bug_when>2014-07-30 11:19:28 -0700</bug_when>
    <thetext>Nightly version: Version 7.0.5 (9537.77.4, r171650)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1025757</commentid>
    <comment_count>5</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-07-30 11:51:49 -0700</bug_when>
    <thetext>Seems to be limited to Retina hardware.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1025762</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Davidson">mdavids</who>
    <bug_when>2014-07-30 12:24:28 -0700</bug_when>
    <thetext>A clue:

In non-Safari high DPI browsers, we scale the canvas using style.width/style.height. If you emulate the Chrome UA, you&apos;ll see that it does render, but not with correct crisp text.

In Safari, we scale using a webkit-transform of scale(.5, .5), which yields sharp text in LTR languages but a black canvas in RTL languages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1025776</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Davidson">mdavids</who>
    <bug_when>2014-07-30 13:54:02 -0700</bug_when>
    <thetext>This is a bug in the maps code. We&apos;re not setting the origin of the transform in RTL languages.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>