Announcements :  K-Meleon Web Browser Forum
K-meleon announcements. 
Pages: Previous1234567Next
Current Page: 3 of 7
Re: K-Meleon 75 Release Candidate 3, Update 2
Posted by: Dorian
Date: May 20, 2015 11:13PM

Quote
adodupan
That is what i tried, but it is not working. I'm using the last RC and last update 3.
Same example, paste this code in error console:
Components.utils.import('resource://gre/modules/Services.jsm');
const JSB = Components.classes['@kmeleon/jsbridge;1'].getService(Components.interfaces.nsIJSBridge);
var enabled = true, checked = false,
checkedcommand = function () {
   checked = !checked;
   Services.console.logStringMessage('CHECKED: ' + checked);
};
JSB.RegisterCmd('checkedcmnd', 'Test...', checkedcommand, '', function () {
   return enabled;
}, function () {
   return checked;
});
JSB.SetMenu('Misc', JSB.MENU_COMMAND, 'Test...', 'checkedcmnd', '');
JSB.SetMenu('Misc', JSB.MENU_PLUGIN, 'bmpmenu()', 1, '');

My bad, it's like macro and menugrayed, so you should return false and not true, else the button is disabled. This is probably confusing, so I may change it.

Quote
JohnHell
Had been navEnableJS and navDisableJS removed?

No, they were never implemented



Edited 1 time(s). Last edit at 05/20/2015 11:14PM by Dorian.

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 2
Posted by: JohnHell
Date: May 20, 2015 11:21PM

Quote
Dorian
Quote
JohnHell
Had been navEnableJS and navDisableJS removed?

No, they were never implemented

Then I think I was confused with the Documentation. I went there as smart, replying, and ended with a mistake.

Thanks.

I hope JamesD reads this to fix it.



Edited 1 time(s). Last edit at 05/20/2015 11:21PM by JohnHell.

Options: ReplyQuote
 
Posted by: adodupan
Date: May 21, 2015 12:21AM

 



Edited 1 time(s). Last edit at 03/21/2016 12:18PM by adodupan.

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: JamesD
Date: May 21, 2015 01:40AM

The function copyfile is undefined according to error console.

Does time() have arguements? Without arguments what is the returned value?

copyfile() solved: Source datetime is 2015-05-19 2227 hours and kmeleon.exe was compiled on 2015-05-19 1242 hours.



Edited 1 time(s). Last edit at 05/21/2015 06:07PM by JamesD.

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 2
Posted by: JamesD
Date: May 21, 2015 01:52AM

Quote
JohnHell
Had been navEnableJS and navDisableJS removed?

Quote
Dorian
No, they were never implemented

So how much stuff is wrong in Command IDs?

Some items in the code aren't really there? See my post about copyfile.

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: desga2
Date: May 21, 2015 09:40PM

@Dorian:

K-Meleon 75 RC3 update 3 k-meleon.exe changed his application icon to old Lizard instead new K-Meleon icon on red disc. (Look on title bar and taskbar)

Edited: this happend when you are using some translation (at less with spanish) and the problem is wrong icon on k-meleon.dll for translations.
Change Icon Group 128 and 157 with ResHacker fix te problem.


Greetings.

K-Meleon in Spanish



Edited 1 time(s). Last edit at 05/23/2015 01:24PM by desga2.

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: Dorian
Date: May 22, 2015 05:15PM

Quote
JamesD
The function copyfile is undefined according to error console.

Does time() have arguements? Without arguments what is the returned value?

copyfile() solved: Source datetime is 2015-05-19 2227 hours and kmeleon.exe was compiled on 2015-05-19 1242 hours.

copyfile will be there, time take no argument and return an unix timestamp

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: JamesD
Date: May 22, 2015 09:21PM

Quote
Dorian
copyfile will be there, time take no argument and return an unix timestamp

Excellent!

Based on what I have seen and tested, the only remaining need would be for "$result = mkdir( <path> , <new directory name>);" where result is completion code. Late to be asking and if you don't have time, I will understand.

Will navEnableJS, navDisableJS and navToggleJS be implemented in the future or should I remove them from the wiki Command IDs?

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: JohnHell
Date: May 22, 2015 10:45PM

Quote
JamesD

Will navEnableJS, navDisableJS and navToggleJS be implemented in the future or should I remove them from the wiki Command IDs?

navToggleJS already exits.

The others are the ones weren't implemented from the beginning. Actually, there is no need to add them.



Edited 1 time(s). Last edit at 05/22/2015 10:45PM by JohnHell.

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: desga2
Date: May 22, 2015 11:31PM

@Dorian:

In macros folder, uagent.kmm and useragentmode.kmm are the same macro.
useragentmode.kmm is best code than uagent.kmm, please delete uagent.kmm file.

Greetings.

K-Meleon in Spanish

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: JamesD
Date: May 23, 2015 11:46AM

The command names navEnableJS and navDisableJS have been deleted from the command id page in the wiki.

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: desga2
Date: May 23, 2015 01:36PM

@Dorian:

I find old string version in k-meleon.exe String Table and k-meleon.dll for translations.
On String Table 3876:

STRINGTABLE
LANGUAGE LANG_SPANISH, 0x3
{
62000, "1.5.0.0"
62001, "es-ES"
}

IMPORTANT NOTE FOR TRANSLATORS:
You need identical string version in both files k-meleon.exe and k-meleon.dll, if string version is not identical translation of k-meleon.dll not work.

Note the previous note if this string is updated by Dorian on k-meleon.exe:

STRINGTABLE
LANGUAGE LANG_SPANISH, 0x3
{
62000, "75.0.0.0"
62001, "es-ES"
}

Greetings.

K-Meleon in Spanish



Edited 1 time(s). Last edit at 05/23/2015 01:51PM by desga2.

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: desga2
Date: May 24, 2015 08:30AM
Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: JohnHell
Date: May 24, 2015 05:04PM

Sessions still not working, I "needed" for this afternoon, and, no way. It worked once and no more. Also, how can be set to open URLs in windows maximized and not restored?

I found another thing while trying sessions.dll from another versions: parent.lock doesn't get deleted, so the browser session is actually never closed.

It is weird, because when I use other versions sessions.dll, the warning of bad closing of K-meleon jumps because K-meleon founds parent.lock file, but with the actual sessions.dll (rc3u3 and rc3u2 as far as I tested) doesn't warn even the parent.lock doesn't get deleted after close correctly K-meleon.


EDIT:

P.S.: I just read now that parent.lock is not checked anymore for crash, but, anyway, toolkit.startup.last_sucess isn't present in K-meleon. I'm curious. How does K-meleon check if it crashed? smiling smiley

https://support.mozilla.org/en-US/questions/976125



Edited 2 time(s). Last edit at 05/24/2015 05:35PM by JohnHell.

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: Dorian
Date: May 24, 2015 06:46PM

sessions.dll has nothing to do with parent.lock, and don't care about it. It only check kmeleon.plugins.sessions.cleanShutdown

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: JohnHell
Date: May 25, 2015 12:12AM

It hasn't nothing to do, but I checked with sessions.dll from 1.6 and 74 and when using them, the warning about K-meleon wasn't closed correctly is bring on next open. If you delete parent.lock, then the warning disappears.

How is it influenced? I don't know. (BTW tested in XP too but in this I tested with RC3 U2).



But this is not the problem, the problem is that the most updated sessions.dll (RC3 U3) doesn't work for me (XP too). Does nothing. It worked once and I don't know if it was because I left in the preferences the entries from olders sessions.dll or why. Because after deleted, didn't work again :-?

About the maximized, if I can make it to work, any hint.

If I could add in a batch URLs to a specific bookmarks folder and add to it a nickname, at this point, I'd prefer to use this instead sessions :/ No problems with windows sizes or have to cross fingers to expect to work.

LAST EDIT: A final note, and I think I said a few weeks ago, the last session/previous session works, what doesn't work is the personal session I save :-?

P.S.: I can't provide the URLs (private) but the only "strange" characters where ? and =

I had a look to sessions.json now and I found that this afternoon tried to set 1024 and 768 for the size and had reseted to 800 and 600.



Edited 3 time(s). Last edit at 05/25/2015 12:33AM by JohnHell.

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: rodocop
Date: May 25, 2015 12:54AM

Confirm bug with sessions under XP.

RC3 sessions.dll worked fine with named sessions, but RC3u3 - doesn't open them.



Edited 1 time(s). Last edit at 05/25/2015 12:55AM by rodocop.

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: Dorian
Date: May 25, 2015 04:37PM

If you use the sessions.dll in RC3 with the latest update, does it work?
I have no problem with the named session :\

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: rodocop
Date: May 25, 2015 07:05PM

Dorian,
We miss some localizing stuff (may be spellcheck.dll in locales?) to translate the message:

"Spellchecker is disabled.
Do you want to enable it?"




All I can say about sessions is that under Win 7 all works fine with RC3u3 and named sessions.

But under XP it doesn't work. They do not open.
Some time later I will be able to check whether old RC3 sessions.dll fixes this or not.



Edited 2 time(s). Last edit at 05/25/2015 07:10PM by rodocop.

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: JohnHell
Date: May 25, 2015 08:30PM

Quote
Dorian
If you use the sessions.dll in RC3 with the latest update, does it work?
I have no problem with the named session :\

I was using RC3 U3 so the latest. And no, doesn't work.

Waiting for the rodocop test, at least for me, the RC3 (without updates) sessions.dll in RC3 U3 I tried does the same.


(EDIT: fixing my post; the smiley in your post was a escape character and quoted my post above)



Edited 2 time(s). Last edit at 05/25/2015 08:32PM by JohnHell.

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: rodocop
Date: May 25, 2015 10:32PM

Finally tested.

RC2 - all OK
RC3 itself - OK
RC3u3 exe with any RC3 sessions - no fix with default profile, but:

it works 1 time after creating every new profile when there is no 'Previous session' at all.

In Sessions options at that time you can select only 'Last session' for startup option, not 'Previous'

After 1st restart 'Previous session' appears but named sessions stop being opened.



That behaviour with 'Previous session' not available on first load was present in all the 75's. But earlier it wasn't connected with named session opening bug.

That's how it goes under XP SP3.



Edited 2 time(s). Last edit at 05/25/2015 10:35PM by rodocop.

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: Dorian
Date: May 26, 2015 08:46PM

I've made a new full package just in case.

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: rodocop
Date: May 26, 2015 11:36PM

Release?!!!

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: rodocop
Date: May 26, 2015 11:55PM

Well, session bug is here - BUT

ONLY for session named '111'. I cannot explain this, but it's true - the same session named with letters or '222' or '1111' - opens.

'111' - doesn't ;-)



Edited 1 time(s). Last edit at 05/26/2015 11:56PM by rodocop.

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: newsman
Date: May 27, 2015 12:06AM

Is the NewsFox RSS reader enabled in the this version? (Pretty please!) grinning smiley

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: JamesD
Date: May 27, 2015 12:20AM

I think it is the same code as RC3 u3. The filesizes for kmeleon.exe and sessions.dll match.

Edit:
Should be considered RC3 update 4. The kplugins JSBridge.dll and macros.dll are updated.

Dorian, copyfile works great. Thank you.



Edited 1 time(s). Last edit at 05/27/2015 11:48AM by JamesD.

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: rodocop
Date: May 27, 2015 12:51AM

newsman,

NewsFox is here like in all the latest betas and RCs. Enjoy it!
(Tools->Mail and News->Read RSS feeds)

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: JohnHell
Date: May 27, 2015 12:55AM

It is the same Dorian.

But... I found the problem.

I have tested the number 111 and it works, and here it is the problem.

What I found is that the first named session is never opened. If you change the order of sessions, placing it in second place (manual editing of sessions.json, sorry) it will open. I haven't tested more sessions orders even I named three. It was an idea it came to me after the second and third were opening but not the first.

@Rodocop test it, and you'll see. I may be wrong and you found a different bug, but I guess it is the same.


Also @Dorian, 2 suggestions:
- reorder feature for sessions, not because this bug, but as a helper to users to make order in chaos,
- the most important for me a tick option in the options dialog to tell to the plugin to not replace windows. Instead add them. If I'm not wrong in previous versions of sessions.dll (before 74/75) sessions were added and didn't replace. For me was the best option. As I understand this is not the best for everyone, I suggest to make it optional in the way I told.




LAST EDIT: tested in 2K and XP SP2.



Edited 7 time(s). Last edit at 05/27/2015 01:26AM by JohnHell.

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: siria
Date: May 27, 2015 02:05AM

Great job everyone smiling smiley

Quote
JohnHell
reorder feature for sessions, not because this bug, but as a helper to users to make order in chaos,
- the most important for me a tick option in the options dialog to tell to the plugin to not replace windows. Instead add them. If I'm not wrong in previous versions of sessions.dll (before 74/75) sessions were added and didn't replace

No they always replaced everything. Only bookmark folder "nicks" are adding.
Yes an option for this would be great, as well as one for sorting smiling smiley



Edited 1 time(s). Last edit at 05/27/2015 02:06AM by siria.

Options: ReplyQuote
Re: K-Meleon 75 Release Candidate 3, Update 3
Posted by: JamesD
Date: May 27, 2015 11:55AM

Quote
myself
Date: May 27, 2015 07:20AM

I think it is the same code as RC3 u3. The filesizes for kmeleon.exe and sessions.dll match.

Edit:
Should be considered RC3 update 4. The kplugins JSBridge.dll and macros.dll are updated.

Dorian, copyfile works great. Thank you.

I have just copied the kplugins JSBridge.dll and macros.dll to my RC3 and tested there.

Options: ReplyQuote
Pages: Previous1234567Next
Current Page: 3 of 7


K-Meleon forum is powered by Phorum.