Enable XHR access to file:// protocol in Chromium engine

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.

  • Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
  • Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
  • Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".

Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!

Enable XHR access to file:// protocol in Chromium engine

Postby pmk65 » Wed Jul 15, 2015 2:12 pm

In Chromium access to file:// protocol is disabled by default.
This prevents WeBuilder plugins using the Chromium engine from accessing local files.

Would it be possible to enable the Chromium command line switch "--allow-file-access-from-files" in the next release?

Some reference links:
http://peter.sh/experiments/chromium-command-line-switches/#allow-file-access-from-files
http://www.magpcss.org/ceforum/viewtopic.php?f=14&t=10892
http://magpcss.org/ceforum/viewtopic.php?f=6&t=673&start=0
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
pmk65
 
Posts: 671
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Re: Enable XHR access to file:// protocol in Chromium engine

Postby Aivars » Thu Jul 23, 2015 10:26 am

Hmm, what are you trying to achieve?
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2374
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Enable XHR access to file:// protocol in Chromium engine

Postby pmk65 » Thu Jul 23, 2015 12:56 pm

What I wanted to do, was to implement an image optimizing function in my "Insert Base64 Image" plugin, by using an external optimizing program to process the uploaded image. And then read in the optimized file/data.

For security reasons XHR access to local files is disabled by default in browsers.
But since the Webkit engine in WeBuilder is not a "real browser", there's no need for that restriction.
Specially since it prevents working with files locally, which is needed in WeBuilder plugins. (That's also why the access restrictions doesn't apply to Chrome/Firefox extensions.)

Note: Could also be the "--allow-file-access" Chrome option. Im not quite sure which one enables it.
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
pmk65
 
Posts: 671
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Re: Enable XHR access to file:// protocol in Chromium engine

Postby Aivars » Thu Jul 23, 2015 4:12 pm

Alright, I'll see what can be done, I think most likely only for the next major version, during chromium engine upgrade.
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2374
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Enable XHR access to file:// protocol in Chromium engine

Postby pmk65 » Fri Jul 24, 2015 3:28 pm

Aivars wrote:Alright, I'll see what can be done, I think most likely only for the next major version, during chromium engine upgrade.


No problem. I can wait.. :lol:
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
pmk65
 
Posts: 671
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark


Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Feature Requests

Who is online

Users browsing this forum: No registered users and 3 guests