Closed Bug 7509 Opened 25 years ago Closed 25 years ago

Embed tag doesn't recognize percentages in width & height attributes

Categories

(Core Graveyard :: Plug-ins, defect, P3)

x86
Windows NT
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: cohn, Assigned: serhunt)

References

Details

Attachments

(3 files)

If you use <embed src="..." width="100%" height="100%>, the width and height
are converted to 100 pixels. The problem is in
[layout/html/base/src/nsObjectFrame.cpp]nsPluginInstanceOwner::GetWidth which
does the following:
	*result = (PRUint32)atol(width);
So, "nnn%" gets converted to "nnn".
Status: NEW → ASSIGNED
Target Milestone: M10
Reassigning Plugin bugs to Andrei
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
QA Contact: beppe → elig
*** Bug 13929 has been marked as a duplicate of this bug. ***
[Note to self: check OBJECT example from 13929 as part of verifying this bug.]
Confirmed that this works properly using the embed tag on Win32 and Mac OS
(1999101208). Couldn't check Linux due to 16125.

(test case temporarily located at http://www.prometheus-music.com/meow/
plugtest.html)

Will check next on OBJECT tag.
*** Bug 9562 has been marked as a duplicate of this bug. ***
Status: RESOLVED → VERIFIED
Verifying as fixed using same builds cited in 16:08 comment. Attached the test
cases used, should anyone wish to double-check the verification.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: