Closed Bug 455956 Opened 16 years ago Closed 15 years ago

embed/objects set width & height to 'auto' instead of default values of 240x200

Categories

(Firefox for Android Graveyard :: General, defect, P3)

x86
Linux
defect

Tracking

(Not tracked)

VERIFIED FIXED
fennec1.0b2

People

(Reporter: jmaher, Assigned: youwotma)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b1pre) Gecko/20080916182923 Fennec/1.0a1pre

in Fx3.1 an embedded object which doesn't have a width/height defined has a value of 240x200.  In Fennec, this is set to auto.  The mochitests have 10 cases which fail in /tests/content/base/test/test_bug268972.html

I have created a simple html test case which will pop up an alert box if it receives auto for the width or height.  This will work fine in Fx3.1 and fail in Fennec

Reproducible: Always

Steps to Reproduce:
1. run attached test_fail10.html in fennec
2. observe two popups indicating 'auto' for width and height
3. run attached test_fail10.html in Firefox 3.1 and observe no popups
Actual Results:  
style.width returns auto
style.height returns auto

Expected Results:  
style.width return 240 if there is nothing set
style.height returns 200 if there is nothing set
this will display a popup if it fails (i.e. has the value of 'auto' instead of 240px or 200px).
i have no idea why this would happen only in fennec.  anyone have any thoughts/ideas?
Is this the missing plugin stuff?  There are some style rules for that that live in the theme; not sure if that's the right place for them.

See also bug 368972.
Assignee: nobody → gavin.sharp
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: wanted-fennec1.0+
Priority: -- → P3
Target Milestone: --- → Fennec A2
This is possibly related to bug 455866. Seems like the missing plugin styling (including the binding) just isn't being applied in Fennec for some reason (i.e. the rules in toolkit/mozapps/plugins/content/missingPluginBinding.css aren't matching).
Target Milestone: Fennec A2 → Fennec A4
Blocks: 473558
The patch that I am making for the bug 455866 also fix this issue.
Fixed by patch in bug 455866:
https://hg.mozilla.org/mobile-browser/rev/6bfcbaf1c420
Assignee: gavin.sharp → youwotma
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
verified FIXED On builds: 

Mozilla/5.0 (Windows; U; WindowsCE 5.2; en-US; rv:1.9.2a2pre) Gecko/20090921 Fennec/1.0a3


and

Mozilla/5.0 (X11; U; Linux armv6l; en-US; rv:1.9.2a2pre) Gecko/20090921
Fennec/1.0b4pre
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: