Closed Bug 136441 Opened 23 years ago Closed 23 years ago

<select> dropdowns messed up if they are in an iframe and the dropdown is longer than the iframe's height

Categories

(Core :: Layout: Form Controls, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.0.1

People

(Reporter: doronr, Assigned: roc)

References

()

Details

(Keywords: regression)

Attachments

(3 files, 1 obsolete file)

See the top right dropdown at http://www.sueddeutsche.de. The part of the dropdown below the iframe height (see http://www.sueddeutsche.de/sz/head.php for the iframe's src) is rendered as a brown box. Also seeing with XBL form controls on. Not that this will help, but this happens at a top 100 .de Evangelism site (bugscape 13585)
Doron saw this on WinXP, I'm seeing this on Linux. It looks like the dropdown popup's contents are simply not painted if they're outside the <iframe> borders. The shown items are clickable and working, the not painted part is also not reacting to any mouse clicks. Using arrow keys on the keyboard, you can navigate through the popup's contents, though (still not painted). Interestingly, it works fine if I show the document (head.php) in a new window (no iframe) and resize the moz window so that the dropdown goes outside the window. It's painted fine then, and working.
Keywords: mozilla1.0
btw, this works in Netscape 6.2.2, so a regression.
QA Contact: madhur → tpreston
This also happens on www.teletrade.se (when logged in), a Swedish online broker. RC1-build, WinNT and Win98. It is possible to select values in the dropdown by using the arrow-keys, but it's very ugly.
-> jkeiser as per irc
Assignee: rods → jkeiser
Adding regression keyword based on comment #2.
Keywords: regression
Status: NEW → ASSIGNED
Roc, this seems suspiciously like a bug in the new view manager.
Yes, it does sound like a view manager problem. I'll steal it for now.
Assignee: jkeiser → roc+moz
Status: ASSIGNED → NEW
Blocks: 143337
*** Bug 146393 has been marked as a duplicate of this bug. ***
The problem seems to be with an IFRAME that is clipped; the clipping is being applied to the popup.
Attached patch the fix (obsolete) — Splinter Review
Here's the fix. This patch does two things: 1) Removes GetFloating from the public nsIView interface and deXPCOMifies it 2) Makes a simple, small behavior change in nsView::GetClippedRect to fix this bug: as we go up the view tree searching for clippers, stop if we transition out of a floating view to a non-floating parent.
Need r/sr from kmcclusk+waterson
since this breaks a top german site, how would you feel with this landing for 1.0.1 regarding any possible regressions?
I'd be comfortable with that.
Nominating for nsbeta1, since it breaks a german top newspaper site (see http://bugscape.mcom.com/show_bug.cgi?id=13585). Iframes are pretty popular in europe and especially so in Asia...
Keywords: nsbeta1
Let me give you a minimal patch suitable for the branch (i.e., without the cleanup).
Attached patch Minimal patchSplinter Review
Here you go. We should try to get this into trunk and branch.
Attachment #85036 - Attachment is obsolete: true
Comment on attachment 85238 [details] [diff] [review] Minimal patch sr=waterson
Attachment #85238 - Flags: superreview+
nominating for 1.0.1 as well. Do you want to email drivers or should I?
Keywords: mozilla1.0.1
Let me check into the trunk first (should happen tonight or tomorrow). Once that's done and it's baked for a few days, you can email drivers (I always hate mailing drivers since I am one :-).)
Fix checked in on trunk.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Note that if this is checked into the branch then you should also check in the fix for bug http://bugzilla.mozilla.org/show_bug.cgi?id=148350, a compiler optimization bug.
Comment on attachment 85238 [details] [diff] [review] Minimal patch please check into the 1.0.1 branch ASAP. once landed remove the mozilla1.0.1+ keyword and add the fixed1.0.1 keyword
Attachment #85238 - Flags: approval+
Please make sure the patch for bug 148350 gets checked in with this
Target Milestone: --- → mozilla1.0.1
*** Bug 150505 has been marked as a duplicate of this bug. ***
Here is a combinded patch for this and the dependant compile bug that applies and builds on the branch: http://nexgenmedia.net/finalroc.txt (has roc's approval) Now someone with cvs access needs to check it in :)
Blocks: 143047
Keywords: adt1.0.1
Whiteboard: [adt2 RTM] [ETA 06/27]
Whiteboard: [adt2 RTM] [ETA 06/27]
This is indeed fixed on win xp branch build 2002062708 and mac OS X branch build 2002062705 BUT is not fixed linux branch build 2002062606, removing fixed1.0.1 keyword and changing os to linux
Keywords: fixed1.0.1
OS: All → Linux
Verified fixed win XP trunk build 2002062713, Mac OS Trunk build 2002062712 and linux trunk build 2002062713, so marking verified (only open issue in this bug then is linux branch)
Status: RESOLVED → VERIFIED
Keywords: fixed1.0.1
Verified linux branch build 2002082207
No longer blocks: 143337
*** Bug 143337 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: