<?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>82960</bug_id>
          
          <creation_ts>2012-04-02 15:50:38 -0700</creation_ts>
          <short_desc>[Qt][WK2] Seg fault when property binding to experimental.contentY</short_desc>
          <delta_ts>2012-05-22 04:46:18 -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>WebKit Qt</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>83033</dependson>
          <blocked>76773</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Rafael Brandao">rafael.lobo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abecsi</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>hausmann</cc>
    
    <cc>kenneth</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>593943</commentid>
    <comment_count>0</comment_count>
    <who name="Rafael Brandao">rafael.lobo</who>
    <bug_when>2012-04-02 15:50:38 -0700</bug_when>
    <thetext>It&apos;s easy to reproduce with MiniBrowser code. On BrowserWindow.qml, do the following:

     WebView {
         id: webView
+        property bool scrolledUpToBoundary: webView.experimental.contentY &lt; 0
+        onScrolledUpToBoundaryChanged: console.log(&apos;Scrolled up?&apos; + scrolledUpToBoundary)

It is expected that we can lookup to contentY changes and properly bind the properties here. The comparison webView.experimental.contentY &lt; 0 is causing the seg fault. If instead of this you only work inside experimental.onContentYChanged and print the new value, it works. So you can just force updates to &quot;scrollUpToBoundary&quot; this way inside experimental, but I believe we should be able to do the other way around. Here&apos;s an example of the workaround:

+        property bool scrolledUpToBoundary: false
+        experimental {
+            onContentYChanged: webView.scrolledUpToBoundary = webView.experimental.contentY &lt; 0
+        }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>594587</commentid>
    <comment_count>1</comment_count>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2012-04-03 10:11:09 -0700</bug_when>
    <thetext>This bug might be invalid after https://bugs.webkit.org/show_bug.cgi?id=83033.

(In reply to comment #0)
&gt; It&apos;s easy to reproduce with MiniBrowser code. On BrowserWindow.qml, do the following:
&gt; 
&gt;      WebView {
&gt;          id: webView
&gt; +        property bool scrolledUpToBoundary: webView.experimental.contentY &lt; 0
&gt; +        onScrolledUpToBoundaryChanged: console.log(&apos;Scrolled up?&apos; + scrolledUpToBoundary)
&gt; 
&gt; It is expected that we can lookup to contentY changes and properly bind the properties here. The comparison webView.experimental.contentY &lt; 0 is causing the seg fault. If instead of this you only work inside experimental.onContentYChanged and print the new value, it works. So you can just force updates to &quot;scrollUpToBoundary&quot; this way inside experimental, but I believe we should be able to do the other way around. Here&apos;s an example of the workaround:
&gt; 
&gt; +        property bool scrolledUpToBoundary: false
&gt; +        experimental {
&gt; +            onContentYChanged: webView.scrolledUpToBoundary = webView.experimental.contentY &lt; 0
&gt; +        }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>594932</commentid>
    <comment_count>2</comment_count>
    <who name="Rafael Brandao">rafael.lobo</who>
    <bug_when>2012-04-03 14:57:33 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; This bug might be invalid after https://bugs.webkit.org/show_bug.cgi?id=83033.
&gt; 

Oh yea, hope so. I will mark this one depending on that then. Thanks! :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>630245</commentid>
    <comment_count>3</comment_count>
    <who name="Andras Becsi">abecsi</who>
    <bug_when>2012-05-22 04:46:18 -0700</bug_when>
    <thetext>Since the WebView is a direct subclass of Flickable, this bug is no longer valid.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>