placeholder for 0 size flash object

Bug reports and enhancement requests
Post Reply
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

placeholder for 0 size flash object

Post by al_9x »

fx 3.6.6, ns 1.9.9.98rc1

page: http://www.wimbledon.org/en_GB/scores/index.html
object: mip.swf

The div containing the object does not appear to be invisible. Shouldn't a min size placeholder be shown? According to the dom inspector, the placeholder is there but is inside the 0 size dummy object node. Shouldn't the object dummy be removed?

On a simple test page:

Code: Select all

<object width="0" height="0" type="application/x-shockwave-flash" data="http://url1.invalid/">
</object>
the placeholder is also invisible, it is in the dom with a 0 size. If the object size is increased (1x1, 2x2, 3x3) the placeholder starts becoming visible, but is still smaller then the min size. In the test page the dummy object node is gone.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: placeholder for 0 size flash object

Post by Giorgio Maone »

This is caused by the changes you recently asked for: now the "real" embedding, i.e. the one which was about to be loaded but was blocked, gets the placeholder.
In this case we've got an outer Active-X style <OBJECT>, which Firefox doesn't even consider as a loading candidate and therefore isn't tracked by NoScript, and an inner <EMBED> which is intercepted and replaced. Older NoScript just search for the outermost object ancestor and replaces it, since this idiom, which dates back to Netscape vs MSIE4 and is quickly disappearing thanks to SWFObject, was very common in the past. Anyway I'm tempted to restore the old "replace the outermost OBJECT ancestor" behavior and see if it can be merged with the new nested object management style.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: placeholder for 0 size flash object

Post by al_9x »

Are there not two separate issues here?
  1. In the test page, objects are not nested but the placeholder is still 0 size. So even prior to the changes (.92) the placeholder is not visible.
  2. the nested issue: an object chain is one logical object, so the placeholder replacing the whole thing (root object), regardless of which was actually blocked by NS, seems logical.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: placeholder for 0 size flash object

Post by Giorgio Maone »

al_9x wrote:Are there not two separate issues here?
Yes they are separated, but #1 is a non-issue:
al_9x wrote: In the test page, objects are not nested but the placeholder is still 0 size. So even prior to the changes (.92) the placeholder is not visible.
That's because the "minimum size" for placeholders is honored only if the document's surface is bigger than it. Otherwise the { (document's width - objects's left position), (document's height - object's top position) } is used.
Until you produce simplified test cases which contains exclusively embeddings, you'll keep hitting edge cases. Try with:

Code: Select all

<div style="width: 80px;height:80px"><object width="0" height="0" type="application/x-shockwave-flash" data="http://url1.invalid/"></object></div>
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: placeholder for 0 size flash object

Post by al_9x »

Giorgio Maone wrote:That's because the "minimum size" for placeholders is honored only if the document's surface is bigger than it.
Is that not the case on the wimbledon page? I also tried it in .92, placeholder is not visible.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: placeholder for 0 size flash object

Post by Giorgio Maone »

Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: placeholder for 0 size flash object

Post by al_9x »

Giorgio Maone wrote:Please check latest development build
1) the root object is now being replaced (so that part is fixed)
2) but though the container div (red border) expands to accommodate the min placeholder height, the actual placeholder has wrong height. The width seems to be ok.
Image
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: placeholder for 0 size flash object

Post by Giorgio Maone »

I actually get the expected 32x32 placeholder. Do you observe that behavior consistently?
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: placeholder for 0 size flash object

Post by al_9x »

Giorgio Maone wrote:I actually get the expected 32x32 placeholder. Do you observe that behavior consistently?
Yes, 100% consistent. xp32sp3, fx 3.6.6, ns 1.9.9.98rc2, new profile, apply to whitelisted, allow wimbledon.org
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: placeholder for 0 size flash object

Post by Giorgio Maone »

Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: placeholder for 0 size flash object

Post by al_9x »

Giorgio Maone wrote:Please check latest development build.
Fixed, I guess all the times that I tried it in rc2 it was outside the viewport.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: placeholder for 0 size flash object

Post by al_9x »

I think it's a related issue, the height of the pokkariStorage.swf placeholder on http://redlettermedia.blip.tv/ is less than min

Also something I noticed, the width of the clickable area (the A element) of the placeholder spans the width of the parent element. Can it be bound to just the placeholder?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: placeholder for 0 size flash object

Post by al_9x »

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: placeholder for 0 size flash object

Post by Giorgio Maone »

Putting in the backburner, thanks.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
Post Reply