<?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>12906</bug_id>
          
          <creation_ts>2007-02-27 04:54:04 -0800</creation_ts>
          <short_desc>REGRESSION: Canvas is pixelated when the page is opened in a background tab</short_desc>
          <delta_ts>2007-02-27 10:13:40 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.cocoablogs.com/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mitz</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21176</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-02-27 04:54:04 -0800</bug_when>
    <thetext>To reproduce:
Create a new tab and open the URL in that (foreground) tab. In Safari Preferences &gt; Tabs, deselect &quot;select new tabs as they are created&quot;, then open the URL in a background tab. After the page is finished loading in the background tab, switch to it.

Expected results:
The clock should render at 1:1 resolution in the background tab, just like in the foreground tab.

Actual results:
The clock is pixelated in the tab that loaded in the background (looks like 2:1).

Regression:
Yes, shipping WebKit renders at full resolution in both tabs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21164</commentid>
    <comment_count>1</comment_count>
      <attachid>13393</attachid>
    <who name="">mitz</who>
    <bug_when>2007-02-27 05:27:46 -0800</bug_when>
    <thetext>Created attachment 13393
Reduction</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21156</commentid>
    <comment_count>2</comment_count>
      <attachid>13396</attachid>
    <who name="">mitz</who>
    <bug_when>2007-02-27 05:59:01 -0800</bug_when>
    <thetext>Created attachment 13396
Fall back on the main screen&apos;s scale factor if the view is not in a window

The main screen&apos;s scale factor is just a better guess than the undefined result of sending a message to nil. Since canvas does not seem to support dynamic changes to this parameter (as might be necessary when the view moves from one window to another?), you&apos;re stuck with the guessed value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21159</commentid>
    <comment_count>3</comment_count>
      <attachid>13396</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-02-27 06:29:09 -0800</bug_when>
    <thetext>Comment on attachment 13396
Fall back on the main screen&apos;s scale factor if the view is not in a window

Looks like the right thing to do.

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21113</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-02-27 10:13:40 -0800</bug_when>
    <thetext>Committed revision 19887.
</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>13393</attachid>
            <date>2007-02-27 05:27:46 -0800</date>
            <delta_ts>2007-02-27 05:27:46 -0800</delta_ts>
            <desc>Reduction</desc>
            <filename>lo-res-canvas.html</filename>
            <type>text/html</type>
            <size>449</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">PGh0bWw+CjxoZWFkPgoJPHRpdGxlPjwvdGl0bGU+CQogICAgPHNjcmlwdCB0eXBlPSJ0ZXh0L2ph
dmFzY3JpcHQiPgogICAgICAgIGZ1bmN0aW9uIHRlc3QoKQogICAgICAgIHsKICAgICAgICAgICAg
dmFyIGNvbnRleHQgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgiY2FudmFzIikuZ2V0Q29udGV4
dCgiMmQiKTsKICAgICAgICAgICAgCiAgICAgICAgICAgIGNvbnRleHQuc2NhbGUoMC41LCAwLjUp
OwogICAgICAgICAgICBjb250ZXh0LmFyYygxMDAsIDEwMCwgMTAwLCAwLCAyKk1hdGguUEksIGZh
bHNlKTsKICAgICAgICAgICAgY29udGV4dC5maWxsKCk7CiAgICAgICAgfQogICAgPC9zY3JpcHQ+
CjwvaGVhZD4KPGJvZHkgb25sb2FkPSJ0ZXN0KCkiPgogICAgPGNhbnZhcyBpZD0iY2FudmFzIiB3
aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCI+PC9jYW52YXM+CjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>13396</attachid>
            <date>2007-02-27 05:59:01 -0800</date>
            <delta_ts>2007-02-27 06:29:09 -0800</delta_ts>
            <desc>Fall back on the main screen&apos;s scale factor if the view is not in a window</desc>
            <filename>12906_r1.patch</filename>
            <type>text/plain</type>
            <size>1265</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gV2ViS2l0L0NoYW5nZUxvZwko
cmV2aXNpb24gMTk4NzcpCisrKyBXZWJLaXQvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0x
LDMgKzEsMTQgQEAKKzIwMDctMDItMjcgIE1pdHogUGV0dGVsICA8bWl0ekB3ZWJraXQub3JnPgor
CisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIC0gaHR0cDov
L2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTI5MDYKKyAgICAgICAgICBSRUdSRVNT
SU9OOiBDYW52Y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Y3Rvcl07CisgICAgcmV0dXJuIFtbTlNTY3JlZW4gbWFp
blNjcmVlbl0gdXNlclNwYWNlU2NhbGVGYWN0b3JdOwogfQogCiB2b2lkIFdlYkNocm9tZUNsaWVu
dDo6Zm9jdXMoKQo=
</data>
<flag name="review"
          id="5268"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>