Skip to content

Commit

Permalink
Lets not isolate blank tabs
Browse files Browse the repository at this point in the history
Part of #56
  • Loading branch information
stoically committed Mar 6, 2018
1 parent 821499b commit 060da14
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/background/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,11 @@ class Request {
return true;
}

if (tab.url === 'about:blank') {
debug('[shouldIsolate] not isolating because the tab url is blank');
return false;
}

if (tab.url === 'about:blank' && this.requestsSeen[request.requestId]) {
debug('[shouldIsolate] not isolating because the tab url is blank and we seen this request before, probably redirect');
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ <h4 data-tooltip="Website Rules overwrite Global Preferences">
<div class="field">
<select id="isolationDomainAction" class="ui fluid dropdown">
<option value="always">Always</option>
<option value="notsamedomainexact">Only if the navigation target doesn't exactly match the Tabs Website Domain</option>
<option value="notsamedomainexact" selected="selected">Only if the navigation target doesn't exactly match the Tabs Website Domain</option>
<option value="notsamedomain">Only if the navigation target doesn't match the Tabs Website Domain (includes Subdomains)</option>
<option value="never">Never</option>
</select>
Expand Down

0 comments on commit 060da14

Please sign in to comment.