<?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>143710</bug_id>
          
          <creation_ts>2015-04-14 05:00:19 -0700</creation_ts>
          <short_desc>[GTK] Webkit2Gtk: no api to get and set scroll position</short_desc>
          <delta_ts>2016-02-04 04:02:23 -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>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jan">EvilTwin1</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>chavarria1991</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1085110</commentid>
    <comment_count>0</comment_count>
    <who name="Jan">EvilTwin1</who>
    <bug_when>2015-04-14 05:00:19 -0700</bug_when>
    <thetext>Currently there seems to be no way to get and set the scroll position of the webview.
This was possible in webkit1 because the webview implemented the gtk scrollable interface and could be placed inside an scrolledwindow.
It would be nice to have this functionality back with webkit2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1085424</commentid>
    <comment_count>1</comment_count>
    <who name="Marcos Chavarría Teijeiro (irc: chavaone)">chavarria1991</who>
    <bug_when>2015-04-15 00:58:39 -0700</bug_when>
    <thetext>You can use JavaScript to get and set the scroll position. Using window.scrollTo(x,y) JS function and window.scrollX and window.scrollY properties.

https://wiki.gnome.org/Projects/WebKitGtk/ProgrammingGuide/Cookbook#Scrolling</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1161970</commentid>
    <comment_count>2</comment_count>
    <who name="Jan">EvilTwin1</who>
    <bug_when>2016-02-04 04:02:23 -0800</bug_when>
    <thetext>I think this can be closed now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>