mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3][safari] Do not inject CSS in embedded contexts
Related issue: https://github.com/uBlockOrigin/uBOL-home/issues/446 Relateed WebKit issue: https://bugs.webkit.org/show_bug.cgi?id=262491
This commit is contained in:
parent
a3e2cd4396
commit
4d2cfd1487
1 changed files with 2 additions and 0 deletions
|
|
@ -186,6 +186,8 @@ function onMessage(request, sender, callback) {
|
|||
|
||||
case 'insertCSS': {
|
||||
if ( frameId === false ) { return false; }
|
||||
// https://bugs.webkit.org/show_bug.cgi?id=262491
|
||||
if ( frameId !== 0 && webextFlavor === 'safari' ) { return false; }
|
||||
browser.scripting.insertCSS({
|
||||
css: request.css,
|
||||
origin: 'USER',
|
||||
|
|
|
|||
Loading…
Reference in a new issue