WebRep broken pictures?

Here it is. I shrunk the window for upload speed, but it’s all there.

Thanks for your fast reply. Could you please try this HTML? Hopefully you should see everything correctly. If not then we might ditch the IMG tags alltogether in favour of the DIV tags. Cheers.

Nuts! Below is your source code. Make sure my cache didn’t get the old one. I’ll check each link in a little while.

.close1 { background: url("res://C:%5CProgram Files%5CAVAST Software%5CAvast%5CaswWebRepIE.dll/close.png") center center no-repeat; width: 16px; height: 16px; }

.logo1 {
background: url(“res://C:%5CProgram Files%5CAVAST Software%5CAvast%5CaswWebRepIE.dll/logo.png”) center center no-repeat;
width: 100px;
height: 44px;
}

You got the right file mate. I have validated it against the W3C validator (0 Errors, 0 Warnings). So I presume this is a bug of IE. Interestingly enough I also use IE8 here on my end and it renders just fine…

Something is very strange here. I renamed your ORIGINAL file to a.htm and it still fails. I then opened it in Notepad and saved it as b.htm. That works fine! Try my b.htm and see if it fails on your system. Oh yes, .txt → .htm as before.

A little more info. If I copy your file to a Floppy (Non-NTFS), it also works fine.

Also, by using http://technet.microsoft.com/en-us/sysinternals/bb897440.aspx to remove the NTFS Stream info from your html file, it reads the resources pictures from the .dll file ok.

Just a quick thought… might it be the Site-settings concerning the codeset?

Is IE set to unicode (UTF 8)…???

No change. Definitely NTFS knows the html came from a different system than the resource pictures in the .dll file, and IE (and an old Mozilla) isn’t happy. I’ll try FF soon.

It must be that Zone.Identifier thing in the NTFS alternate data stream then…

If k.u.r.t finds b.htm (copy of his file) created on my box, behaves funny on his, that’ll confirm it. Pictures embeded, as resources, in a dll may have to be distributed as real .png, .gif, .jpg files or linked to on some site, to keep Windows happy. I haven’t tried FF yet, but even if it works, we can’t have a FF only WebRep.

We’re still ignoring the security settings problem too.

Both of your files show fine here. I am tempted to think that this might have something to do with your browser’s cache rather than NTFS or what not. My point is that the content does get displayed if we use a DIV and it’s background attribute to display the picture. Also I have been made aware of the fact that under certain circumstances IE cannot display images which do not have its weight and height defined explicitely (which is the case in the current HTML for the popup window). Try purging your cache and let’s see whether that helps.

I always suspect cache and run CCleaner to clear cache and cookies between tests, When you saved my b.txt, did you “Right-Click > Save Target as…”? If you Left-Clicked it, let IE display it, and then “File > Save as…”, NTFS would mark it as created on your machine and prove nothing.

I’m also aware of the IE8 explicit dimension problem, but the fact remains that when I remove the NTFS Stream info from your file, it displays perfectly.

I’m not arguing. Just puzzled.

I’m attaching b.txt (htm) again, because I, for one, am getting confused scrolling back up this thread.

Ok, created the new topic: http://forum.avast.com/index.php?topic=72657.0

Please do so. :slight_smile:
Thanks,
asyn

OK mate,
I don’t see much point investigating the cause any further when we in fact have a solution that we can use. Please try the attached file and let me know if that works for you so that I can add it to the next program update. Cheers.

Works like a charm. Good work!

Now, any thoughts on the “Mixed Content” problem? That’s the only thing left, I know of, that’s keeping me from enabling the WebRep feature.

Cool job. :slight_smile:

/Bob

Thank you for your help! Regarding the second issue: I have tried it on IE8/Win7. When I set mixed content to “Enable” and then go to https://encrypted.google.com and serach for something it does not display any alerts. Will keep you posted if our QA team manage to reproduce this on one of their test boxes.

Nothing’s ever simple. :frowning: If I enable the addon, and go to that site, I have to click [No] twice at the attached popup.

Just FYI: I tried enabling “Display Mixed Content” in the Group Policy Editor too. Same results.