Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Local file URLs #18

Closed
christian-korneck opened this issue Jan 22, 2019 · 4 comments
Closed

Add support for Local file URLs #18

christian-korneck opened this issue Jan 22, 2019 · 4 comments
Labels
enhancement New feature or request

Comments

@christian-korneck
Copy link

christian-korneck commented Jan 22, 2019

Browser Preview Version: 0.2.5
VS Code Version: 1.30.2 (1.30.2)
Platform: macOS 10.14.2
Chrome version: 71.0.3578.98 (Official Build) (64-bit)

Trying to open a valid file URL in Browser Preview (i.e. file:///Users/myuser/myfile.html) doesn't work:

  • A blank page is displayed (no error message)
  • The URL in the address bar changes from file://<url> to file//<url> (i.e. file///Users/myuser/myfile.html)
  • the title bar changes to Browser Preview (http://file///<url>) (i.e. Browser Preview (http://file///Users/myuser/myfile.html) ).

The same file URL works in Chrome.

@michellocana
Copy link

michellocana commented Jan 22, 2019

I have a similar error, but with blob:// files.
Debug console output:
Failed to load resource: net::ERR_UNKNOWN_URL_SCHEME [blob:http://localhost:3000/72334931-d3fd-41ac-a5ba-bea316cee06b]

@gokulkrishh
Copy link

@auchenberg @michellocana Same here. Browser is not able to read blob URL's. Attaching screenshots.

screenshot 2019-01-22 at 6 39 22 pm

Same URL works find in chrome.

@gokulkrishh
Copy link

gokulkrishh commented Jan 22, 2019

@auchenberg I can see that in your extension.ts file, localResourceRoots property has only allowed access to the extension build folder also as per the API, it should have access to current workspace. Not sure why blob:http://localhost url's are not working.

@auchenberg auchenberg changed the title opening local file URLs doesn't work Add support for Local file URLs Jan 23, 2019
@auchenberg auchenberg added the enhancement New feature or request label Jan 23, 2019
@Taariqq
Copy link

Taariqq commented Mar 8, 2019

Only reason people are still using Brackets. Fantastic Live Preview that is second to none.

@auchenberg auchenberg reopened this Mar 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants