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

Issue 1859343002: ServiceWorker: Remove iframes explicitly after a test is finished (Closed)

Created:
4 years, 8 months ago by shimazu (google)
Modified:
4 years, 8 months ago
Reviewers:
falken, nhiroki
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, tzik, serviceworker-reviews, nhiroki, falken, kinuko+serviceworker, blink-reviews, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ServiceWorker: Remove iframes explicitly after a test is finished On Firefox, reloading a test page which has an iframe controlling unregistered SW doesn't release the worker though the iframe is already released, and this results failure of the subsequent test. Removing iframes after the test is finished would be a solution for this problem. BUG=594032 TEST=./third_party/WebKit/Tools/Scripts/run-webkit-tests -t Default http/tests/serviceworker Committed: https://crrev.com/025c7a5cefe328486bcd4309c2b945987a09374c Cr-Commit-Position: refs/heads/master@{#385699}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Change the default reclamation policy and get all the tests are passed #

Patch Set 3 : Remove a comment line #

Total comments: 8

Patch Set 4 : Change the style of how to specify auto_remove #

Messages

Total messages: 20 (6 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1859343002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1859343002/1
4 years, 8 months ago (2016-04-06 06:29:03 UTC) #2
shimazu (google)
PTAL :) # Sadly I'm locked out of my chromium account because of the 2-factor ...
4 years, 8 months ago (2016-04-06 06:33:35 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-06 07:35:22 UTC) #6
nhiroki
Looks good. Added minor comments. https://codereview.chromium.org/1859343002/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test-helpers.js File third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test-helpers.js (right): https://codereview.chromium.org/1859343002/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test-helpers.js#newcode47 third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test-helpers.js:47: // iframe when it ...
4 years, 8 months ago (2016-04-06 07:46:35 UTC) #7
falken
https://codereview.chromium.org/1859343002/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test-helpers.js File third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test-helpers.js (right): https://codereview.chromium.org/1859343002/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test-helpers.js#newcode47 third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test-helpers.js:47: // iframe when it finishes loading. By default, the ...
4 years, 8 months ago (2016-04-06 07:49:05 UTC) #9
shimazu (google)
Thanks, and I changed the default behavior of with_iframe. This won't cause problems in any ...
4 years, 8 months ago (2016-04-07 04:17:59 UTC) #10
nhiroki
https://codereview.chromium.org/1859343002/diff/40001/third_party/WebKit/LayoutTests/http/tests/serviceworker/controller-on-load.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/controller-on-load.html (right): https://codereview.chromium.org/1859343002/diff/40001/third_party/WebKit/LayoutTests/http/tests/serviceworker/controller-on-load.html#newcode17 third_party/WebKit/LayoutTests/http/tests/serviceworker/controller-on-load.html:17: return with_iframe(scope, true); |IFRAME_RECLAMATION.TRUE| is the default behavior, so ...
4 years, 8 months ago (2016-04-07 05:37:18 UTC) #11
falken
https://codereview.chromium.org/1859343002/diff/40001/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test-helpers.js File third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test-helpers.js (right): https://codereview.chromium.org/1859343002/diff/40001/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test-helpers.js#newcode50 third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/test-helpers.js:50: var IFRAME_RECLAMATION = Object.freeze({TRUE: true, FALSE: false}); On 2016/04/07 ...
4 years, 8 months ago (2016-04-07 05:47:26 UTC) #12
shimazu (google)
Incorporated with the reviews. PTAL again. https://codereview.chromium.org/1859343002/diff/40001/third_party/WebKit/LayoutTests/http/tests/serviceworker/controller-on-load.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/controller-on-load.html (right): https://codereview.chromium.org/1859343002/diff/40001/third_party/WebKit/LayoutTests/http/tests/serviceworker/controller-on-load.html#newcode17 third_party/WebKit/LayoutTests/http/tests/serviceworker/controller-on-load.html:17: return with_iframe(scope, true); ...
4 years, 8 months ago (2016-04-07 06:53:55 UTC) #13
nhiroki
lgtm https://codereview.chromium.org/1859343002/diff/40001/third_party/WebKit/LayoutTests/http/tests/serviceworker/unregister-then-register.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/unregister-then-register.html (right): https://codereview.chromium.org/1859343002/diff/40001/third_party/WebKit/LayoutTests/http/tests/serviceworker/unregister-then-register.html#newcode115 third_party/WebKit/LayoutTests/http/tests/serviceworker/unregister-then-register.html:115: iframe.remove(); On 2016/04/07 06:53:55, makoto (google) wrote: > ...
4 years, 8 months ago (2016-04-07 07:21:17 UTC) #14
falken
Great patch! Many of our tests remove the iframe explicitly or add their own completion ...
4 years, 8 months ago (2016-04-07 08:38:43 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1859343002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1859343002/60001
4 years, 8 months ago (2016-04-07 08:46:14 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-07 09:41:53 UTC) #18
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 09:44:00 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/025c7a5cefe328486bcd4309c2b945987a09374c
Cr-Commit-Position: refs/heads/master@{#385699}

Powered by Google App Engine
This is Rietveld 408576698