<?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>102971</bug_id>
          
          <creation_ts>2012-11-21 12:43:28 -0800</creation_ts>
          <short_desc>REGRESSION(r135399): Wrong assertion causing an assertion failure: m_rawAttributes.initialScale &gt; 0</short_desc>
          <delta_ts>2012-11-23 06:11:18 -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>WebKit Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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>
          
          <blocked>102801</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Thiago Marcos P. Santos">tmpsantos</reporter>
          <assigned_to name="Mikhail Pozdnyakov">mikhail.pozdnyakov</assigned_to>
          <cc>abecsi</cc>
    
    <cc>jussi.kukkonen</cc>
    
    <cc>kenneth</cc>
    
    <cc>mikhail.pozdnyakov</cc>
    
    <cc>rakuco</cc>
    
    <cc>tmpsantos</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>773190</commentid>
    <comment_count>0</comment_count>
    <who name="Thiago Marcos P. Santos">tmpsantos</who>
    <bug_when>2012-11-21 12:43:28 -0800</bug_when>
    <thetext>crash log for WebKitTestRunner (pid 9248):
STDOUT: &lt;empty&gt;
STDERR: ASSERTION FAILED: m_rawAttributes.initialScale &gt; 0
STDERR: /home/buildslave-1/webkit-buildslave/efl-linux-64-debug-wk2/build/Source/WebKit2/UIProcess/PageViewportController.cpp(152) : void WebKit::PageViewportController::pageTransitionViewportReady()
STDERR: 1   0x7f0bd508cd5a WebKit::PageViewportController::pageTransitionViewportReady()
STDERR: 2   0x7f0bd52b0579 WebKit::PageClientDefaultImpl::pageTransitionViewportReady()
STDERR: 3   0x7f0bd50e2535 WebKit::WebPageProxy::pageTransitionViewportReady()
STDERR: 4   0x7f0bd52e889e void CoreIPC::callMemberFunction&lt;WebKit::WebPageProxy, void (WebKit::WebPageProxy::*)()&gt;(CoreIPC::Arguments0 const&amp;, WebKit::WebPageProxy*, void (WebKit::WebPageProxy::*)())
STDERR: 5   0x7f0bd52e4eaa void CoreIPC::handleMessage&lt;Messages::WebPageProxy::PageTransitionViewportReady, WebKit::WebPageProxy, void (WebKit::WebPageProxy::*)()&gt;(CoreIPC::MessageDecoder&amp;, WebKit::WebPageProxy*, void (WebKit::WebPageProxy::*)())
STDERR: 6   0x7f0bd52de2bd WebKit::WebPageProxy::didReceiveWebPageProxyMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::MessageDecoder&amp;)
STDERR: 7   0x7f0bd50dd8d9 WebKit::WebPageProxy::didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::MessageDecoder&amp;)
STDERR: 8   0x7f0bd511e9f5 WebKit::WebProcessProxy::didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::MessageDecoder&amp;)
STDERR: 9   0x7f0bd5006e64 CoreIPC::Connection::dispatchMessage(CoreIPC::MessageID, CoreIPC::MessageDecoder&amp;)
STDERR: 10  0x7f0bd5006fd0 CoreIPC::Connection::dispatchMessage(CoreIPC::Connection::Message&lt;CoreIPC::MessageDecoder&gt;&amp;)
STDERR: 11  0x7f0bd500721b CoreIPC::Connection::dispatchOneMessage()
STDERR: 12  0x7f0bd50113bc WTF::FunctionWrapper&lt;void (CoreIPC::Connection::*)()&gt;::operator()(CoreIPC::Connection*)
STDERR: 13  0x7f0bd50111c2 WTF::BoundFunctionImpl&lt;WTF::FunctionWrapper&lt;void (CoreIPC::Connection::*)()&gt;, void (CoreIPC::Connection*)&gt;::operator()()
STDERR: 14  0x7f0bdc1b8dca WTF::Function&lt;void ()&gt;::operator()() const
STDERR: 15  0x7f0bd867fc5e WebCore::RunLoop::performWork()
STDERR: 16  0x7f0bd909d69b WebCore::RunLoop::wakeUpEvent(void*, void*, unsigned int)
STDERR: 17  0x7f0bd441a621
STDERR: 18  0x7f0bd4419571
STDERR: 19  0x7f0bd4419ab7 ecore_main_loop_begin
STDERR: 20  0x43362b WTR::TestController::platformRunUntil(bool&amp;, double)
STDERR: 21  0x41e94e WTR::TestController::runUntil(bool&amp;, WTR::TestController::TimeoutDuration)
STDERR: 22  0x425a06 WTR::TestInvocation::invoke()
STDERR: 23  0x41e686 WTR::TestController::runTest(char const*)
STDERR: 24  0x41e7bf WTR::TestController::runTestingServerLoop()
STDERR: 25  0x41e859 WTR::TestController::run()
STDERR: 26  0x41c291 WTR::TestController::TestController(int, char const**)
STDERR: 27  0x4337c6 main
STDERR: 28  0x7f0bd2f7a76d __libc_start_main
STDERR: 29  0x41ac09
STDERR: LEAK: 2 CachedResource</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>773761</commentid>
    <comment_count>1</comment_count>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2012-11-22 02:26:08 -0800</bug_when>
    <thetext>Ouch, the assertion is not actually wrong, but my patch was not complete.
I think I know what&apos;s going on, and can fix it.

Mikhail, I see you assigned it to yourself, do you mind if I clean up my mess instead?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>773766</commentid>
    <comment_count>2</comment_count>
      <attachid>175632</attachid>
    <who name="Mikhail Pozdnyakov">mikhail.pozdnyakov</who>
    <bug_when>2012-11-22 02:38:42 -0800</bug_when>
    <thetext>Created attachment 175632
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>773770</commentid>
    <comment_count>3</comment_count>
    <who name="Mikhail Pozdnyakov">mikhail.pozdnyakov</who>
    <bug_when>2012-11-22 02:42:36 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; Ouch, the assertion is not actually wrong, but my patch was not complete.
&gt; I think I know what&apos;s going on, and can fix it.
&gt; 
&gt; Mikhail, I see you assigned it to yourself, do you mind if I clean up my mess instead?

sorry, did not see your message. Uploaded already a patch, feel free to take the bug if you see the patch does not suffice or wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>773780</commentid>
    <comment_count>4</comment_count>
      <attachid>175632</attachid>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2012-11-22 03:05:44 -0800</bug_when>
    <thetext>Comment on attachment 175632
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=175632&amp;action=review

I think this is the right fix. The patch looks good to me.

&gt; Source/WebKit2/ChangeLog:9
&gt; +        m_rawAttributes.initialScale has to be initialized even if m_minimumScaleToFit hasn&apos;t changed
&gt; +        it&apos;s value.

Indeed, the basic problem was that m_minimumScaleToFit is initialized to 1 and if the calculated minimum scale to fit turned out to be 1 we wrongly returned early and did not initialize the initialScale attribute.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>773826</commentid>
    <comment_count>5</comment_count>
      <attachid>175632</attachid>
    <who name="Raphael Kubo da Costa (:rakuco)">rakuco</who>
    <bug_when>2012-11-22 04:15:35 -0800</bug_when>
    <thetext>Comment on attachment 175632
patch

Clearing flags on attachment: 175632

Committed r135504: &lt;http://trac.webkit.org/changeset/135504&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>773827</commentid>
    <comment_count>6</comment_count>
    <who name="Raphael Kubo da Costa (:rakuco)">rakuco</who>
    <bug_when>2012-11-22 04:15:42 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>774498</commentid>
    <comment_count>7</comment_count>
    <who name="Thiago Marcos P. Santos">tmpsantos</who>
    <bug_when>2012-11-23 06:11:18 -0800</bug_when>
    <thetext>*** Bug 102922 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>175632</attachid>
            <date>2012-11-22 02:38:42 -0800</date>
            <delta_ts>2012-11-22 04:15:35 -0800</delta_ts>
            <desc>patch</desc>
            <filename>bug102971</filename>
            <type>text/plain</type>
            <size>2002</size>
            <attacher name="Mikhail Pozdnyakov">mikhail.pozdnyakov</attacher>
            
              <data encoding="base64">Y29tbWl0IGYyZjE4YTRiMDg3ZmMzZTM2YTM4ZTgyNzc0ZjczYjljYWM0NzAyMDUKQXV0aG9yOiBN
aWtoYWlsIFBvemRueWFrb3YgPG1pa2hhaWwucG96ZG55YWtvdkBpbnRlbC5jb20+CkRhdGU6ICAg
VGh1IE5vdiAyMiAxMjozNDoyMCAyMDEyICswMjAwCgogICAgYnVnMTAyOTcxCgpkaWZmIC0tZ2l0
IGEvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nIGIvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCmlu
ZGV4IGU0MTFlOTEuLmE4MWQ5ODAgMTAwNjQ0Ci0tLSBhL1NvdXJjZS9XZWJLaXQyL0NoYW5nZUxv
ZworKysgYi9Tb3VyY2UvV2ViS2l0Mi9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNiBAQAorMjAxMi0x
MS0yMiAgTWlraGFpbCBQb3pkbnlha292ICA8bWlraGFpbC5wb3pkbnlha292QGludGVsLmNvbT4K
KworICAgICAgICBSRUdSRVNTSU9OKHIxMzUzOTkpOiBXcm9uZyBhc3NlcnRpb24gY2F1c2luZyBh
biBhc3NlcnRpb24gZmFpbHVyZTogbV9yYXdBdHRyaWJ1dGVzLmluaXRpYWxTY2FsZSA+IDAKKyAg
ICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTEwMjk3MQorCisg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