Development :  K-Meleon Web Browser Forum
K-Meleon development related discussions. 
A 0.9final bug correction
Posted by: Alain
Date: January 30, 2005 05:02PM

Found 2 bugs in 0.9 final:

-------------------------------
1) When installing K-Meleon:

If a k-meleon window has more than a layer opened and closure confirm is on,
KM's intaller tries to close KM, and assumes it does, but to make it real, we must
answer to the dialog box.

As Installer keep the focus, the confirm dialog box is under ans invisible.

You can now install with k-Meleon opened. Don't think it's good.

a)Is-there a way to force the dialog box to be forward ? in this case, the solution is
in K-Meleon
b)Or, better a way to automaticly answer Yes to the confirm dialog box?

-------------------------------
2) If Allow modification is off, when opening links page info, the box opens in
a new windows or a new layer which is unusable.

Here are the improvments to make it works correctly:

1) first add an variable which is visible from anywhere (out of a function,
for example at the begining of macros.cfg)

# Public variable modified by ListLink() and used by BlockScripts() and AllowScripts()
IsBox = "";

2) Modify BlockScripts and AllowScripts as this:

BlockScripts{
$bool=true; $menu=false; &Scripts; &Sync;
$IsBox == "" ? alert("Sites are now BLOCKED from hiding toolbars, resizing the browser and disabling context menus.",Scripts,INFO):0;
}
AllowScripts{
$bool=false; $menu=true; &Scripts; &Sync;
$IsBox == "" ? alert("Sites are now ALLOWED to hide toolbars, resize the browser and disable context menus.",Scripts, INFO):0;
}

At this point, no difference

3) Modify VewLinks as this:

ViewLinks{
$IsBox = "No";
$tip = getpref(BOOL,$flip)
$tip == true ? &AllowScripts:0;
$macro="OpenLinks"; &JSEnable;
$tip == true ? &BlockScripts:0;
$IsBox = "";
}

That's all folks

Options: ReplyQuote
Re: A 0.9final bug correction
Posted by: clickfish
Date: January 30, 2005 08:36PM

hello Alain,

# Public variable modified by ListLink() and used by BlockScripts() and AllowScripts()
IsBox = "";

is here an character like this $ missing?

for example:

# Public variable modified by ListLink() and used by BlockScripts() and AllowScripts()
$IsBox = "";

Options: ReplyQuote
Re: A 0.9final bug correction
Posted by: alain.NOSPAM.aupeix@wanadoo.fr
Date: January 30, 2005 09:49PM

You're right,:

$IsBox = "";

Thanks

Options: ReplyQuote


K-Meleon forum is powered by Phorum.