Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kyletimmermans
Copy link

Fixes issue described in #65 - tabox is unable to open any local file URLs e.g. file:///test.txt

The issue resides in chrome/background.js

When "Discard tabs on open" is enabled, deferredLoading.html will try and load the URL. However, this file cannot access local file URLs e.g. file:/// protocol, and will throw this error: "Not allowed to load local resource", forever keeping the tab in the deferredLoading.html page.

The fix: In order to fix the issue, we can check if the tab URL starts with "file:///", and if it's true, we can have it so that "deferredLoading.html?url=" is not used, and just 'tabInGrp.url' is loaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant