<?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>51100</bug_id>
          
          <creation_ts>2010-12-15 02:46:09 -0800</creation_ts>
          <short_desc>[QT] QtWebkit geolocation&apos;s position.timestamp is not in miliseconds</short_desc>
          <delta_ts>2011-01-03 05:32:24 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mahesh Kulkarni">maheshk</reporter>
          <assigned_to name="Mahesh Kulkarni">maheshk</assigned_to>
          <cc>ademar</cc>
    
    <cc>bulach</cc>
    
    <cc>commit-queue</cc>
    
    <cc>hausmann</cc>
    
    <cc>jarred</cc>
    
    <cc>laszlo.gombos</cc>
    
    <cc>mitz</cc>
    
    <cc>steveblock</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>322555</commentid>
    <comment_count>0</comment_count>
    <who name="Mahesh Kulkarni">maheshk</who>
    <bug_when>2010-12-15 02:46:09 -0800</bug_when>
    <thetext>According to HTML5 GeoLocation standards, (Geo)Position interface’s timestamp should be of DOMTimestamp type and DOMTimestamp represents a number of milliseconds. 

Ref: http://dev.w3.org/geo/api/spec-source.html#position_interface 
       http://www.w3.org/TR/DOM-Level-3-Core/core.html#Core-DOMTimeStamp 

However in QTWebKit code while creating Geoposition object, timestamp was in ‘seconds ‘ (using QDateTime::toTime_t() function  which returns the datetime as the number of seconds that have passed since 1970-01-01T00:00:00 UTC ) instead of ‘miliseconds’ (QDateTime:: toMSecsSinceEpoch() which returns the datetime as the number of milliseconds that have passed since 1970-01-01T00:00:00.000). So patched GeolocationServiceQt::positionUpdated() function to create Geoposition object using milliseconds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>322584</commentid>
    <comment_count>1</comment_count>
    <who name="Jarred Nicholls">jarred</who>
    <bug_when>2010-12-15 06:22:40 -0800</bug_when>
    <thetext>diff --git a/WebCore/platform/qt/GeolocationServiceQt.cpp b/WebCore/platform/qt/GeolocationServiceQt.cpp
index 3562eb9..2cccee6 100644
--- a/WebCore/platform/qt/GeolocationServiceQt.cpp
+++ b/WebCore/platform/qt/GeolocationServiceQt.cpp
@@ -83,7 +83,7 @@ void GeolocationServiceQt::positionUpdated(const QGeoPositionInfo &amp;geoPosition)
     RefPtr&lt;Coordinates&gt; coordinates = Coordinates::create(latitude, longitude, providesAltitude, altitude,
                                                           accuracy, providesAltitudeAccuracy, altitudeAccuracy,
                                                           providesHeading, heading, providesSpeed, speed);
-    m_lastPosition = Geoposition::create(coordinates.release(), geoPosition.timestamp().toTime_t());
+    m_lastPosition = Geoposition::create(coordinates.release(), geoPosition.timestamp().toMSecsSinceEpoch());
     positionChanged();
 }
 
LayoutTests/fast/dom/Geolocation/timestamp.html appears to pass.  Nice catch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324302</commentid>
    <comment_count>2</comment_count>
      <attachid>76979</attachid>
    <who name="Mahesh Kulkarni">maheshk</who>
    <bug_when>2010-12-20 00:21:21 -0800</bug_when>
    <thetext>Created attachment 76979
patch

Proposing patch, now qtwebkit milisec timestamp from GeoPosition. Please review</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324303</commentid>
    <comment_count>3</comment_count>
      <attachid>76979</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-12-20 00:45:28 -0800</bug_when>
    <thetext>Comment on attachment 76979
patch

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

&gt; WebCore/platform/qt/GeolocationServiceQt.cpp:86
&gt; -    m_lastPosition = Geoposition::create(coordinates.release(), geoPosition.timestamp().toTime_t());
&gt; +    m_lastPosition = Geoposition::create(coordinates.release(), geoPosition.timestamp().toMSecsSinceEpoch());

toMSecsSinceEpoch() is new in Qt 4.7. Since we still support building QtWebKit against Qt 4.6, this needs a QT_VERSION check and something for 4.6.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324343</commentid>
    <comment_count>4</comment_count>
      <attachid>76991</attachid>
    <who name="Mahesh Kulkarni">maheshk</who>
    <bug_when>2010-12-20 05:40:28 -0800</bug_when>
    <thetext>Created attachment 76991
patch

Thanks Kling for review. 

Incorporated review comments as per comment 3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324357</commentid>
    <comment_count>5</comment_count>
      <attachid>76991</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-12-20 06:27:58 -0800</bug_when>
    <thetext>Comment on attachment 76991
patch

LGTM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324386</commentid>
    <comment_count>6</comment_count>
      <attachid>76991</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-12-20 07:34:03 -0800</bug_when>
    <thetext>Comment on attachment 76991
patch

Rejecting attachment 76991 from commit-queue.

Failed to run &quot;[&apos;./Tools/Scripts/webkit-patch&apos;, &apos;--status-host=queues.webkit.org&apos;, &apos;--bot-id=cr-jail-3&apos;, &apos;apply-attachment&apos;, &apos;--non-interactive&apos;, 76991]&quot; exit_code: 2
Last 500 characters of output:
/ChangeLog
Failed to merge in the changes.
Patch failed at 0001 2010-12-20  Yury Semikhatsky  &lt;yurys@chromium.org&gt;

When you have resolved this problem run &quot;git rebase --continue&quot;.
If you would prefer to skip this patch, instead run &quot;git rebase --skip&quot;.
To restore the original branch and stop rebasing run &quot;git rebase --abort&quot;.

rebase refs/remotes/origin/master: command returned error: 1

Died at Tools/Scripts/update-webkit line 132.

Failed to run &quot;[&apos;Tools/Scripts/update-webkit&apos;]&quot; exit_code: 2

Full output: http://queues.webkit.org/results/7269066</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324409</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-12-20 08:23:51 -0800</bug_when>
    <thetext>The commit-queue encountered the following flaky tests while processing attachment 76991:

inspector/elements-panel-rewrite-href.html bug 51337 (authors: apavlov@chromium.org, pfeldman@chromium.org, and yurys@chromium.org)
The commit-queue is continuing to process your patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324851</commentid>
    <comment_count>8</comment_count>
      <attachid>76991</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-12-20 23:05:59 -0800</bug_when>
    <thetext>Comment on attachment 76991
patch

That cq bug has finally been fixed.  Sorry for the trouble.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324877</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-12-20 23:49:04 -0800</bug_when>
    <thetext>The commit-queue encountered the following flaky tests while processing attachment 76991:

inspector/styles-disable-then-enable.html bug 51384 (author: pfeldman@chromium.org)
The commit-queue is continuing to process your patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324879</commentid>
    <comment_count>10</comment_count>
      <attachid>76991</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-12-20 23:50:28 -0800</bug_when>
    <thetext>Comment on attachment 76991
patch

Clearing flags on attachment: 76991

Committed r74404: &lt;http://trac.webkit.org/changeset/74404&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324880</commentid>
    <comment_count>11</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-12-20 23:50:34 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>328538</commentid>
    <comment_count>12</comment_count>
    <who name="Ademar Reis">ademar</who>
    <bug_when>2011-01-03 05:32:15 -0800</bug_when>
    <thetext>Revision r74404 cherry-picked into qtwebkit-2.2 with commit be21b13 &lt;http://gitorious.org/webkit/qtwebkit/commit/be21b13&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>76979</attachid>
            <date>2010-12-20 00:21:21 -0800</date>
            <delta_ts>2010-12-20 05:40:28 -0800</delta_ts>
            <desc>patch</desc>
            <filename>51100.patch</filename>
            <type>text/plain</type>
            <size>1914</size>
            <attacher name="Mahesh Kulkarni">maheshk</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
MmE0NDU0ZS4uMTAyM2E0ZiAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwyMiBAQAorMjAxMC0xMi0yMCAgTWFoZXNoIEt1bGth
cm5pICA8bWFoZXNoLmt1bGthcm5pQG5va2lhLmNvbT4KKworICAgICAgICBSZXZpZXdlZCBieSBO
T0JPRFkgKE9PUFMhKS4KKworICAgICAgICBRdCBwb3J0IG9mIGdlb2xvY2F0aW9uLCBnZW9wb3Np
dGlvbiBvYmplY3RzIHRpbWVzdGFtcCB3YXMgaW4gc2Vjb25kcworICAgICAgICBpbnN0ZWFkIG9m
IG1pbGlzZWNvbmRzIGFzIHBlciBIVE1MNSBHZW9sb2NhdGlvbiBzdGFuZGFyZHMuCisgICAgICAg
IFJlZjogaHR0cDovL2Rldi53My5vcmcvZ2VvL2FwaS9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NhdGlvblNlcnZpY2VRdC5jcHAKQEAgLTgzLDcg
KzgzLDcgQEAgdm9pZCBHZW9sb2NhdGlvblNlcnZpY2VRdDo6cG9zaXRpb25VcGRhdGVkKGNvbnN0
IFFHZW9Qb3NpdGlvbkluZm8gJmdlb1Bvc2l0aW9uKQogICAgIFJlZlB0cjxDb29yZGluYXRlcz4g
Y29vcmRpbmF0ZXMgPSBDb29yZGluYXRlczo6Y3JlYXRlKGxhdGl0dWRlLCBsb25naXR1ZGUsIHBy
b3ZpZGVzQWx0aXR1ZGUsIGFsdGl0dWRlLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFjY3VyYWN5LCBwcm92aWRlc0FsdGl0dWRlQWNj
dXJhY3ksIGFsdGl0dWRlQWNjdXJhY3ksCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJvdmlkZXNIZWFkaW5nLCBoZWFkaW5nLCBwcm92
aWRlc1NwZWVkLCBzcGVlZCk7Ci0gICAgbV9sYXN0UG9zaXRpb24gPSBHZW9wb3NpdGlvbjo6Y3Jl
YXRlKGNvb3JkaW5hdGVzLnJlbGVhc2UoKSwgZ2VvUG9zaXRpb24udGltZXN0YW1wKCkudG9UaW1l
X3QoKSk7CisgICAgbV9sYXN0UG9zaXRpb24gPSBHZW9wb3NpdGlvbjo6Y3JlYXRlKGNvb3JkaW5h
dGVzLnJlbGVhc2UoKSwgZ2VvUG9zaXRpb24udGltZXN0YW1wKCkudG9NU2Vjc1NpbmNlRXBvY2go
KSk7CiAgICAgcG9zaXRpb25DaGFuZ2VkKCk7CiB9CiAK
</data>
<flag name="review"
          id="68020"
          type_id="1"
          status="-"
          setter="kling"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>76991</attachid>
            <date>2010-12-20 05:40:28 -0800</date>
            <delta_ts>2010-12-20 23:50:28 -0800</delta_ts>
            <desc>patch</desc>
            <filename>51100.patch</filename>
            <type>text/plain</type>
            <size>2155</size>
            <attacher name="Mahesh Kulkarni">maheshk</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
MmE0NDU0ZS4uMTAyM2E0ZiAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwyMiBAQAorMjAxMC0xMi0yMCAgTWFoZXNoIEt1bGth
cm5pICA8bWFoZXNoLmt1bGthcm5pQG5va2lhLmNvbT4KKworICAgICAgICBSZXZpZXdlZCBieSBO
T0JPRFkgKE9PUFMhKS4KKworICAgICAgICBRdCBwb3J0IG9mIGdlb2xvY2F0aW9uLCBnZW9wb3Np
dGlvbiBvYmplY3RzIHRpbWVzdGFtcCB3YXMgaW4gc2Vjb25kcworICAgICAgICBpbnN0ZWFkIG9m
IG1pbGlzZWNvbmRzIGFzIHBlciBIVE1MNSBHZW9sb2NhdGlvbiBzdGFuZGFyZHMuCisgICAgICAg
IFJlZjogaHR0cDovL2Rldi53My5vcmcvZ2VvL2FwaS9zcGVjLXNvdXJjZS5odG1sI3Bvc2l0aW9u
X2ludGVyZmFjZSAKKyAgICAgICAgaHR0cDovL3d3dy53My5vcmcvVFIvRE9NLUxldmVsLTMtQ29y
ZS9jb3JlLmh0bWwjQ29yZS1ET01UaW1lU3RhbXAgCisKKyAgICAgICAgSW1wbGVtZW50ZWQgYnkg
QXNoZWVzaCBTcml2YXN0YXZhLgorCisgICAgICAgIFtRVF0gUXRXZWJraXQgZ2VvbG9jYXRpb24n
cyBwb3NpdGlvbi50aW1lc3RhbXAgaXMgbm90IGluIG1pbGlzZWNvbmRzCisgICAgICAgIGh0dHBz
Oi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9p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Y2N1cmFjeSwgcHJvdmlkZXNBbHRpdHVkZUFj
Y3VyYWN5LCBhbHRpdHVkZUFjY3VyYWN5LAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByb3ZpZGVzSGVhZGluZywgaGVhZGluZywgcHJv
dmlkZXNTcGVlZCwgc3BlZWQpOwotICAgIG1fbGFzdFBvc2l0aW9uID0gR2VvcG9zaXRpb246OmNy
ZWF0ZShjb29yZGluYXRlcy5yZWxlYXNlKCksIGdlb1Bvc2l0aW9uLnRpbWVzdGFtcCgpLnRvVGlt
ZV90KCkpOworCisjaWYgUVRfVkVSU0lPTiA+PSBRVF9WRVJTSU9OX0NIRUNLKDQsIDcsIDApCisg
ICAgbV9sYXN0UG9zaXRpb24gPSBHZW9wb3NpdGlvbjo6Y3JlYXRlKGNvb3JkaW5hdGVzLnJlbGVh
c2UoKSwgZ2VvUG9zaXRpb24udGltZXN0YW1wKCkudG9NU2Vjc1NpbmNlRXBvY2goKSk7CisjZWxz
ZQorICAgIFFEYXRlVGltZSB0aW1lc3RhbXAgPSBnZW9Qb3NpdGlvbi50aW1lc3RhbXAoKTsKKyAg
ICBtX2xhc3RQb3NpdGlvbiA9IEdlb3Bvc2l0aW9uOjpjcmVhdGUoY29vcmRpbmF0ZXMucmVsZWFz
ZSgpLCAodGltZXN0YW1wLnRvVGltZV90KCkgKiAxMDAwLjAwKSArIHRpbWVzdGFtcC50aW1lKCku
bXNlYygpKTsKKyNlbmRpZgogICAgIHBvc2l0aW9uQ2hhbmdlZCgpOwogfQogCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>