Extensions :  K-Meleon Web Browser Forum
All about K-Meleon extensions. 
MEGA Extension
Posted by: Zero3K
Date: February 14, 2015 05:11PM

I tried using it to download a file hosted on MEGA. When doing so, it shows an error message of:

---------------------------
[JavaScript Application]
---------------------------
Unable to initialize core functionality:

TypeError: Services.wm.getMostRecentWindow(...) is null

K-Meleon 31.2.0 20140105 "WINNT" x86-msvc
---------------------------
OK
---------------------------

Also, it opens a page that doesn't exist in a new tab (which is chrome://mega/content/update.html).

Options: ReplyQuote
Re: MEGA Extension
Posted by: guenter
Date: February 14, 2015 10:00PM

Quote
Zero3K
I tried using it to download a file hosted on MEGA. When doing so, it shows an error message of:

---------------------------
[JavaScript Application]
---------------------------
Unable to initialize core functionality:

TypeError: Services.wm.getMostRecentWindow(...) is null

K-Meleon 31.2.0 20140105 "WINNT" x86-msvc
---------------------------
OK
---------------------------

Also, it opens a page that doesn't exist in a new tab (which is chrome://mega/content/update.html).

Give a valid URL. Like: https://addons.mozilla.org/en-us/firefox/addon/meganz/

I hate to grope in the dark - just to verify a statement about an addon that i do not know or ever want to use!

p.s. After some research about the addon it even installed on my somewhat altered 74. Without any ado - Help me - what am i doing wrong?tongue sticking out smiley



Maybe stop crying "wolf". At least if You want me - to read Your posts again.


Try to download the addon somehow, place it in .../browser/extensions/... name...

Try with Chrome or install in a Firefox.



Edited 1 time(s). Last edit at 02/14/2015 10:16PM by guenter.

Attachments: .meganz.gif (61.4 KB)  
Options: ReplyQuote
Re: MEGA Extension
Posted by: Zero3K
Date: February 15, 2015 01:47AM

That is the old version. Please try https://mega.co.nz/mega.xpi.

Options: ReplyQuote
Re: MEGA Extension
Posted by: guenter
Date: February 15, 2015 03:09AM

Quote
Zero3K
That is the old version. Please try https://mega.co.nz/mega.xpi.


You need to whitelist the URL of the xpi to install. Or no go.


Go, look at about:config "whitelist"


You will see the places.

No other places allowed.



Easiest/safest way IMHO download with Chrome and drop into ./browser/extensions

Because xpinstall.whitelist.required... is and should be true by default.

You do not want to allow any wildcard site to install addons. Do you?

That is the ff rationale. We should try to live with it.

Please - You try... It is your addon not mine. I would not know how it works. :O

BTW. If it does give You further trouble during install please install

https://addons.mozilla.org/en-US/firefox/addon/checkcompatibility/

to suppress compatibility checking further. WFM.





Edited 1 time(s). Last edit at 02/15/2015 03:22AM by guenter.

Attachments: .meganz.gif (82.6 KB)  
Options: ReplyQuote
Re: MEGA Extension
Posted by: Zero3K
Date: February 15, 2015 04:30PM

I am able to install it with no issues, I just want to get that error fixed. Try using it on a file hosted on its site and let me know if it works/doesn't work.

Options: ReplyQuote
Re: MEGA Extension
Posted by: guenter
Date: February 15, 2015 06:12PM

I will never use it. I said it before.

You can try with naruman's version 74+1 which has more chrome.
Some addon's that do not work with official 74 work with that.

p.s. However. I took the time to Google Your error message a little.

Seems to me like the addon wants to use a XUL window.

Try obtain NativeWindow with add-on SDK using code like

function getNativeWindow() {

let window = Services.wm.getMostRecentWindow("navigator:browser");
return window.NativeWindow;


To which K-Meleon gave the wrong answer.


If I am right = no go currently.



Edited 1 time(s). Last edit at 02/15/2015 06:13PM by guenter.

Options: ReplyQuote
Re: MEGA Extension
Posted by: JohnHell
Date: February 15, 2015 06:44PM

Intead of this extension..., what about use MegaDL from MegaTools passing the URL as a parameter with a macro?

I got recommended this tool when I asked in a forum about a simple standalone tool for just downloading files from Mega, as browsers do some kind of load to RAM before actually save to hard disk, what I can't do due RAM size.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.