According spec, any service worker client matching a service worker registration, be it controlled or not, should stop using app cache. As a first step, we can disable app cache for any service worker client being controlled by a service worker.
Created attachment 334642 [details] Patch
Created attachment 334643 [details] Patch
Created attachment 334644 [details] Patch
Created attachment 334647 [details] Patch
Created attachment 334767 [details] Patch
Created attachment 334771 [details] Patch
Comment on attachment 334771 [details] Patch Attachment 334771 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/6710776 New failing tests: http/tests/navigation/error404-goback.html
Created attachment 334775 [details] Archive of layout-test-results from ews102 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-sierra Platform: Mac OS X 10.12.6
Comment on attachment 334771 [details] Patch Attachment 334771 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/6710971 New failing tests: http/tests/navigation/error404-goback.html
Created attachment 334777 [details] Archive of layout-test-results from ews107 for mac-sierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
Created attachment 334779 [details] Patch
Comment on attachment 334779 [details] Patch r=me
Comment on attachment 334779 [details] Patch Clearing flags on attachment: 334779 Committed r229181: <https://trac.webkit.org/changeset/229181>
All reviewed patches have been landed. Closing bug.
<rdar://problem/38073116>