angler-fishThe Vulnerability History Project

Reland: service worker: Don't control a subframe of an insecure context

      We must check isSecureContext when creating the network provider to
adhere to https://w3c.github.io/webappsec/specs/powerfulfeatures/#settings-privileged.

We already did this for getRegistration(), register(), unregister() but must
also do this when deciding whether to control an in-scope document.

BUG=607543
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation
TBR=reviewers from the original review

Original review: https://codereview.chromium.org/2009453002

Review-Url: https://codereview.chromium.org/2071433003
Cr-Commit-Position: refs/heads/master@{#400093}
    
commit ad1850962644e19cdb040d60eb236e0ebc23c243
-6
-2
+3 -20
+5 -6
+7 -7
+5 -6
+4 -12
-12
+12 -13
+5 -12
+1 -2
+7 -13
+2 -3
+5 -6
+1 -25
+2 -28
+14 -70
-2
+9 -9
-3
+20 -17
-1
+3 -5
+11 -25
+4 -11
+2 -13
-6
+2 -2
+1 -2
+1 -2
-85
-12
-16
+21 -10
+1 -1
-9
-9
-8
-58
-9
expand_less