WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
93977
Implement testRunner.numberOfPendingGeolocationPermissionRequests()
https://bugs.webkit.org/show_bug.cgi?id=93977
Summary
Implement testRunner.numberOfPendingGeolocationPermissionRequests()
Sergio Villar Senin
Reported
2012-08-14 09:25:25 PDT
At least required by fast/dom/Geolocation/page-reload-cancel-permission-requests.html
Attachments
Patch
(10.80 KB, patch)
2013-06-06 13:35 PDT
,
Javier Fernandez
benjamin
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Javier Fernandez
Comment 1
2013-06-06 13:35:48 PDT
Created
attachment 203964
[details]
Patch
Darin Adler
Comment 2
2013-06-06 13:47:31 PDT
Comment on
attachment 203964
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=203964&action=review
> Tools/WebKitTestRunner/TestInvocation.cpp:679 > + int number = TestController::shared().numberOfPendingGeolocationPermissionRequests(); > + WKRetainPtr<WKTypeRef> result(AdoptWK, WKUInt64Create(number)); > + return result;
The right way to write this is: return adoptWK(WKUInt64Create(TestController::shared().numberOfPendingGeolocationPermissionRequests())); No need for the local variables.
Benjamin Poulain
Comment 3
2013-06-06 13:59:36 PDT
Comment on
attachment 203964
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=203964&action=review
This is wrong. I think you missed what this test does. On reload, WebKit should call GeolocationClient::cancelPermissionRequest() which should in turn cancel the permissionRequest on the UIProcess side. This part is not wired to anything which is why that does not work. You are just breaking the test to make it pass.
> LayoutTests/ChangeLog:4 > + > + The testsRunner should request for Geolocation Permissions. > + Unskip test.
The description goes under the title. See the other changelogs.
> LayoutTests/fast/dom/Geolocation/script-tests/page-reload-cancel-permission-requests.js:15 > + if (!isReload) { > + testRunner.setGeolocationPermission(true); > + }
Wrong indent. You are breaking the test by doing this. Why do you do that?
Benjamin Poulain
Comment 4
2013-06-06 14:00:48 PDT
Please CC/Ping me for Geolocation patches.
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