Opening Local HTML Files in Firefox under Android 6.0 (Marshmallow)

I use a local HTML file on all of my computing devices which lists all my frequently-used web sites on a multi-column page, with the individual entries being organized in categories. My new smartphone runs Android 6.0 which, for some reason seems to dislike opening the local HTML file in my favourite web browser, Mozilla Firefox.

The error message “Access to the file was denied” was displayed in lieu of my carefully-crafted menu page. The associated text went on to suggest that “The file… is not readable. It may have been removed, moved, or file permissions may be preventing access. ERR_ACCESS_DENIED”.

It runs out that the latter issue is the problem. The fix is fairly simple. Load Android’s “Settings” menu and navigate to “Apps”. Scroll down to “Firefox”. Tap the Firefox listing to bring up the “App Info” screen. Click on the “Permissions” option, and slide the control for “Storage” to the right to enable file permissions.

Firefox can now open the local HTML file stored, in my case, on the smartphone’s supplementary SDcard.

References:

Requesting Permissions at Run Time
https://developer.android.com/training/permissions/requesting.html

This entry was posted in Android, Applications and tagged , , . Bookmark the permalink.

6 Responses to Opening Local HTML Files in Firefox under Android 6.0 (Marshmallow)

  1. Dainiasas says:

    Thank you! I’ve found that it also applies to uploading captured file in html5 ( ).
    And in that “permissions” tab was also a permission to use phone’s camera as file source.
    You saved me a lot of time!

  2. Joe says:

    Thank you so much! You definitely saved me a lot of time as well!

  3. Alex says:

    Thank’s!

  4. Mr Red says:

    Method, as listed, works a treat on Android 7. But, always a but, my version of the favourites html page wheeze uses JavaScript. And I can’t get FireFox to run it yet. Been using the favourites wheeze for years, on PC, new PCs, memory sticks (Portable FF) etc. Never failed till now! Jeeze, Adroid is an alien culture!

    • Alan German says:

      Mr. Red:

      Is the problem that JavaScript isn’t running, or that your script won’t run under JavaScript in Firefox? If it’s the former, you can toggle JavaScript to on using the configuration menu. In Firefox’s address bar type about:config and then search for java. The first hit should be javascript.enabled and this setting should be toggled to true. However, this may well not be the problem. If JavaScript isn’t activated on your device, it is quite likely that access to many external web sites would also have obvious limitations.

      Alan

  5. Grumpy Bear says:

    Hey, thanks for this. I’d been trying to find a way to browse files locally using Firefox on Android and it was so obvious once you pointed it out.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s