WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 42545
WebKitTestRunner needs layoutTestController.setGeolocationPermission
https://bugs.webkit.org/show_bug.cgi?id=42545
Summary
WebKitTestRunner needs layoutTestController.setGeolocationPermission
Maciej Stachowiak
Reported
2010-07-18 21:47:15 PDT
WebKitTestRunner needs layoutTestController.setGeolocationPermission
Attachments
Implementation of setGeolocationPermission
(11.66 KB, patch)
2012-01-20 00:32 PST
,
Nandor Huszka
no flags
Details
Formatted Diff
Diff
Implementation of setGeolocationPermission
(11.74 KB, patch)
2012-01-20 01:14 PST
,
Nandor Huszka
no flags
Details
Formatted Diff
Diff
Implementation of setGeolocationPermission
(11.70 KB, patch)
2012-01-20 04:19 PST
,
Nandor Huszka
no flags
Details
Formatted Diff
Diff
Implementation of setGeolocationPermission
(11.70 KB, patch)
2012-01-20 04:26 PST
,
Nandor Huszka
no flags
Details
Formatted Diff
Diff
Implementation of setGeolocationPermission
(11.75 KB, patch)
2012-01-24 06:48 PST
,
Nandor Huszka
no flags
Details
Formatted Diff
Diff
Implementation of setGeolocationPermission
(12.78 KB, patch)
2012-01-24 07:32 PST
,
Nandor Huszka
no flags
Details
Formatted Diff
Diff
Implementation of setGeolocationPermission
(13.51 KB, patch)
2012-01-26 01:08 PST
,
Nandor Huszka
no flags
Details
Formatted Diff
Diff
Show Obsolete
(6)
View All
Add attachment
proposed patch, testcase, etc.
Maciej Stachowiak
Comment 1
2010-07-18 21:52:12 PDT
<
rdar://problem/8204915
>
Mahesh Kulkarni
Comment 2
2011-04-22 17:09:08 PDT
***
Bug 59202
has been marked as a duplicate of this bug. ***
Nandor Huszka
Comment 3
2012-01-20 00:32:47 PST
Created
attachment 123262
[details]
Implementation of setGeolocationPermission WebKit must be builded with the Tools/Scripts/build-webkit DEFINES+=ENABLE_CLIENT_BASED_GEOLOCATION=1 command, if we want to test this special function. I have move tests to the appropriate group, most of tests which were at label "# WebKitTestRunner needs layoutTestController.setGeolocationPermission" now need layoutTestController.setMockGeolocationPosition or layoutTestController.setMockGeolocationError. Two of these tests sometimes cause WebProcess crash, they have been labeled too.
WebKit Review Bot
Comment 4
2012-01-20 00:34:04 PST
Attachment 123262
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/plat..." exit_code: 1 LayoutTests/ChangeLog:1: ChangeLog entry has no bug number [changelog/bugnumber] [5] Total errors found: 1 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Nandor Huszka
Comment 5
2012-01-20 01:14:24 PST
Created
attachment 123268
[details]
Implementation of setGeolocationPermission Fixing the style issue.
Nandor Huszka
Comment 6
2012-01-20 04:19:24 PST
Created
attachment 123286
[details]
Implementation of setGeolocationPermission From win buildlog: 11>..\WebProcess\InjectedBundle\InjectedBundle.cpp(52) : fatal error C1083: Cannot open include file: 'WebCore/page/GeolocationClient.h': No such file or directory That is why I have replace the imports, e.g. #include <WebCore/page/GeolocationController.h> with #include "GeolocationClient.h".
WebKit Review Bot
Comment 7
2012-01-20 04:22:29 PST
Attachment 123286
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/plat..." exit_code: 1 Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp:33: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 1 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Nandor Huszka
Comment 8
2012-01-20 04:26:26 PST
Created
attachment 123289
[details]
Implementation of setGeolocationPermission Style fixing again, imports were in wrong order.
Andras Becsi
Comment 9
2012-01-24 06:13:22 PST
(In reply to
comment #8
)
> Created an attachment (id=123289) [details] > Implementation of setGeolocationPermission > > Style fixing again, imports were in wrong order.
Try using #include <WebCore/...> for the headers, this should fix the windows build.
Nandor Huszka
Comment 10
2012-01-24 06:48:50 PST
Created
attachment 123727
[details]
Implementation of setGeolocationPermission Andras Becsi, thank you for the tip, I have done that.
Nandor Huszka
Comment 11
2012-01-24 07:32:58 PST
Created
attachment 123731
[details]
Implementation of setGeolocationPermission I have inserted a new line in /WebCore/WebCore.vcproj/copyForwardingHeaders.cmd: xcopy /y /d "%ProjectDir%..\platform\mock\*.h" "%CONFIGURATIONBUILDDIR%\include\WebCore" I hope GeolocationClientMock.h can be found with this.
Simon Hausmann
Comment 12
2012-01-26 00:21:38 PST
Comment on
attachment 123731
[details]
Implementation of setGeolocationPermission View in context:
https://bugs.webkit.org/attachment.cgi?id=123731&action=review
> Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:73 > +WK_EXPORT void WKBundlesetGeolocationPermission(WKBundleRef bundle, WKBundlePageGroupRef pageGroup, bool enabled);
WKBundlesetGeolocationPermission -> WKBundle_S_etGeolocationPermission
> Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp:171 > + (static_cast<GeolocationClientMock*>((*iter)->geolocationController()->client()))->setPermission(enabled);
I think you can remove the parentheses around the static_cast, i.e. write static_cast<Foo*>(bar)->blub(); instead of (static_cast<Foo*>(bar))->blub();
Nandor Huszka
Comment 13
2012-01-26 01:08:56 PST
Created
attachment 124074
[details]
Implementation of setGeolocationPermission Simon, thank you, I have fixed the style issues that you have mentioned.
Zoltan Herczeg
Comment 14
2012-01-26 02:06:35 PST
Comment on
attachment 124074
[details]
Implementation of setGeolocationPermission r=me
WebKit Review Bot
Comment 15
2012-01-26 04:16:40 PST
Comment on
attachment 124074
[details]
Implementation of setGeolocationPermission Clearing flags on attachment: 124074 Committed
r105988
: <
http://trac.webkit.org/changeset/105988
>
WebKit Review Bot
Comment 16
2012-01-26 04:16:45 PST
All reviewed patches have been landed. Closing bug.
Benjamin Poulain
Comment 17
2012-09-20 16:52:21 PDT
For info, this is not how you are supposed to test Geolocation. You are supposed to go implement the provider in the UIProcess, not punch through the layers.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug