Development :  K-Meleon Web Browser Forum
K-Meleon development related discussions. 
Pages: 123Next
Current Page: 1 of 3
K-Meleon 74 / Gecko 31
Posted by: Dorian
Date: October 05, 2014 03:29PM

Download here

This version is for testing possible regressions with the new gecko.
  • Download was broken with the version using gecko 30 and is fixed in this one.
  • The function used by injectjs does not exist anymore, I had to switch to the old version used by km 1.1 (which just inject a <script> in the page). For better result, it probably need to be rewritten in js ...
  • Also I've added about: preferences.

EDIT:
A little update to fix mainly the right click crash



Edited 1 time(s). Last edit at 10/18/2014 01:49PM by Dorian.

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: Zero3K
Date: October 05, 2014 04:05PM

The "Reload Continuously" macro isn't working in it. It stays at the time I inputted but doesn't countdowwn when applied to other tabs after having it applied to a site in a tab.

EDIT: It turns out that I need to manually refresh the page that it is being applied to in order for it to work.



Edited 1 time(s). Last edit at 10/05/2014 07:16PM by Zero3K.

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: JohnHell
Date: October 05, 2014 05:58PM

Quote
Dorian

[*] The function used by injectjs does not exist anymore, I had to switch to the old version used by km 1.1 (which just inject a <script> in the page). For better result, it probably need to be rewritten in js ...

In street language.

What that implies? That now you must call the function name inside JS_func/JSfunc with the mandatory JS_doit/JSdoit?

In other works, it doesn't autoexec itself or what is it exactly?

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: siria
Date: October 05, 2014 06:28PM

It silently crashes when I right-click on the home page (Vista offline).

Of course, as was to be expected, I went crazy again with injectJS, because not only it needs manual toggling js on/off again, but it has a whole new evil quirk now: sometimes it did work and sometimes not, regardless if JS was blocked or not! First I thought, oh no, it's as bad as KM1.7, grmpf... Then Oh - but it does work! Great! And tried some more things and everything worked fine! And then suddenly - it stopped again. NOTHING worked again, no matter what I did! After some more gray hairs it turned out: Toggling the JS-prefs does absolutely nothing AFTER a page was loaded. Only the state counts that it had at this point sad smiley

PS: Is there any little test that a macro can run at browser start to check if injectJS works? So far I can only check if it returns anything, but that's not enough.

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: siria
Date: October 05, 2014 06:33PM

John it seems to me exactly like the workaround in KM1.7, you can simply replace all your codes with open(javascript:...). Hmm, thinking about, not even that is now guaranteed anymore, have recently read something that Mozilla forbid that too in some newer version, to run a script from URLbar etc.!! Just hope this can be workedaround by our devs.

But injectjs has never autoexecuted itself from my experience. It just helped to autotoggle JS on/off. If it works, sigh. And in the best case (1.6) it could return a value into the macro.
injectJS(xxx) = open(javascript:xxx) plus Auto-Toggle JS-pref



Edited 3 time(s). Last edit at 10/05/2014 06:39PM by siria.

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: Zero3K
Date: October 05, 2014 08:00PM

I can confirm that it crashes when right-clicking anywhere in any page.

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: JohnHell
Date: October 05, 2014 08:06PM

Quote
siria
John it seems to me exactly like the workaround in KM1.7, you can simply replace all your codes with open(javascript:...). Hmm, thinking about, not even that is now guaranteed anymore, have recently read something that Mozilla forbid that too in some newer version, to run a script from URLbar etc.!! Just hope this can be workedaround by our devs.

But injectjs has never autoexecuted itself from my experience. It just helped to autotoggle JS on/off. If it works, sigh. And in the best case (1.6) it could return a value into the macro.
injectJS(xxx) = open(javascript:xxx) plus Auto-Toggle JS-pref

You are right mozilla banned some command from URL, that's the reason of bookmarklets sad smiley

About injectJS, today, playing with the images scripts I confirmed it. InjectJS in KM74 with 24.7ESR autoexecs. I just used a simple document.write('hello'); and injects it and runs it.

That's the reason I'm asking. I want to have clear what exactly the change involves smiling smiley

Soon or later I'll test myself, but I'd like to know first.



Edited 1 time(s). Last edit at 10/05/2014 08:07PM by JohnHell.

Options: ReplyQuote
:cool: Re: K-Meleon 74 / Gecko 31
Posted by: Yogi
Date: October 05, 2014 08:35PM

Quote
Zero3K
I can confirm that it crashes when right-clicking anywhere in any page.

Confirmed.
K-Meleon 74 / Gecko 31 (fresh install)


Nice to have "about: preferences" :cool:



Edited 2 time(s). Last edit at 10/05/2014 09:03PM by Yogi.

Options: ReplyQuote
Re: :cool: Re: K-Meleon 74 / Gecko 31
Posted by: JohnHell
Date: October 05, 2014 09:39PM

Quote
Yogi
Quote
Zero3K
I can confirm that it crashes when right-clicking anywhere in any page.

Confirmed.
K-Meleon 74 / Gecko 31 (fresh install)


Nice to have "about: preferences" :cool:

I tested for about 20 minutes (no wild, without internet access) and I confirm partially the bug.

For example, if you block K-meleon access to the net and go to a site, in the resulting error page it doesn't crash if you click in the error text bubble/box. If you click outside, it does.

Maybe this helps to catch the bug.

About injectJS, I hadn't problems running my codes, even injectJS running wild as
injectJS("document.write('hello');document.close();");

:-?

Options: ReplyQuote
Re: :cool: Re: K-Meleon 74 / Gecko 31
Posted by: Yogi
Date: October 05, 2014 10:19PM

Quote
JohnHell

I tested for about 20 minutes (no wild, without internet access) and I confirm partially the bug.

For example, if you block K-meleon access to the net ...

Even simpler to reproduce: unzip the package, start K-Meleon and right-click on the default startpage wherever outside the search bar.



Edited 1 time(s). Last edit at 10/05/2014 10:22PM by Yogi.

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: Dorian
Date: October 05, 2014 10:45PM

Silly me, right click crash when there is no CSS background

Quote
JohnHell
In street language.

What that implies? That now you must call the function name inside JS_func/JSfunc with the mandatory JS_doit/JSdoit?

In other works, it doesn't autoexec itself or what is it exactly?

Security restrictions, js need to be enabled, and other things. I'm not really sure.

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: guenter
Date: October 06, 2014 06:35AM

Quote
Dorian
Download here

This version is for testing possible regressions with the new gecko.
  • Download was broken with the version using gecko 30 and is fixed in this one.
  • The function used by injectjs does not exist anymore, I had to switch to the old version used by km 1.1 (which just inject a <script> in the page). For better result, it probably need to be rewritten in js ...
  • Also I've added about: preferences.

Thank You Dorian.

p.s. Can You perhapts put the missing function into macro.dll or jsbridge?

It would let K-Meleon use the existing macros, maybe?



Edited 1 time(s). Last edit at 10/06/2014 06:35AM by guenter.

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: siria
Date: October 06, 2014 08:04AM

The one giant and unsolvable prob with injectJS ever since KM1.6 and especially 1.7 is for me that macro lines are executed out of-order if any JS is used. For example a macro toggles some pref, injects a script, then toggles it back. Doesn't work. The pref is already toggled back before the script even starts sad smiley

Am not quite sure anymore if I remember everything correctly with so many versions having to be took care of now in my macros... But guess in 1.6 the return-function could be used to have the next line wait for the inject-line to be finished. In KM1.7 and all newer versions only an alert-popup can cause the next line to wait a split second for the previous line to be finished, which is so stupid and bothersome, it made me give up or stall in all my recent macros since, if they need any JS.

Due to the line order still working fine up until KM1.5.4, there is even a workaround for the return function by renaming the page title back+forth, which seems to work quite nicely in my favorites macro to get the link titles. Nothing noticable at all for the user.

=> If the line order could be made working again, that is the no.1 priority for macros (IMO)



Edited 1 time(s). Last edit at 10/06/2014 08:07AM by siria.

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: Mala Okeh
Date: October 06, 2014 12:43PM

Fantastic version, Dorian, thank you so much.

I think that if the crash on right click can be solved the way is open for a new k-meleon experience and the right future.

Hope it can be done

Mala

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: JamesD
Date: October 06, 2014 01:25PM

I just encountered the right-click crash. I clicked on the green area below the selections on the left side of this page and suddenly KM was just gone.

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: JujuLand
Date: October 06, 2014 04:42PM

Confirmed under Linux too ...

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: JamesD
Date: October 06, 2014 11:47PM

Why does the user agent string have '2010' when the ini file has BuildID=20140927181416 ?

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: JamesD
Date: October 06, 2014 11:56PM

I have a regression. The error console's view source fails with a message about an unknown protocol if asked to view an error in a kmm file.

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: guenter
Date: October 07, 2014 05:50AM

Quote
JamesD
Why does the user agent string have '2010' when the ini file has BuildID=20140927181416 ?

A Firefox bug - examples from other FF and FF clones on my PC:

Mozilla/5.0 (masking-agent; rv:24.0) Gecko/20100101 Firefox/24.0

Mozilla/5.0 (Windows NT 5.1; rv:26.0) Gecko/20100101 Firefox/26.0 IceDragon/26.0.0.2

Mozilla/5.0 (Windows NT 5.1; rv:34.0) Gecko/20100101 Firefox/34.0 = current nightly

They do not use about: anymore it seems. Only Palemoon has it right.

Mozilla/5.0 (Windows NT 5.1; rv:24.7) Gecko/20140907 Firefox/24.7 PaleMoon/24.7.2

It cannot download. XP SP3. Example http://sourceforge.net/projects/kmeleon/files/k-meleon/74.0/K-Meleon74.0.exe/download Other sites also.

Can someone check whether only I have it on my PC?

Some Mouse movements gave me a crash.

Again I have no spelling. The same deal as in 74. Is this only my PC?



Edited 1 time(s). Last edit at 10/07/2014 06:14AM by guenter.

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: JujuLand
Date: October 07, 2014 06:39AM

Quote
guenter
It cannot download. XP SP3. Example http://sourceforge.net/projects/kmeleon/files/k-meleon/74.0/K-Meleon74.0.exe/download Other sites also.

No problem for me under Linux tongue sticking out smiley

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: Mala Okeh
Date: October 07, 2014 07:17AM

@guenter

I have no problem downloading the file with XP SP3.

Mala

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: Yogi
Date: October 07, 2014 08:50AM

Quote
guenter

It cannot download. XP SP3. Example http://sourceforge.net/projects/kmeleon/files/k-meleon/74.0/K-Meleon74.0.exe/download Other sites also.

Can someone check whether only I have it on my PC?

Can't confirm under Win7. (K-Meleon 74/Gecko 31 - default setup)



Edited 1 time(s). Last edit at 10/07/2014 08:52AM by Yogi.

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: JamesD
Date: October 07, 2014 11:31AM

Quote
guenter
Again I have no spelling. The same deal as in 74. Is this only my PC?

There is no dictionary supplied and the kmeleon.js contains this pref.
pref("layout.spellcheckDefault", 0);

If you have a dictionary, you can add it. You will need to change the value of the pref from zero to 2.

Also I can download correctly in Win 7 (32 bit).

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: guenter
Date: October 07, 2014 03:49PM

Thx for the feedback on my download failures. A reinstall has fixed it for me.

Thx JamesD I will try that.

p.s. No luck so far with the changed settings. The dictionaries go to
./K-meleon/dictionaries or did the location change?



Edited 1 time(s). Last edit at 10/07/2014 04:00PM by guenter.

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: JamesD
Date: October 07, 2014 06:00PM

@ guenter

I extracted a new copy. I added a 'dictionaries' folder with English dictionary at the root level. I changed the pref value from 0 to 2, and restarted KM. I then loaded the page at http://www.myway.com/ and typed the word 'Carrrots' into the ask search bar. KM 7431 underlined the word in red because I had put 'rrr' when I should have put 'rr'. Do you get the red underscore to indicate a misspelling?

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: JamesD
Date: October 07, 2014 07:01PM

Just for information, it seems that the capability policy prefs do not work in the Gecko 31. I think that I had heard that this was coming.

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: siria
Date: October 07, 2014 07:10PM

I've read about it a few weeks ago, guess it was about version30, long bug reports, but Mozilla got so much heat from corporate admins that they finally announced to restore those functions. My impression had been it would work again in 31? Now I'm slightly shocked... Are they just late or what?

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: JamesD
Date: October 07, 2014 09:48PM

I had hoped that Mozilla would continue the CAPS. Maybe it is later version, perhaps 32, when they bowed to pressure and put it back into the code. I have a fallback position in place. It is ugly, but better than nothing.

I just copied my whitelist sites into the pref that JS_Flag uses.

NOTE! That copy is all you can do while the right-click problem remains because the controls are in the DocumentSave menu.

JS_Flag.kmm

#  K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2)
#
# ---------- JS_Flag.kmm
# ---------- "Allow JavaScript for sites listed in a preference setting" 
#
# Dependencies        : main.kmm
# Resources           : panorama image JS_Flag.bmp and JS_Flag_lg in SKINS\DEFAULT 
# Preferences         : "javascript.enabled", "k-meleon_fjs.javascript_sites"
# Version             : 0.9  2014_05_02 
# -----------------------------------------------------------------------------------------------
# Note:	Javascript enabled flag is red for 'not safe'.  If enabled equal false, the flag is green

_JS_Flag_RunCode {
$_JSF_ToolbarName = "JS_Flag" ;
$_JSF_BSize = "16" ;
$_JSF_LastItem = "" ;
$_JSF_AddBarTag = $_JSF_ToolbarName .",". $_JSF_BSize .",". $_JSF_BSize .",". $_JSF_LastItem ; 
pluginmsg(toolbars, "AddToolbar", $_JSF_AddBarTag);

$_JSF_ButtonName = "FlipJS" ;
$_JSF_Command = "macros(JS_Flag_Toggle)" ;
$_JSF_MenuName = "" ;
$_JSF_tipText = "Flip JavaScript on/off";
$_JSF_ImageHot = "JS_Flag.bmp[2]" ;
$_JSF_ImageCold = "JS_Flag.bmp[1]" ;
$_JSF_ImageDead = "JS_Flag.bmp[3]" ;
$_JSF_AddButtonTag = $_JSF_ToolbarName.",".$_JSF_ButtonName.",".$_JSF_Command.",".$_JSF_MenuName.",".$_JSF_tipText.",".$_JSF_BSize.",".$_JSF_BSize.",".$_JSF_ImageHot.",".$_JSF_ImageCold.",".$_JSF_ImageDead.",".$_JSF_LastItem ; 
pluginmsg(toolbars, "AddButton", $_JSF_AddButtonTag);
## ---  SYNC BUTTON TO PREF FOR DEFAULT JS  --- ##
$_JSF_ImageType = "COLD" ;
$_JSF_Current = getpref( BOOL, "javascript.enabled");
if ($_JSF_Current == true ) {
	##  1 equals green  -  0 equals red
	$_JSF_ImageCold = "JS_Flag.bmp[0]"; } else {
	$_JSF_ImageCold = "JS_Flag.bmp[1]" ;
	}
$_JSF_SyncButtonTag = $_JSF_ToolbarName.",".$_JSF_Command.",".$_JSF_ImageType.",".$_JSF_ImageCold ;
pluginmsg(toolbars, "SetButtonImage", $_JSF_SyncButtonTag);
}

JS_Flag_Toggle {
togglepref( BOOL, "javascript.enabled");
$_JSF_ImageType = "COLD" ;
$_JSF_Current = getpref( BOOL, "javascript.enabled");
if ($_JSF_Current == true ) {
	##  1 equals green  -  0 equals red
	$_JSF_ImageCold = "JS_Flag.bmp[0]"; } else {
	$_JSF_ImageCold = "JS_Flag.bmp[1]" ;
	}
$_JSF_ToggleButtonTag = $_JSF_ToolbarName.",".$_JSF_Command.",".$_JSF_ImageType.",".$_JSF_ImageCold ;
pluginmsg(toolbars, "SetButtonImage", $_JSF_ToggleButtonTag);
}

_JS_Flag_Post {
$_JSF_CurDomain = hostname( $URL );
if ( getpref( BOOL, "javascript.enabled") == false ) {
	$_JSF_Allow = getpref(STRING,"k-meleon_fjs.javascript_sites");
	if ( index($_JSF_Allow, $_JSF_CurDomain) != -1 ) { 
		macros("JS_Flag_Toggle");
		id(ID_NAV_RELOAD);
		statusbar("Reloaded with JavaScript enabled");
		}
	}
index($_JSF_CurDomain, "about:") == -1 ? $JSFlag =false : $JSFlag =true ;
}

_JS_Flag_Pre {
getpref( BOOL, "javascript.enabled") ? macros("JS_Flag_Toggle") :0;
}

_JS_Flag_AddSite {
$_JSF_CurDomain = hostname( $URL );
menugrayed = $JSFlag ;
$_JSF_Allow = getpref(STRING,"k-meleon_fjs.javascript_sites");
if ( index($_JSF_Allow, $_JSF_CurDomain) == -1 ) {
	$_JSF_Allow = $_JSF_Allow. " " . $_JSF_CurDomain ;
	setpref(STRING,"k-meleon_fjs.javascript_sites", $_JSF_Allow);
	alert($_JSF_CurDomain, _("Domain Added"), INFO);
	} else {
	alert($_JSF_CurDomain, _("Domain already in list"), INFO);
	}
}

_JS_Flag_RemvSite {
$_JSF_CurDomain = hostname( $URL );
menugrayed = $JSFlag ;
$_JSF_Allow = getpref(STRING,"k-meleon_fjs.javascript_sites");
if ( index($_JSF_Allow, $_JSF_CurDomain) == -1 ) {
	alert($_JSF_CurDomain, _("Domain is not in list"), INFO);
	} else {  # Substitutes the string s for each substring matching the string r in the string t,
	$_JSF_Allow = gsub( $_JSF_CurDomain, "", $_JSF_Allow );
	$_JSF_Allow = gsub( "  ", " ", $_JSF_Allow );  ## catch any double spaces - change to single
	setpref(STRING,"k-meleon_fjs.javascript_sites", $_JSF_Allow);
	alert($_JSF_Allow, "This domain removed", INFO);
	}
}

_JS_Flag_SitesList {
$_JSF_Allow = getpref(STRING,"k-meleon_fjs.javascript_sites");
alert($_JSF_Allow, _("Sites in the 'Allow' list for Javascript"), INFO);
## there is a limit as to how many sites will display in an 'alert'.
}

_JS_Flag_BuildMenu {
$_JS_Flag_popm = _("JavaScript required sites") ;
setmenu("DocumentSave",popup,$_JS_Flag_popm,0);
setmenu($_JS_Flag_popm, macro,_("Add Current Domain"),_JS_Flag_AddSite,0);
setmenu($_JS_Flag_popm, macro,_("Remove Current Domain"),_JS_Flag_RemvSite,1);
setmenu($_JS_Flag_popm, macro,_("Review Domain list"),_JS_Flag_SitesList,2);
}

#------------------------------------------------------------------
$OnInit=$OnInit."_JS_Flag_BuildMenu;";
$OnLoad=$OnLoad."_JS_Flag_Post;";
$OnSetup=$OnSetup."_JS_Flag_RunCode;";
$OnStartup=$OnStartup."_JS_Flag_Pre;";
$macroModules=$macroModules."JS_Flag;";


Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: siria
Date: October 07, 2014 11:37PM

Tried to find that caps stuff again. Looks like they only restored what the corporate admins needed most, the caps for local file links, but no other CAPs sad smiley
That's all over the web in the release announcements for ESR31:

Quote

Removal of the CAPS infrastructure for specifying site-specific permissions (via capability.policy.* preferences). Most notably, attempts to use this functionality to grant access to the clipboard will no longer work. The sole exception is the checkloaduri permission, which may still be used as before to allow sites to load file:// URIs.

The discussion I had remembered was this one:
https://bugzilla.mozilla.org/show_bug.cgi?id=995943

And here the NoScript author makes it clear too, near bottom.
https://forums.informaction.com/viewtopic.php?f=7&t=19868&start=0

Actually that checkloaduri is the thing that I was forced to use in Styleon macro to append local scripts, because there was no other way to append a file, but with bellyache :-/ The other workaround I tried is with splitting/merging long files (because readfile has a limit at 32kB - is that still valid?), but distrust reliability because the file size afterwards is not quite exactly the same...

Options: ReplyQuote
Re: K-Meleon 74 / Gecko 31
Posted by: guenter
Date: October 08, 2014 01:50PM

Quote
JamesD
Do you get the red underscore to indicate a misspelling?

In no version since 1.6/1.7. For test I use our forum and mmm.

Probably system specific. No idea why?

Quote
JamesD


NOTE! That copy is all you can do while the right-click problem remains because the controls are in the DocumentSave menu.

That explains why the button "Save As" shows up after every new start and must be toggled off again.



Edited 1 time(s). Last edit at 10/08/2014 02:01PM by guenter.

Options: ReplyQuote
Pages: 123Next
Current Page: 1 of 3


K-Meleon forum is powered by Phorum.