Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a454a7a

Browse filesBrowse files
diracdeltassemenko
authored andcommitted
Put back erroneously deleted comment
1 parent 12ceb2d commit a454a7a
Copy full SHA for a454a7a

1 file changed

+2Lines changed: 2 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎chromium/background.js‎

Copy file name to clipboardExpand all lines: chromium/background.js
+2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.