Closed Bug 70553 Opened 24 years ago Closed 24 years ago

[CBX]clicking on page after opening combo box tries to load directory

Categories

(Core :: Layout: Form Controls, defect, P1)

x86
Windows 2000
defect

Tracking

()

VERIFIED DUPLICATE of bug 62753
mozilla0.9

People

(Reporter: the-enigman, Assigned: rods)

References

()

Details

Overview Description: open the combo box with the list of stations. Scroll over some entries, then click somewhere blank on the page. The url in the address bar changes to http://www.octranspo.com/mapscheds/transitway/ which results in a "Directory Listing Denied" error Expected behavior: the page should not change when this happens. Tested on: Moz 0.8, Win2000
probably related to bug 62753
possibly, but there are differences: in that bug is selects the wrong entry from the list, but here what is being loaded is not an entry from the list (it's the directory in which each entry in the list is located)...
QA Contact: gerardok → bsharma
qa contact updated.
Confirmed Platform: PC OS: Windows 98 Mozilla Build: 2001022805 Marking NEW.
Assignee: clayton → rods
Status: UNCONFIRMED → NEW
Component: HTML Element → HTML Form Controls
Ever confirmed: true
OS: other → Windows 2000
I've identified why this is happening. On the URL where this bug occurs, the code for the combo box looks like this: <select NAME="SelectURL" onChange= "document.location.href= document.nav.SelectURL.options[document.nav.SelectURL.selectedIndex].value" style="font-size: 8pt; color: #003366; background-color: #FFFFCC; font-family: Arial; font-weight: bold" size="1"> <option SELECTED>Station ... <option VALUE="http://www.octranspo.com/mapscheds/transitway/abbey.htm"> Abbey (etc...) However, another page on the same site (http://www.octranspo.com/newt/routekey/rk_selector_first.htm) does not demonstrate the bug. Here is its code: <select NAME="SelectURL" onChange= "parent.mapwindow.location.href= document.nav.SelectURL.options[document.nav.SelectURL.selectedIndex].value" style="font-size: 8pt; color: #003366; background-color: #FFFFCC; font-family: Arial; font-weight: bold" size="1"> <option VALUE="http://www.octranspo.com/newt/routekey/keymap.html" SELECTED>route ... <option VALUE="http://www.octranspo.com/newt/routekey/keymap_1.html"> route 1 (etc...) The difference is this second example, there is a URL attached to the first option, whereas in the first example (where the bug occurs) there is no url attached to that entry. You'll notice that for the second example, if you click on the first option "(route)" then it loads that URL even though it's the same page. IE does not. So I guess the fix for this bug is: look at the onChange code and see where the URL for the option is pointing to. Then only if it's different than the current page will it be loaded.
My guess is that when it rolls up the list when nothing is selected, it can't tell that it is a "default" selection and somehow thinks the selection has changed.
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla0.9
QA Contact Update
QA Contact: bsharma → vladimire
Summary: clicking on page after opening combo box tries to load directory → [CBX]clicking on page after opening combo box tries to load directory
This might be a dup of Bug 62753.
The fix for Bug 62753 fixes this bug, marking as a duplicate *** This bug has been marked as a duplicate of 62753 ***
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Verified dup.
Status: RESOLVED → VERIFIED
This can still happen in one circumstance: If you click the dropdown, mouse over some entries, then click within the same frame, things work fine. However, if you click the dropdown, mouse over some entries, then click in the top frame, the "Directory Listing Denied" error pops up again. This means that either there is a separate issue here other than bug 62753, or the fix for 62753 doesn't work properly with framed pages.
maybe the other bug should be reopened
You need to log in before you can comment on or make changes to this bug.