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

[Report] "ok" icons on dropdown menus does not work locally. #72

Open
yscialom opened this issue Nov 27, 2013 · 1 comment
Open

[Report] "ok" icons on dropdown menus does not work locally. #72

yscialom opened this issue Nov 27, 2013 · 1 comment
Milestone

Comments

@yscialom
Copy link
Collaborator

Local screenshot (file://...):
capture du 2013-11-27 18 24 49

Distant screenshot (http://...):
capture du 2013-11-27 18 25 05

From the firefox console:
local:
[18:23:08,622] downloadable font: download failed (font-family: "Glyphicons Halflings" style:normal weight:normal stretch:normal src index:1): status=2147500037
source: file:///home/yscialom/Projets/JobCatcher/www/fonts/glyphicons-halflings-regular.woff @ file:///home/yscialom/Projets/JobCatcher/www/css/bootstrap.min.css
[18:23:08,622] downloadable font: download failed (font-family: "Glyphicons Halflings" style:normal weight:normal stretch:normal src index:2): status=2147500037
source: file:///home/yscialom/Projets/JobCatcher/www/fonts/glyphicons-halflings-regular.ttf @ file:///home/yscialom/Projets/JobCatcher/www/css/bootstrap.min.css
[18:23:08,622] downloadable font: no supported format found (font-family: "Glyphicons Halflings" style:normal weight:normal stretch:normal src index:4)
source: (end of source list) @ file:///home/yscialom/Projets/JobCatcher/www/css/bootstrap.min.css

distant: nothing.

@yscialom
Copy link
Collaborator Author

yscialom commented Dec 8, 2013

This bug is due to a security measure of Mozilla Firefox that prevent local files (accessed by file://) to read certain type of files (e.g. fonts) not included in a subdirectory of that html file. It can be disabled by the security.fileuri.strict_origin_policy configuration key.

"Background

When local HTML files (e.g., those located on your hard drive) are loaded into the browser, the scripts and links within have restrictions on what they can see and do. Those restrictions are determined by the same-origin policy for local files, which this preference controls.

True

Local documents have access to other local documents in the same directory and in subdirectories, but not directory listings. (Default)

False

Local documents have access to all other local documents, including directory listings."

Source : http://kb.mozillazine.org/Security.fileuri.strict_origin_policy

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

No branches or pull requests

1 participant