JobCatcher icon indicating copy to clipboard operation
JobCatcher copied to clipboard

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

Open yscialom opened this issue 11 years ago • 1 comments

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 avatar Nov 27 '13 17:11 yscialom

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

yscialom avatar Dec 08 '13 19:12 yscialom