File tree Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,11 @@ function shouldContainInto (url, tab) {
343
343
return false ;
344
344
}
345
345
346
- let handleUrl = isGoogleURL ( url ) ;
346
+ let handleUrl = isGoogleURL ( url ) || ( extensionSettings . allowlist . length != 0 && isAllowlistedURL ( url ) ) ;
347
+
348
+ if ( handleUrl && extensionSettings . whitelist . length != 0 && isWhitelistedURL ( url ) ) {
349
+ handleUrl = false ;
350
+ }
347
351
348
352
if ( handleUrl && extensionSettings . ignore_youtube && isYouTubeURL ( url ) ) {
349
353
handleUrl = false ;
@@ -369,14 +373,6 @@ function shouldContainInto (url, tab) {
369
373
handleUrl = false ;
370
374
}
371
375
372
- if ( handleUrl && extensionSettings . whitelist . length != 0 && isWhitelistedURL ( url ) ) {
373
- handleUrl = false ;
374
- }
375
-
376
- if ( ! handleUrl && extensionSettings . allowlist . length != 0 && isAllowlistedURL ( url ) ) {
377
- handleUrl = true ;
378
- }
379
-
380
376
if ( handleUrl ) {
381
377
if ( tab . cookieStoreId !== googleCookieStoreId ) {
382
378
if ( tab . cookieStoreId !== "firefox-default" && extensionSettings . dont_override_containers ) {
Original file line number Diff line number Diff line change @@ -64,20 +64,20 @@ <h1>Settings</h1>
64
64
65
65
< p >
66
66
< label >
67
- < textarea id ="whitelist " value ="" cols ="80 ">
67
+ < textarea id ="allowlist " value ="" cols ="80 ">
68
68
</ textarea >
69
69
< br >
70
- Whitelisted google urls< br >
70
+ Allowlisted urls to use Google Container (for example third party SSO) < br >
71
71
< em > (Use one url per line.)</ em >
72
72
</ label >
73
73
</ p >
74
74
75
75
< p >
76
76
< label >
77
- < textarea id ="allowlist " value ="" cols ="80 ">
77
+ < textarea id ="whitelist " value ="" cols ="80 ">
78
78
</ textarea >
79
79
< br >
80
- Allowlisted urls to use Google Container < br >
80
+ Whitelisted urls ( Google or allowlisted) < br >
81
81
< em > (Use one url per line.)</ em >
82
82
</ label >
83
83
</ p >
You can’t perform that action at this time.
0 commit comments