Re: [crx] Chrome equivalent APIs to Firefox - porting an extension

81 views
Skip to first unread message

Scott Fujan

unread,
Oct 9, 2012, 1:06:42 AM10/9/12
to Matjaž Kljun, chromium-...@chromium.org
webSQL (but not if going for a new style web app)

File access: only to a private sandbox or (I believe) temporary manually chosen files. Using FileWriter etc.

for opening other applications and more file access: NPAPI. This is more complex and not available for all platforms.

On Mon, Oct 8, 2012 at 5:09 PM, Matjaž Kljun <mkl...@gmail.com> wrote:
Hi everyone,

I want  to port a FF extension. I searched this forum about related topics a but there aren't many
(or maybe I'm looking in wrong places?!?).

My extension is basically a HTML/CSS/JS content in a tab, but heavily relies on some FF functions
I looked at the Chrome supported APIs but cannot find the equivalent to these:

SQLite API (accessing and using sqlite  db in a file):
https://developer.mozilla.org/en-US/docs/Storage

Access to the local file system (files, folders, their sizes, modification times, opening links in aplications, etc.):
https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIFile
https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsILocalFile

Are these interfaces implemented in Chrome?
Where should I start digging into it?

Any help greatly appreciated.

m





--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-extensions/-/WbxMLKAOND4J.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.

Matjaž Kljun

unread,
Oct 11, 2012, 6:58:57 PM10/11/12
to chromium-...@chromium.org
Hi Scott,

Thanks for the answer. I spent two days porting it now and changed all FF storage to Web SQL. The sad thing is that Web SQL is deprecated and there is no other rational DB available fro storage on Chrome at the moment.

As for NPAPI .. I have to dig in.

m
Reply all
Reply to author
Forward
0 new messages