Closed Bug 16631 Opened 26 years ago Closed 26 years ago

[DOGFOOD]If you select text and drag to the bottom of the browser window it crashes

Categories

(Core :: DOM: Selection, defect, P1)

x86
Windows 98
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: marshall, Assigned: kinmoz)

References

Details

(Whiteboard: [PDT+])

Launch the browser, click and drag the mouse to the bottom of the screen. The browser will crash. Build 1999101608
Could not reproduce on Windows NT with 1999-10-17-09-M11. Procedure followed: 1. Left-Click within browser window and keep left mouse button down. 2. Drag to bottom of window and beyond, to the bottom edge of the host OS desktop. 3. Try repeatedly, slowly and quickly, trying to click-drag off each of the four edges of the desktop. 4. Check console for messages. Observed: No Crash, no unexpected console messages. marshall@pssnet.com, you marked the OS as "other" on the PC platform. What was it?
Whoops. Sorry I'm operating Win98
Assignee: mjudge → kin
I don't see this problem on Macintosh. Eli--can you confirm this is a win98 only problem? Reassign to kin@netscape.com since he's been working in this area.
Status: NEW → ASSIGNED
Target Milestone: M11
Accepting bug. marshall, do you have a stack trace for the crash that I can look at?
No I don't... just using the binaries. One thing I did figure out, is that it only happens when I turn on the xul scrollbars. When I use the default windows scrollbars, it just scrolls the page.
This is a known bug, and one of the reasons why XUL scrollbars aren't on by default. It's crashing in selection code because it uses anonymous content.
Confirmed with 1999-10-18-08-M11 on WinNT 4.0sp3: If scrollbars are native, no crash. If scrollbars are xul: Actual Results: 1. Over three restarts of mozilla.exe, each time the contents of the window jumped to the top, much like what happens when dragging a scrollbar down if the pointer wanders left or right out of the scrollbar, except here the jump was not back to the origin, but to the top, when the origin of the drag was not the top. 2. Result 1 occurred once or twice; on the scecond or third try, CRASH
Target Milestone: M11 → M13
Summary: If you select text and drag to the bottom of the browser window it crashes → [DOGFOOD]If you select text and drag to the bottom of the browser window it crashes
Scrollbars are a must for dogfood and for beta -- proposing this be given dogfood status.
Target Milestone: M13 → M12
Whiteboard: [PDT+]
Putting on the PDT+ radar.
Blocks: 12658
Priority: P3 → P1
Blocks: 17907
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
mjudge@netscape.com checked in some code to check for null in mozilla/layout/base/src/nsContentIterator.cpp revision 1.33 that actually prevents us from crashing. But there are still some serious selection problems like Selection AutoScrolling being broken when Gfx scrollbars are turned on. I'll file these as a separate bugs.
OS: other → Windows 98
Can't reproduce using 1999110911 build on NT 4.0 SP5. sidr@albedo.net or marshall@pssnet.com, would you like to also give this a quick look and confirm that it's fixed? (I've never seen this bug firsthand.) Thanks!
Sorry, still seeing both the crash and the snap-back scrolling with the 1999-11-10-09-M12, 1999-11-09-11-M11, and 1999-11-08-09-M11 nightly binaries on Win NT when GFX scrollbars are enabled - oddly, though, on different pages. The crash happens reliably within 4 iterations of click-dragging beyond the bottom of the canvas edge. Seen viewing http://www.infoworld.com/ Expected result: some sort of auto-scrolling, or nothing at all. Actual result, no scrolling, immediate crash. (Same for all 3 builds) The scrolling snap-back happens with 100% reliability when viewing http://www.angustel.ca/update/up.html iff the window is scrolled down below the headlines before trying to click-drag beyond the canvas' bottom edge. Tested with: Windows NT 4.0sp3, PCI Matrox Millenium video adapter (latest release driver), Dr Watson disabled (usually there's not enough room on the boot drive for a memory image file, and I prefer NT to stay up when an app crashes) Tested with GFX-scrollbars as that's how I saw the crash before. Query: Will gfx-scrollbars be enabled by default by the time of the M12 release? Will test with native scrollbars as well to see if that query matters.
Testing with native scrollbars, click-drag scrolling with 1999-11-09-11-M11 on WinNT works properly for http://www.angustel.ca/update/up.html and many other pages with no snap-back or crashing. On a page with a complex but clean table layout (http://news.bbc.co.uk/) the click-drag selection and scrolling works correctly horizontaly from column to column as well as vertically. Same with the parts of Windows Update Mozilla can get into. http://www.infoworld.com/ just plain crashes this build on use. Any click will do it, click-drag makes no difference, scrollbar type makes no diff. So this wasn't a good page to test with. Summary: 1. With native scrollbars, click-drag selection and scrolling seems to be working properly. No crashes. Tested repeatedly and with many pages. 2. With GFX scrollbars, click-drag selection and scrolling is snapping back to the top of the page when the bottom of the canvas is reached. (This is a distinct bug, bug 17989). No crashes. Tested repeatedly and with many pages. Observations: 1. This crash only ever seemed to happen when gfx scrollbars were turned on. 2. This crash was first seen shortly after gfx scrollbars first landed. 3. The crash seems to have been replaced by merely incorrect results, most of the time by 1999 10 19, and 100% of the time today. This does look fixed.
[e-mailed Kin to find out what he'd like to do with this bug. sidr@albedo, thanks for your extremely thorough investigation!]
Status: RESOLVED → VERIFIED
Per sidr's detailed research & Kin's confirmation, rubber-stamping as Verified/ Fixed. Thanks!
No longer blocks: 17907
You need to log in before you can comment on or make changes to this bug.