Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Issue 1352863003: permissions: add layout tests for multiple requests (Closed)

Created:
5 years, 3 months ago by Lalit Maganti
Modified:
5 years, 3 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@fix-request-test
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

permissions: add layout tests for multiple requests No permisisons, single, multiple and duplicate permissions are all tested. Permission updates being reflected in the request is also tested. This CL depends on https://codereview.chromium.org/1352863002/ as it adds the ability to reset permisisons. BUG=516626 Committed: https://crrev.com/3f93847acbf05646881eddde65fc285eb60d8556 Cr-Commit-Position: refs/heads/master@{#350677}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address review comments #

Patch Set 3 : Fix tests failing #

Total comments: 17

Patch Set 4 : Address review comments #

Patch Set 5 : Fix worker failures #

Patch Set 6 : Simplify resets #

Patch Set 7 : Make sure everything is uploaded #

Patch Set 8 : Attempt to fix Windows bot #

Messages

Total messages: 20 (5 generated)
Lalit Maganti
Mounir: FYI for after the dependencies land.
5 years, 3 months ago (2015-09-17 18:18:31 UTC) #2
Lalit Maganti
https://codereview.chromium.org/1352863003/diff/1/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js File LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js (right): https://codereview.chromium.org/1352863003/diff/1/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js#newcode93 LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js:93: function runTest(i) { Should probably factor this out into ...
5 years, 3 months ago (2015-09-17 20:01:05 UTC) #3
mlamouri (slow - plz ping)
https://codereview.chromium.org/1352863003/diff/1/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js File LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js (right): https://codereview.chromium.org/1352863003/diff/1/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js#newcode37 LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js:37: callback(); Could you call navigator.permissions.revoke(): navigator.permissions.revoke({name:'geolocation'}).then(callback); https://codereview.chromium.org/1352863003/diff/1/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js#newcode52 LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js:52: return ...
5 years, 3 months ago (2015-09-23 14:24:28 UTC) #4
Lalit Maganti
https://codereview.chromium.org/1352863003/diff/1/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js File LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js (right): https://codereview.chromium.org/1352863003/diff/1/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js#newcode37 LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js:37: callback(); On 2015/09/23 14:24:28, Mounir Lamouri wrote: > Could ...
5 years, 3 months ago (2015-09-24 09:26:43 UTC) #5
mlamouri (slow - plz ping)
https://codereview.chromium.org/1352863003/diff/40001/third_party/WebKit/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js File third_party/WebKit/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js (right): https://codereview.chromium.org/1352863003/diff/40001/third_party/WebKit/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js#newcode37 third_party/WebKit/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js:37: return setPermission('geolocation', 'denied', location.origin, location.origin); nit: add a comment ...
5 years, 3 months ago (2015-09-24 11:12:42 UTC) #6
Lalit Maganti
https://codereview.chromium.org/1352863003/diff/40001/third_party/WebKit/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js File third_party/WebKit/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js (right): https://codereview.chromium.org/1352863003/diff/40001/third_party/WebKit/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js#newcode37 third_party/WebKit/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js:37: return setPermission('geolocation', 'denied', location.origin, location.origin); On 2015/09/24 11:12:42, Mounir ...
5 years, 3 months ago (2015-09-24 11:24:36 UTC) #7
Lalit Maganti
https://codereview.chromium.org/1352863003/diff/40001/third_party/WebKit/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js File third_party/WebKit/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js (right): https://codereview.chromium.org/1352863003/diff/40001/third_party/WebKit/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js#newcode65 third_party/WebKit/LayoutTests/http/tests/permissions/chromium/resources/test-request-multiple.js:65: return setPermission('notifications', 'denied', location.origin, location.origin); On 2015/09/24 11:12:42, Mounir ...
5 years, 3 months ago (2015-09-24 12:43:39 UTC) #8
Lalit Maganti
Mounir: should be good now. PTAL.
5 years, 3 months ago (2015-09-24 13:50:10 UTC) #9
mlamouri (slow - plz ping)
lgtm
5 years, 3 months ago (2015-09-24 15:09:51 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1352863003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1352863003/120001
5 years, 3 months ago (2015-09-24 15:10:18 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/111781)
5 years, 3 months ago (2015-09-24 17:15:12 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1352863003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1352863003/140001
5 years, 3 months ago (2015-09-24 20:26:35 UTC) #17
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 3 months ago (2015-09-24 21:54:29 UTC) #18
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/3f93847acbf05646881eddde65fc285eb60d8556 Cr-Commit-Position: refs/heads/master@{#350677}
5 years, 3 months ago (2015-09-24 21:55:20 UTC) #19
Michael van Ouwerkerk
5 years, 2 months ago (2015-09-25 15:15:19 UTC) #20
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/1369723002/ by mvanouwerkerk@chromium.org.

The reason for reverting is: Oddly one test is failing on Win7: 535931. Sorry
for the revert..

Powered by Google App Engine
This is Rietveld 408576698