Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

Commit 6eb5405

Browse files
committed
extension pages can't run in sandboxed iframes
fixes #2489 auditors: @bbondy @diracdeltas
1 parent 82d1157 commit 6eb5405

File tree

3 files changed

+0
-23
lines changed

3 files changed

+0
-23
lines changed

app/extensions.js

-10
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,6 @@ let generateBraveManifest = () => {
7676
exclude_globs: [
7777
getAppUrl('about-blank.html')
7878
]
79-
},
80-
{
81-
run_at: 'document_start',
82-
all_frames: true,
83-
js: [
84-
'content/scripts/brave-about-flash.js'
85-
],
86-
matches: [
87-
'<all_urls>'
88-
]
8979
}
9080
],
9181
permissions: [

app/extensions/brave/content/scripts/brave-about-flash.js

-12
This file was deleted.

app/extensions/brave/content/scripts/flashListener.js

-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ function insertFlashPlaceholders (elem) {
135135
return
136136
}
137137
let iframe = document.createElement('iframe')
138-
iframe.setAttribute('sandbox', 'allow-scripts')
139138
let hash = window.location.origin
140139
if (chrome.contentSettings.flashEnabled == 'allow') {
141140
hash = hash + '#flashEnabled'

0 commit comments

Comments
 (0)