General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Pages: 12Next
Current Page: 1 of 2
How to fix Java in 1.5.4 smiling smiley
Posted by: Jason Raub
Date: June 03, 2011 05:02PM

Okay most of the the internet relys on Java, you may load a page and wounder why is this page all messed up - Java may not be working. Here's what you do, go to this webpage> Java Test Page if there is no pink box in that blue rectangle test window then Java aint working. Here's how you fix the problem. First uninstall java from your computer, yes I said uninstall. If you dont have Java on computer yet this will still work. Okay now download this version of Java Correct Version For K-Meleon 1.5.4 Now I gotta say www.oldapps.com is hosting that file so go there some time I guess if it's supportive?? I donno but any way after you install that version Java will work! smiling smiley make sure and disable Java update too!

Options: ReplyQuote
Re: How to fix Java in 1.5.4 smiling smiley
Posted by: Jason Raub
Date: June 03, 2011 05:07PM

Ohh noo I messed up :O Okay dont use that link to get java I really made a goof up! use this one This Is The Correct Java! Not The One Above

Options: ReplyQuote
Re: How to fix Java in 1.5.4 smiling smiley
Posted by: siria
Date: June 03, 2011 05:54PM

Or perhaps before you mess it with an ancient version, click Help > FAQ and read about Sun's "new generation" crap and how to fix it by renaming a folder or file, or whatever the trick was :cool:

By the way I doubt that "most" of todays web would need Java, since I never had it installed, yet 98% of pages work fine ;-) You don't happen to mean JavaSCRIPT?? Since KM154 has an older javascript version, and there are more and more sites today which only display correctly with the newer javascript version from KM1.6 (beta version on download page)



Edited 2 time(s). Last edit at 06/03/2011 05:57PM by siria.

Options: ReplyQuote
Re: How to fix Java in 1.5.4 smiling smiley
Posted by: Jason Raub
Date: June 03, 2011 07:30PM

Well i'm sure others will find this easy to understand, if it's not an absolute requirement than at liest the older java version is still a useable option, it's better than nothing if you require it. it works thats what matters, aint got any more to say about it unless some one wants some help.

Options: ReplyQuote
Re: How to fix Java in 1.5.4 smiling smiley
Posted by: guenter
Date: June 03, 2011 09:03PM

Quote
Jason Raub
Okay most of the the internet relys on Java,

Means usually JavaScript.

Only in a minority of cases it means Java (Sun's JavaVirtualMachine that executes half compiled bite code that is suitable across OS borders).

BTW. siria You cannot view my lake applets homepage with Java (applet!) off.
And IMHO it is worth viewing tongue sticking out smiley

p.s. @Jason - I agree. It is essential that PPL pass on links on older versions & keep their downloads since the links disappear and then now more flash, java whatever if You have to reinstall OS after a crash.



Edited 1 time(s). Last edit at 06/03/2011 09:14PM by guenter.

Options: ReplyQuote
Re: How to fix Java in 1.5.4 smiling smiley
Posted by: disrupted
Date: June 03, 2011 10:48PM

jason i think you're confusing javascript with java runtime as gunter has noted. websites that require newer engines can't be fixed by updating sun's java, js rendering is part of the browser and can't be updated, you will need to use km 1.6 to take advantage of newer js functions.

java runtime for browsers is not very common, however some very popular online rpg and strategy games are developed with it so hardcore gamers need to keep java up to date. the developers of those games chose java over flash or shockwave at a time when flash wasn't available for linux and java games provide better cross-platform support especially that flash is crash-prone on mac osx. java games are also more resource friendly- at least before adobe introduced hardware acceleration but most importantly you don't want to miss out on gunter's serenity lakes

on a slightly different topic, did the mozilla plugins check used to work with 1.6?
https://www-trunk.stage.mozilla.com/en-US/plugincheck/
i think it used to but i'm not sure.. it throws a js error in the console: something not defined, it works with firefox 3.5 but oddly it gives similar errors in km 1.5 yet the js continues to load fine and the page can still read the plugins.. strange?

no matter what i do it doesn't seem to work on 1.6, with default profile ..the js is halted and prevented from accessing plugins, 1.5 continues to load with the errors without hiccups why? could it possibly be a kmeleon 1.6 bug in js engine since it loads on same firefox 3.5?



Edited 1 time(s). Last edit at 06/03/2011 11:00PM by disrupted.

Options: ReplyQuote
Re: How to fix Java in 1.5.4 smiling smiley
Posted by: disrupted
Date: June 03, 2011 11:22PM

fails with km1.7 1.9.2 as well, looks like a km bug
component returned failure code 0x80004001 nsIDOMNavigator.buildID
https://www-trunk.stage.mozilla.com/js/plugincheck.js

shouldn't it continue to load the js unless there's a security risk like firefox 3.5.1?

Options: ReplyQuote
Re: How to fix Java in 1.5.4 smiling smiley
Posted by: deadlock
Date: June 04, 2011 03:51PM

Does 'Tools/Privacy/Block Java' prevent applets to run for anyone?
I can play java games with active block.

Quote
disrupted
https://www-trunk.stage.mozilla.com/en-US/plugincheck/

fails with km1.7 1.9.2 as well, looks like a km bug
component returned failure code 0x80004001 nsIDOMNavigator.buildID
https://www-trunk.stage.mozilla.com/js/plugincheck.js

shouldn't it continue to load the js unless there's a security risk like firefox 3.5.1?

disrupted:
If no buildID values are returned,
there is no reason to continue?

Thanks for the link! I'm trying to find it in sources.
New GRE Code is useless if not called by KM,
like your Bug 1288 (-> ProvideWindow).

Can you please give me a sample, as small as possible,
that does require KPlugin: JSBridge.dll?
Could not find anything that uses it.



Edited 1 time(s). Last edit at 06/04/2011 04:07PM by deadlock.

Options: ReplyQuote
Re: How to fix Java in 1.5.4 smiling smiley
Posted by: Jason Raub
Date: June 04, 2011 04:11PM

I should have said java runtime environment from the start, didint mean to confuse any one. I kinda loosely said most of the internet uses Java (Java Runtime
Environment), i've seen ebay and other places not work without it and that is kinda important to my brother. The new beta version of K-Meleon is really nice, i'm not good with understanding all that code talk so i'm waiting until the smart people fix the bugs. If I could be of more help I would, kinda in a fog. Yes as most have said this is not some Javascript fix, I dont know much about Javascript but these people do so ask them about that stuff "if" your haveing problems.

Options: ReplyQuote
Re: How to fix Java in 1.5.4 smiling smiley
Posted by: MXB
Date: June 04, 2011 05:20PM

I only needed Java for 1 site recently: Formula One Live Timing. It used to work with FireFox 1.5 (Opera's a mess - believe it or not Opera 10.5 which works with Win98 also doesn't let you use an external Java because it has one built in I think - details I kinda forget now) but stopped sometime last year. Now I'm tempted to try it with K-M.

--
P2 400 MHz, 128 MB, Win 98 SE

Options: ReplyQuote
Java-Plugin, Javascript, KM1.6beta
Posted by: siria
Date: June 04, 2011 06:15PM

Quote
deadlock
Can you please give me a sample, as small as possible,
that does require KPlugin: JSBridge.dll?
Only know that I had wondered for months why the "Exceptions" button had vanished from F2>Privacy / Cookie stuff, and some day it suddenly reappeared when activating that ominous JSBridge!



Edited 1 time(s). Last edit at 06/04/2011 06:19PM by siria.

Options: ReplyQuote
Re: Java-Plugin, Javascript, KM1.6beta
Posted by: deadlock
Date: June 04, 2011 09:43PM

Quote
siria
Quote
deadlock
Can you please give me a sample, as small as possible,
that does require KPlugin: JSBridge.dll?
Only know that I had wondered for months why the 'Exceptions' button had vanished from F2>Privacy / Cookie stuff, and some day it suddenly reappeared when activating that ominous JSBridge!

Thank you Siria!

Exeptions Button appears only with JSBridge.dll.
Now we have a simple test for rebuilds of this library.
Tested all KM1.54/KM1.6/KM1.7 and CVS-Version.

But KM1.54 has an additional option:
"According to privacy settings"
with Button "Privacy Settings".

Is it broken, or has it been dropped?
Could also be specific to GRE 1.8.1.

If nobody knows, I'll search for this
or ask desga2 who made the new preferences.

Options: ReplyQuote
Re: Java-Plugin, Javascript, KM1.6beta
Posted by: disrupted
Date: June 04, 2011 11:26PM

i think it's specific to 1.8 but not sure..desga should know. hey, i never got to thank you for the workaround for 1288, fixed several extensison for 1.6, really appreciate your help in this.

i'm not sure if should continue load, i couldn't see the source in 1.6 from the error console kept crashing the entire browser so had to open it in 1.5 which throws a different error but can still detect the plugins... not really concerned about mozilla's upodate plugins site but what if its a bug that can affect other sites, more popular=user gets bovvered(FACEBOOK..ARGH)

your xulbridge question reminded me of something i should telll gordon..so thanks again!

Options: ReplyQuote
Re: Java-Plugin, Javascript, KM1.6beta
Posted by: deadlock
Date: June 05, 2011 03:39AM

Quote
disrupted
i think it's specific to 1.8 but not sure..desga should know. hey, i never got to thank you for the workaround for 1288, fixed several extensison for 1.6, really appreciate your help in this.

i'm not sure if should continue load, i couldn't see the source in 1.6 from the error console kept crashing the entire browser so had to open it in 1.5 which throws a different error but can still detect the plugins... not really concerned about mozilla's upodate plugins site but what if its a bug that can affect other sites, more popular=user gets bovvered(FACEBOOK..ARGH)

Good to know the workaround was useful.

If you fixed those extensions, why didn't you fix
your Console and Console2? It's the same problem and
results in CrashBadaboum (as defined in sources).

Look for viewSource.xul in chrome/embed.jar and change this:
<browser id='content' type='content-primary'
<browser id='content' type='chrome'

Guenter has the patched chrome for KM 1.6b2 on his site.
--

There is a problem with 'mozilla's update plugins site',
if it fails to detect its own child.
And I can't test Camino with GRE 1.9.1 which should
contain all required changes and may even solve Bug 1288.

If 'other sites' are affected, you're for sure the first one
who finds out. :cool:

I will try to get working typeaheadfind with my
profile. It never worked for me and crashes KM
in Fred's latest. Could be caused by too many URLs.



Edited 1 time(s). Last edit at 06/05/2011 04:50AM by deadlock.

Options: ReplyQuote
Re: Java-Plugin, Javascript, KM1.6beta
Posted by: guenter
Date: June 05, 2011 01:28PM

Quote
deadlock
fix your Console and Console2? It's the same problem and
results in CrashBadaboum (as defined in sources).

Look for viewSource.xul in chrome/embed.jar and change this:
<browser id='content' type='content-primary'
<browser id='content' type='chrome'

Guenter has the patched chrome for KM 1.6b2 on his site.
--

There is a problem with 'mozilla's update plugins site',
if it fails to detect its own child.
And I can't test Camino with GRE 1.9.1 which should
contain all required changes and may even solve Bug 1288.

If 'other sites' are affected, you're for sure the first one
who finds out. :cool:

I will try to get working typeaheadfind with my
profile. It never worked for me and crashes KM
in Fred's latest. Could be caused by too many URLs.

For console ViewSource I like better an old suggestion from a mail by You.

Repalcing in Console2.xml

openDialog("chrome://global/content/viewSource.xul", "_blank",
"all,dialog=no", this.getAttribute("href"), null, null,
this.getAttribute("line"));

With the following that calls a K-Meleon native view-source window.

window.open( "view-source:" + this.getAttribute("href") + "?" +
this.getAttribute("line") );


The drawback is that K-Meleon's native view-source has not context-menu or other menu and does not accept "line" as parameter. I wonder whether that drawbacks can be fixed.


IMHO generally replacing with: <browser id='content' type='chrome' can be a security risk?

deadlock has put a patched chrome/embed.jar to http://dhost.info/kmeleonskins/
Not all know where guenter stores K-Meleon stuff. grinning smiley

Working typeaheadfind came with version K-Meleon 1.0 AFAIK.
Make sure no ancient profile entries from before that are present.



Edited 2 time(s). Last edit at 06/06/2011 01:58PM by guenter.

Options: ReplyQuote
Re: Java-Plugin, Javascript, KM1.6beta
Posted by: disrupted
Date: June 06, 2011 11:35AM

thanks gunter and deadlock, fixed the errorconsole crash now and found another bug related to the very annoying cert warning second window, linked to neterror.xhtml and pref browser.chrome.favicon. reported there
http://kmeleon.sourceforge.net/bugs/viewbug.php?bugid=1315

fixed embed with previous fixes:
http://kmext.sourceforge.net/tests/embed-certerrorfixes.7z

with distinctive ssl error pages:

additionally links to images of airport piggies have been removed

you might want to add a new boolean browser.xul.error_pages.expert_bad_cert and set to true(saves an extra step on error certs)

embed also contains css modifications for more classic internal file browser


Options: ReplyQuote
Re: Java-Plugin, Javascript, KM1.6beta
Posted by: deadlock
Date: June 06, 2011 05:07PM


Chrome windows sized to parent size look ugly
and I also don't like modal windows.

But, if your patch is applied, there is no option
to open Certificate Viewer.

In KM 1.54 the page returns several small dialogs,
before you get to the page, Certificate Viewer is available.

I like the colours of the css. smiling smiley



Edited 4 time(s). Last edit at 06/20/2011 10:17AM by deadlock.

Options: ReplyQuote
Re: Java-Plugin, Javascript, KM1.6beta
Posted by: disrupted(unlogged)
Date: June 06, 2011 08:36PM

thanks deadlonch, can you please add the fix to the bug report so when th devs return they can compile right away. i think it's still important to encode the favicon inside neterror to display the achtung icon in the tab and urlbar:


with the original neterror, the favicon doesn't show in urlbar or tab and just uses skin default


i tried to add a view certificate button to the cert error page but gecko simply won't allow it very bluntly told me security won't allow calling viewcert() from xhtml, can only be allowed from xul and certerror is tied to universal neterror.xhtml. chrome browser doesn't have view certificate page in certerror page as well and won't allow access to triple cert errors in one site.. fools people into 'page not found'.

do you have any idea for this bug?
http://kmeleon.sourceforge.net/bugs/viewbug.php?bugid=1261
it's the one i hate most and driving me crazy, i've looked into xul bindings and dom_xul and layout_xul components and can't pinpoint it

Options: ReplyQuote
Re: Java-Plugin, Javascript, KM1.6beta
Posted by: deadlock
Date: June 06, 2011 09:10PM

@disrupted
Sorry for posting before thinking.
I'll edit this post, while work is in progress.

--
Update1:
1) K-Meleon opens url successful (Title is 'Page Load Error').
2) K-Meleon doesn't ask XUL for cert-errors!
3) K-Meleon looks for
https://www.mrtech.com/favicon.ico
although a cert error occurred.
4) XUL opens chrome-window with 2'nd title 'Page Load Error'

This is a test fix, where step 3 and 4 are skipped.
All other pages can load their site-icons.
(Filename is BrowserImpl.cpp, my changes are red.)

if (type.Equals(NS_LITERAL_STRING('DOMContentLoaded')))
{
// DOMContentLoaded is not send if the page is reloaded from cache
// Nevertheless I'm using it to get the IE favicon without waiting
// for all images of the page to be loaded

NS_ENSURE_TRUE(m_pBrowserFrameGlue, NS_ERROR_FAILURE);
CString title;
m_pBrowserFrameGlue->GetBrowserTitle(title);
if(_tcsncmp(_T('Page Load Error'),title,15)==0)
{
return NS_ERROR_FILE_ACCESS_DENIED;
}


m_pBrowserFrameGlue->SetFavIcon(nsnull);
return NS_OK;
}

Update2:
Found out what filters warning icon:
'chrome://global/skin/icons/warning-16.png'

CBrowoserImpl.cpp -> HandleEvent 'DOMLinkAdded'

rv = secMan->CheckLoadURI(docUri, favUri,
nsIScriptSecurityManager:confused smileyTANDARD);
/* failure means it didn't pass the security check */
if (NS_FAILED (rv)) return NS_OK;

No Chrome icons pass the lines above.
GRE 1.9.1 nsIScriptSecurityManager killed Console2 too.

Update3:
rv = secMan->CheckLoadURI(docUri, favUri,
nsIScriptSecurityManager:confused smileyTANDARD
| nsIScriptSecurityManager::ALLOW_CHROME);
/* failure means it didn't pass the security check */
if (NS_FAILED (rv)) return NS_OK;

This change allows loading chrome icons.
The yellow warning is in Caption and URLBar again.

Update4:
Tried to list all involved preferences:

(For title, urlbar, tabs and plugins.)
kmeleon.favicons.show

(To disable titleBar icons if show enabled.)
kmeleon.favicons.titleBar

(To disable bookmarks icons if show enabled.)
kmeleon.plugins.bookmarks.displaySiteicon

(Does it cache chrome, and what happens if not?)
kmeleon.favicons.cached

Chrome usage:
(for title, urlbar, tabs and plugins)
browser.chrome.favicons

if (!theApp.preferences.GetBool('browser.chrome.favicons', TRUE))
{

rv = secMan->CheckLoadURI(docUri, favUri,
nsIScriptSecurityManager:confused smileyTANDARD);
}
else
{
rv = secMan->CheckLoadURI(docUri, favUri,
nsIScriptSecurityManager:confused smileyTANDARD
| nsIScriptSecurityManager::ALLOW_CHROME);
}


Update5:
Problem solved: (no 2'nd popup and working favicon refresh)
1) Allow load of chrome images on netError.
2) Block favicon if invalid cert for URI. (warning-16.png is not blocked, it uses siteicon code.)
3) Enable show favicon if matching overwrite cert rule exists.
4) Force refresh favicon at end of overwrite button code.

todo: Test HTTPS site with siteicon and without favicon.

Found several http sites with siteicons and favicons.
Last loaded icon is displayed. Any ideas?

Micro$oft favicons are:
<server>/favicon.ico

Siteicons are:
rel='icon' or rel='shortcut icon' src='picture'

--
Next I would try to fix this (or later):
- chrome-windows with parameters
- remove all size to content changes that where added
- remove display problems if 'size to content' is used.
(update: fixed by minimize + moving up 2000 pixels on create and moving back on resize.)



Edited 8 time(s). Last edit at 06/22/2011 06:46PM by deadlock.

Options: ReplyQuote
Re: Java-Plugin, Javascript, KM1.6beta
Posted by: disrupted
Date: June 07, 2011 11:56AM

i think i found the problem for 1261, which this one might be related to and possibly this one as well http://kmeleon.sourceforge.net/bugs/viewbug.php?bugid=1308
. the child isn't forced to parent's size but it's sizetocontent isn't being initalised for new windows when there is no width/height attrbs.

for example if you write xul without defining width or height or presist etc

<!DOCTYPE window>
<window xmlns= "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";

>
<box>
<description>no size</description>
</box>
</window>


then you call it from macro, ideally it should calculate the content space inside and open with the right size. compare with km 1.5.x/1/1/x or firefox but in 1.6 instead of opening with size ready it opens the window with just the titlebar. but sizetocontent still works if you put it in onload like we did in all extensions but it isn't initialised on it's own but then why does it ignore width or height attributes and opens like parent? it doesn't actually.. if we add width and height, it will recognise them and draw the window with proper width and height

e.g
<!DOCTYPE window>
<window width="130" height="30"
xmlns= "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";

>
<box>
<description>predefined width and height</description>
</box>
</window>


you can write your xul and add all your panels and vboxes normally and then add your width/height and the window will still adhere to your assigned width/height until you call some file from outside the xul, that's when all the crazy begins and that's why all xul windows are having a fit in 1.6

normally any xul window will call the global css, that alone is enough to make the child open in parent's size and ignore all your width/height/size/position/screen variables, already it doesn't calculate content beforehand, it doesn't know how to draw the window n its own

now same code above but adding global css

<!DOCTYPE window>
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>


<window width="130" height="30"
xmlns= "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";

>
<box>
<description>call global style</description>
</box>
</window>


no longer will your width height be read and the window will open(not resize) like parent so the only way to fix it is to add window.sizetocontent onload

and this will happen if you call any external css or js, even in same chrome...doesn't matter

<?xml-stylesheet href="chrome://anotherchrome/skin/mycss.css" type="text/css"?>
or
<?xml-stylesheet href="insidemychrome.css" type="text/css"?>

or a js
<script src="initalise.js"/>

now if we add the code js script and styles inside the xul
for e.g using global css for simple window/dialog

<!DOCTYPE window>
<?xml version="1.0"?>

<window width="130" height="30"
xmlns= "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
style="-moz-appearance: window;
background-color: -moz-Dialog;
color: -moz-DialogText;
font: message-box;"


>
<box>
<description>adding internal styledescription>
</box>
</window>


same with js,


<script type="application/x-javascript">
<![CDATA[
var hello = { document.write("hello world");}]]>
</script>

and then calling hello or whatever functions onload, the size works fine

here's a test example using policymanager
http://kmext.sourceforge.net/tests/kmpolicies-test9.7z
all js and css coded inside..the parent size problem is gone (look inside selectpolicy and policymanager xuls, right click on page and select "policies manager" to test the windows, dialog policyman is called from the button manage )

so the bug seems to be at xpcom and domwindow, no calculating of xul content and ignoring all position/size attributes when a js or css is called from outside




Edited 1 time(s). Last edit at 06/07/2011 12:21PM by disrupted.


Options: ReplyQuote
Re: Java-Plugin, Javascript, KM1.6beta
Posted by: disrupted[unlogged]
Date: June 07, 2011 09:46PM

overcame the security error for the view cert button by adding the pipiki script vut it's nowcausing a js error window.arguments not defined line 496

function initCertErrorDialog()
{
pkiParams = window.arguments[0].QueryInterface(nsIPKIParamBlock);
dialogParams = pkiParams.QueryInterface(nsIDialogParamBlock);

var isupport = pkiParams.getISupportAtIndex(1);
cert = isupport.QueryInterface(nsIX509Cert);

var portNumber = dialogParams.GetInt(1);
var hostName = dialogParams.GetString(1);
var msg = dialogParams.GetString(2);

hostport = hostName + ":" + portNumber;
setText("warningText", msg);
}

function viewCert()
{
viewCertHelper(window, cert);
}


http://kmext.sourceforge.net/iol/netError.xhtml (save atarget as)


Options: ReplyQuote
Re: Java-Plugin, Javascript, KM1.6beta
Posted by: disrupted
Date: June 07, 2011 10:15PM

didn't see the update, thanks. see if you can fix the view certificate button above
undefined=true; didn't work

Options: ReplyQuote
Re: Java-Plugin, Javascript, KM1.6beta
Posted by: deadlock
Date: June 07, 2011 10:46PM

@disrupted
Error: window is undefined

If it is similar to the problem with console2,
the parent opener of netError.xhtml needs modification.


Update 1:
(Bug 1315 -> 'Page Load Error' window without Cert-viewer)
Now the title displays 'Page Load Error' and
the tab title displays 'empty', although the page is not empty.
Shouldn't a tab title represent it's content?

It will be possible to add code for 'View Certificate'.
The 'Continue...' button already has some code in
CBrowserGlue::performXULCommand. (todo)

Involved preferences:
security.remember_cert_checkbox_default_setting
security.default_personal_cert
browser.xul.error_pages.expert_bad_cert

(Bug 1315 -> triggers a second browser window)
Your raw image solution is perfect for 1.6b2.
pippki.dll and pippki.xpt are involved.
Without them, the second modal 'Page Load Error'
window is not loaded. (thanks Guenter)
For KM1.6b3 the ahead search for a hosts favicon has to
be aborted, if badCertService->GetRecentBadCert shows
an error for that host. (todo)

--
I'm still busy with favicons.



Edited 7 time(s). Last edit at 06/10/2011 03:32PM by deadlock.

Options: ReplyQuote
Re: Java-Plugin, Javascript, KM1.6beta
Posted by: deadlock
Date: June 14, 2011 02:57PM

Quote
disrupted
embed also contains css modifications for more classic internal file browser

@disrupted
Please try:

Proxy Server Refused Connection

Your changes in netError.dtd messed up the dialog.
I didn't test all the other error dialogs.

Options: ReplyQuote
Re: Java-Plugin, Javascript, KM1.6beta
Posted by: deadlock
Date: June 17, 2011 03:44PM

Quote
disrupted
see if you can fix the view certificate button above

Can't this be solved with .js in /chrome?
Here is a solution for next KM (works in CVS-Version):

netErrorApp.dtd
===
<xul:button xmlns:xul='http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul'; id='vieshit' label='&examineCert.label;'/>
===
(do not change ') (UPDATE moved from netError.xhtml to netErrorApp.dtd)

BrowserGlue.cpp
===
void CBrowserGlue::performXULCommand(LPCWSTR id, LPCTSTR siteUri)
{

if (wcscmp(id, L'vieshit') == 0)
{
nsCOMPtr<nsIRecentBadCertsService> badCertService = do_GetService(NS_RECENTBADCERTS_CONTRACTID);
if (!badCertService) return;

nsCOMPtr<nsIURI> uri;
mpBrowserView->GetBrowserWrapper()->GetCurrentURI(getter_AddRefs(uri));

nsresult rv;
PRInt32 port;
nsEmbedCString host;
uri->GetHost(host);
uri->GetPort(&port);
if (port == -1) port = 443;

CString hostAndPort;
hostAndPort.Format(_T('%s:%d'), NSCStringToCString(host), port);

nsCOMPtr<nsISSLStatus> certStatus;
badCertService->GetRecentBadCert(CStringToNSString(hostAndPort), getter_AddRefs(certStatus));
if (!certStatus) return;

nsCOMPtr<nsIX509Cert> cert;
certStatus->GetServerCert(getter_AddRefs(cert));
if (!cert) return;

nsCOMPtr<nsICertificateDialogs> certDialogs = do_GetService (NS_CERTIFICATEDIALOGS_CONTRACTID, &rv);
if (NS_FAILED (rv)) return;

certDialogs->ViewCert(NULL, cert);
return;
}
...
}
===
(change all ' to '')



Edited 1 time(s). Last edit at 06/20/2011 08:37AM by deadlock.

Options: ReplyQuote
Re: KM1.6beta bug fixes
Posted by: siria
Date: June 17, 2011 06:30PM

That's too cool that you can help fixing such complicated stuff, YES!! smiling smiley smiling smiley smiling smiley

Options: ReplyQuote
Re: KM1.6beta bug fixes
Posted by: deadlock
Date: June 20, 2011 10:52AM

@siria
Dorian wrote it, just moved some lines for 'View Certificate'.

@disrupted
Are there any basic components in 1.6b2
that are affected by bugid=1261 and bugid=1308?

I would search for internal code changes
but need an existing window with that problem.
--
netError.xhtml
window.open("about;mozilla"); works
window.open("http://existing-server"winking smiley; works
window.open("chrome://anything"); does not work

May require Securitymanager and local parent.
Didn't test 1.54 and older.

Options: ReplyQuote
Re: KM1.6beta bug fixes
Posted by: disrupted
Date: June 22, 2011 09:29AM

i am not sure , could possibly be gklayout.dll i suspect xpcom and xpcom_core at root for 1261

Options: ReplyQuote
Re: KM1.6beta bug fixes
Posted by: deadlock
Date: June 22, 2011 05:03PM

Quote
disrupted
i am not sure , could possibly be gklayout.dll i suspect xpcom and xpcom_core at root for 1261

I'm sure you can offer another sample for those bugs.
If possible without external applications.
Search for cause would be much easier.

--
Just finished a full fix for Cert-Bug with
icon refresh and cert-overwrite check.

Options: ReplyQuote
Re: KM1.6beta bug fixes
Posted by: diana_niko
Date: April 08, 2014 03:24PM

I have a problem with the way that some pages displays.
http://imageshack.com/a/img703/4286/w0ga.png
What can i do to display the image corectly?

I have installed K-Meleon1.5.4en-US.exe

Is this error due to java?

Options: ReplyQuote
Pages: 12Next
Current Page: 1 of 2


K-Meleon forum is powered by Phorum.