Skip to content

Commit a454a7a

Browse files
diracdeltassemenko
authored andcommitted
Put back erroneously deleted comment
1 parent 12ceb2d commit a454a7a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chromium/background.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ function onBeforeRequest(details) {
242242
// https://developer.chrome.com/extensions/webRequest.html#event-onBeforeRequest
243243
var activeTypes = { stylesheet: 1, script: 1, object: 1, other: 1};
244244

245+
// We consider sub_frame to be passive even though it can contain JS or flash.
246+
// This is because code running in the sub_frame cannot access the main frame's
245247
// content, by same-origin policy. This is true even if the sub_frame is on the
246248
// same domain but different protocol - i.e. HTTP while the parent is HTTPS -
247249
// because same-origin policy includes the protocol. This also mimics Chrome's

0 commit comments

Comments
 (0)