#Safe Addon for Firefox Add-on intercepts the SAFE: scheme from the browser address bar and renders the related content from the Safe Network
NodeJs should be installed
##Setting up
-
JPM sdk is used to build the add on. Follow this link for installation instructions.
-
Clone the Safe-FFI repository and build Dynamic library of the Rust code -
cd Rust && cargo build --release && cd ..
-
Copy the
libc_wrapper.{so, dylib}
from thetarget/release
folder to thedata
folder of theSafe-Addon
Execute jpm xpi
to get the @safe_addon.xpi file
1. Go to tools > Add-ons. At the top right corner there will ba a settings icon.
Clicking on the settings icon will show an option `Import Add-on from File`, select the XPI from the local machine
2. Another means to install (Linux).
Right click on the `.xpi` file and select `open with`. Choose firefox.
Permission requisition window will be prompted for installation authorization. Click Install.
Relative path for loading the resources is not supported in the current version.
The normal approach to load a style sheet is to use a relative path,
```
<link type="text/css" rel="stylesheet" href="/normalize.css"/>
```
But this is not supported by the Add-on at present.
The workaround is to load the resources by specifying the full path.
Example,
```
<link type="text/css" rel="stylesheet" href="safe:www.maidsafe/normalize.css"/>
```
1. Can serve file up to 1GB only
2. Browser Crash - Right Clicking on the browser and selecting `View Page Source`
3. If the public name is not available, then the browser becomes non-responsive. Must force quit the browser and start again.
4. On OSX, when the browser is closed at times the browser crashes
1. Improve Error Handling
2. Relative path support for resource loading from DOM Elements
3. Try to integrate with Standard firefox debug tools - console, view source tools etc
4. Exposing API under the MaidSafe name space, So direct APIs can be used by developers if needed