Bug 52078

Summary: Make Geolocation features work in WebKit2
Product: WebKit Reporter: Sam Weinig <sam>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, eric, ossy, webkit-ews, webkit.review.bot
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Bug Depends on: 52191, 52193    
Bug Blocks:    
Attachments:
Description Flags
Patch WIP (Do not review)
none
Attempt 2 (DO NOT REVIEW)
none
Step 1
none
Step 2 none

Sam Weinig
Reported 2011-01-07 13:18:21 PST
Make Geolocation features work in WebKit2
Attachments
Patch WIP (Do not review) (89.45 KB, patch)
2011-01-07 13:19 PST, Sam Weinig
no flags
Attempt 2 (DO NOT REVIEW) (89.89 KB, patch)
2011-01-07 15:00 PST, Sam Weinig
no flags
Step 1 (95.95 KB, patch)
2011-01-07 17:21 PST, Sam Weinig
no flags
Step 2 (55.01 KB, patch)
2011-01-10 17:49 PST, Sam Weinig
no flags
Sam Weinig
Comment 1 2011-01-07 13:18:34 PST
Sam Weinig
Comment 2 2011-01-07 13:19:41 PST
Created attachment 78263 [details] Patch WIP (Do not review)
WebKit Review Bot
Comment 3 2011-01-07 13:50:57 PST
Attachment 78263 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'WebKit2/ChangeLog', u'WebKit2/DerivedSources.make', u'WebKit2/DerivedSources.pro', u'WebKit2/Platform/CoreIPC/HandleMessage.h', u'WebKit2/Platform/CoreIPC/MessageID.h', u'WebKit2/Shared/API/c/WKBase.h', u'WebKit2/Shared/APIObject.h', u'WebKit2/Shared/WebGeolocationPosition.cpp', u'WebKit2/Shared/WebGeolocationPosition.h', u'WebKit2/UIProcess/API/C/WKAPICast.h', u'WebKit2/UIProcess/API/C/WKContext.cpp', u'WebKit2/UIProcess/API/C/WKContext.h', u'WebKit2/UIProcess/API/C/WKGeolocationManager.cpp', u'WebKit2/UIProcess/API/C/WKGeolocationManager.h', u'WebKit2/UIProcess/API/C/WKGeolocationPosition.cpp', u'WebKit2/UIProcess/API/C/WKGeolocationPosition.h', u'WebKit2/UIProcess/API/C/WebKit2.h', u'WebKit2/UIProcess/WebContext.cpp', u'WebKit2/UIProcess/WebContext.h', u'WebKit2/UIProcess/WebGeolocationManagerProxy.cpp', u'WebKit2/UIProcess/WebGeolocationManagerProxy.h', u'WebKit2/UIProcess/WebGeolocationManagerProxy.messages.in', u'WebKit2/UIProcess/WebGeolocationProvider.cpp', u'WebKit2/UIProcess/WebGeolocationProvider.h', u'WebKit2/UIProcess/WebProcessProxy.cpp', u'WebKit2/WebKit2.pro', u'WebKit2/WebKit2.xcodeproj/project.pbxproj', u'WebKit2/WebProcess/Geolocation/WebGeolocationManager.cpp', u'WebKit2/WebProcess/Geolocation/WebGeolocationManager.h', u'WebKit2/WebProcess/Geolocation/WebGeolocationManager.messages.in', u'WebKit2/WebProcess/WebCoreSupport/WebGeolocationClient.cpp', u'WebKit2/WebProcess/WebCoreSupport/WebGeolocationClient.h', u'WebKit2/WebProcess/WebPage/WebPage.cpp', u'WebKit2/WebProcess/WebProcess.cpp', u'WebKit2/WebProcess/WebProcess.h', u'WebKit2/win/WebKit2.vcproj']" exit_code: 1 WebKit2/WebProcess/Geolocation/WebGeolocationManager.h:35: Code inside a namespace should not be indented. [whitespace/indent] [4] WebKit2/UIProcess/WebGeolocationManagerProxy.h:34: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 2 in 36 files If any of these errors are false positives, please file a bug against check-webkit-style.
Early Warning System Bot
Comment 4 2011-01-07 14:26:36 PST
Sam Weinig
Comment 5 2011-01-07 15:00:59 PST
Created attachment 78276 [details] Attempt 2 (DO NOT REVIEW)
WebKit Review Bot
Comment 6 2011-01-07 15:04:15 PST
Attachment 78276 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'WebKit2/ChangeLog', u'WebKit2/DerivedSources.make', u'WebKit2/DerivedSources.pro', u'WebKit2/Platform/CoreIPC/HandleMessage.h', u'WebKit2/Platform/CoreIPC/MessageID.h', u'WebKit2/Shared/API/c/WKBase.h', u'WebKit2/Shared/APIObject.h', u'WebKit2/Shared/WebGeolocationPosition.cpp', u'WebKit2/Shared/WebGeolocationPosition.h', u'WebKit2/UIProcess/API/C/WKAPICast.h', u'WebKit2/UIProcess/API/C/WKContext.cpp', u'WebKit2/UIProcess/API/C/WKContext.h', u'WebKit2/UIProcess/API/C/WKGeolocationManager.cpp', u'WebKit2/UIProcess/API/C/WKGeolocationManager.h', u'WebKit2/UIProcess/API/C/WKGeolocationPosition.cpp', u'WebKit2/UIProcess/API/C/WKGeolocationPosition.h', u'WebKit2/UIProcess/API/C/WebKit2.h', u'WebKit2/UIProcess/WebContext.cpp', u'WebKit2/UIProcess/WebContext.h', u'WebKit2/UIProcess/WebGeolocationManagerProxy.cpp', u'WebKit2/UIProcess/WebGeolocationManagerProxy.h', u'WebKit2/UIProcess/WebGeolocationManagerProxy.messages.in', u'WebKit2/UIProcess/WebGeolocationProvider.cpp', u'WebKit2/UIProcess/WebGeolocationProvider.h', u'WebKit2/UIProcess/WebProcessProxy.cpp', u'WebKit2/WebKit2.pro', u'WebKit2/WebKit2.xcodeproj/project.pbxproj', u'WebKit2/WebProcess/Geolocation/WebGeolocationManager.cpp', u'WebKit2/WebProcess/Geolocation/WebGeolocationManager.h', u'WebKit2/WebProcess/Geolocation/WebGeolocationManager.messages.in', u'WebKit2/WebProcess/WebCoreSupport/WebGeolocationClient.cpp', u'WebKit2/WebProcess/WebCoreSupport/WebGeolocationClient.h', u'WebKit2/WebProcess/WebPage/WebPage.cpp', u'WebKit2/WebProcess/WebProcess.cpp', u'WebKit2/WebProcess/WebProcess.h', u'WebKit2/win/WebKit2.vcproj']" exit_code: 1 WebKit2/WebProcess/Geolocation/WebGeolocationManager.h:35: Code inside a namespace should not be indented. [whitespace/indent] [4] WebKit2/UIProcess/WebGeolocationManagerProxy.h:34: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 2 in 36 files If any of these errors are false positives, please file a bug against check-webkit-style.
Early Warning System Bot
Comment 7 2011-01-07 16:48:16 PST
Sam Weinig
Comment 8 2011-01-07 17:21:18 PST
Anders Carlsson
Comment 9 2011-01-10 11:15:47 PST
Comment on attachment 78292 [details] Step 1 View in context: https://bugs.webkit.org/attachment.cgi?id=78292&action=review > WebKit2/WebProcess/Geolocation/WebGeolocationManager.h:47 > + WebGeolocationManager(WebProcess*); Please make this explicit. > WebKit2/WebProcess/WebCoreSupport/WebGeolocationClient.cpp:55 > +{ Should this be implemented? > WebKit2/WebProcess/WebCoreSupport/WebGeolocationClient.cpp:64 > +{ Should this be implemented? > WebKit2/WebProcess/WebCoreSupport/WebGeolocationClient.cpp:68 > +{ Should this be implemented?
Sam Weinig
Comment 10 2011-01-10 11:20:58 PST
Sam Weinig
Comment 11 2011-01-10 17:49:35 PST
Anders Carlsson
Comment 12 2011-01-10 17:54:52 PST
Comment on attachment 78480 [details] Step 2 View in context: https://bugs.webkit.org/attachment.cgi?id=78480&action=review > WebKit2/UIProcess/GeolocationPermissionRequestManagerProxy.cpp:43 > + for (; it != end; ++it) This should read for (PendingRequestMap::const_iterator it = m_pendingRequests.begin(), end = m_pendingRequests.end(); it != end; ++it) > WebKit2/WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:73 > + m_idToGeolocationMap.remove(it->second); Is this allowed? I thought it would be invalidated by the first call to .remove
Sam Weinig
Comment 13 2011-01-10 18:15:45 PST
Early Warning System Bot
Comment 14 2011-01-10 18:28:15 PST
WebKit Review Bot
Comment 15 2011-01-10 18:46:07 PST
http://trac.webkit.org/changeset/75460 might have broken SnowLeopard Intel Release (Build)
Csaba Osztrogonác
Comment 16 2011-01-10 20:43:30 PST
Reopen, because it was rolled out: http://trac.webkit.org/changeset/75474
Csaba Osztrogonác
Comment 17 2011-01-10 20:55:06 PST
And the unreviewed build fix was rolled out too: http://trac.webkit.org/changeset/75475
Csaba Osztrogonác
Comment 18 2011-01-11 00:27:49 PST
#webkit: <weinig> It is not clear why the geolocation patch I landed today was rolled out <weinig> The bug doesn't mention what broke <weinig> and the buildbot seems to indicate that the issue was with drawing area related code, though I may be missing where there was geolocation related code Qt EWS mentioned what the problem is in Comment #14
Csaba Osztrogonác
Comment 19 2011-01-11 02:40:22 PST
Comment on attachment 78480 [details] Step 2 View in context: https://bugs.webkit.org/attachment.cgi?id=78480&action=review > WebKit2/WebProcess/Geolocation/WebGeolocationManager.h:42 > +namespace WebCore { > +class Geolocation; > +} These lines caused the build fail. If you remove them, and add #include <WebCore/Geolocation.h> , Qt build will happy.
Csaba Osztrogonác
Comment 20 2011-01-11 09:08:48 PST
Comment on attachment 78480 [details] Step 2 remove r+ from rolled out patch
Sam Weinig
Comment 21 2011-01-11 09:56:48 PST
(In reply to comment #18) > #webkit: > <weinig> It is not clear why the geolocation patch I landed today was rolled out > <weinig> The bug doesn't mention what broke > <weinig> and the buildbot seems to indicate that the issue was with drawing area related code, though I may be missing where there was geolocation related code > > Qt EWS mentioned what the problem is in Comment #14 Thanks, I couldn't find that on the buildbot output for some reason.
Sam Weinig
Comment 22 2011-01-11 09:57:09 PST
Rolled back in, with a slightly different fix in http://trac.webkit.org/changeset/75508.
Note You need to log in before you can comment on or make changes to this bug.