Closed Bug 295576 Opened 20 years ago Closed 13 years ago

Deer Park Alpha 1 doesn't show scrollbars

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
All
defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: thomas.theiner, Unassigned)

References

()

Details

(Whiteboard: [closeme 2011-09-21])

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050525 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050525 Firefox/1.0+

Take this javascript piece:
function openPictureWindow(imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
	newWindow =
window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
    newWindow.document.write('<html><title>'+alt+'</title><body
bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0"
onBlur="self.close()" bgproperties="fixed" nfragstart="return false"
onselectsart="return false" oncontextmenu="return false">');
	newWindow.document.write('<img src='+imageName+' width='+imageWidth+'
height='+imageHeight+' alt='+alt+'>');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

It is used with onClick on Image-Links. Imagine that the image being opened is
larger than the screen size.

In Firefox 1.0.4 it opens in a separate window which fits fully onto the screen.
It displays scrollbars. When minimizing this window, everything is just fine.

In Deer Park Beta 1 and older trunc builds the separate window opens too, but
without scrollbars. When minimizing the window, Deer Park Beta 1 crashes!

Reproducible: Always

Steps to Reproduce:
1.Put the javascript code into a script section of your page
2.Open an image sized larger than the screen size with onClick from an image link
3.Check the opening window for scrollbars and try to minimize it

Actual Results:  
Deer Park Beta 1 doesn't display scrollbars and crashes when minimizing

Expected Results:  
After all I know it should have displayed scrollbars and should NOT have crashed
when minimizing :-)

I was using no special theme, just the default one.
I've set up a web page that demonstrates the problem. I've inserted the URL above.
Sorry, I meant Deer Park ALPHA 1 of course!
Summary: Deer Park Beta 1 doesn't show scrollbars and crashes when minimizing → Deer Park Alpha 1 doesn't show scrollbars and crashes when minimizing
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8b2) Gecko/20050525
Firefox/1.0+

The window opened doesn't have scrollbars but I have no crash on minimizing (the
window is closed on minimize).
Same behaviour with IE (no scrollbar, no crash).
Is this bug valid ?
I get this bug to. With Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8b2) Gecko/20050526 Firefox/1.0+. I have two talkbacks ids TB6149012M and
TB6148942K
Component: General → JavaScript Engine
Product: Firefox → Core
Version: unspecified → Trunk
Incident ID: 6148942
Stack Signature	0x02cde130 0ac42e3e
Product ID	FirefoxTrunk
Build ID	2005052606
Trigger Time	2005-05-26 10:52:43.0
Platform	Win32
Operating System	Windows NT 5.1 build 2600
Module	
URL visited	
User Comments	
Since Last Crash	95 sec
Total Uptime	95 sec
Trigger Reason	Access violation
Source File, Line No.	N/A
Stack Trace 	
0x02cde130
PresShell::HandleEventInternal 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/layout/base/nsPresShell.cpp,
line 6321]
PresShell::HandleEvent 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/layout/base/nsPresShell.cpp,
line 6167]
nsViewManager::HandleEvent 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/view/src/nsViewManager.cpp,
line 2457]
nsViewManager::DispatchEvent 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/view/src/nsViewManager.cpp,
line 2224]
HandleEvent 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/view/src/nsView.cpp, line
174]
nsWindow::DispatchEvent 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/widget/src/windows/nsWindow.cpp,
line 1180]
nsWindow::DispatchFocus 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/widget/src/windows/nsWindow.cpp,
line 6111]
nsWindow::ProcessMessage 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/widget/src/windows/nsWindow.cpp,
line 4731]
nsWindow::WindowProc 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/widget/src/windows/nsWindow.cpp,
line 1472]
USER32.dll + 0x8734 (0x77d18734)
USER32.dll + 0x8816 (0x77d18816)
USER32.dll + 0xb4c0 (0x77d1b4c0)
USER32.dll + 0xb50c (0x77d1b50c)
ntdll.dll + 0xeae3 (0x7c91eae3)
nsGlobalWindow::Focus 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/dom/src/base/nsGlobalWindow.cpp,
line 2600]
nsWebShellWindow::HandleEvent 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp,
line 500]
nsWindow::DispatchEvent 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/widget/src/windows/nsWindow.cpp,
line 1180]
nsWindow::DispatchFocus 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/widget/src/windows/nsWindow.cpp,
line 6111]
nsWindow::ProcessMessage 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/widget/src/windows/nsWindow.cpp,
line 4731]
nsWindow::WindowProc 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/widget/src/windows/nsWindow.cpp,
line 1472]
USER32.dll + 0x8734 (0x77d18734)
USER32.dll + 0x8816 (0x77d18816)
USER32.dll + 0xb4c0 (0x77d1b4c0)
USER32.dll + 0xb50c (0x77d1b50c)
ntdll.dll + 0xeae3 (0x7c91eae3)
USER32.dll + 0xb3f9 (0x77d1b3f9)
USER32.dll + 0xb393 (0x77d1b393)
nsWindow::DefaultWindowProc 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/widget/src/windows/nsWindow.cpp,
line 1498]
USER32.dll + 0x8734 (0x77d18734)
USER32.dll + 0x8816 (0x77d18816)
USER32.dll + 0xc63f (0x77d1c63f)
USER32.dll + 0xc665 (0x77d1c665)
nsWindow::WindowProc 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/widget/src/windows/nsWindow.cpp,
line 1479]
USER32.dll + 0x8734 (0x77d18734)
USER32.dll + 0x8816 (0x77d18816)
USER32.dll + 0xb4c0 (0x77d1b4c0)
USER32.dll + 0xb50c (0x77d1b50c)
ntdll.dll + 0xeae3 (0x7c91eae3)
nsWebShellWindow::Destroy 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp,
line 849]
nsContentTreeOwner::Destroy 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/xpfe/appshell/src/nsContentTreeOwner.cpp,
line 463]
nsGlobalWindow::CloseWindow 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/dom/src/base/nsGlobalWindow.cpp,
line 4892]
nsJSContext::ScriptEvaluated 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/dom/src/base/nsJSEnvironment.cpp,
line 1899]
nsJSEventListener::HandleEvent 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/dom/src/events/nsJSEventListener.cpp,
line 184]
nsEventListenerManager::HandleEventSubType 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/content/events/src/nsEventListenerManager.cpp,
line 1568]
nsEventListenerManager::HandleEvent 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/content/events/src/nsEventListenerManager.cpp,
line 1669]
nsGlobalWindow::HandleDOMEvent 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/dom/src/base/nsGlobalWindow.cpp,
line 914]
nsDocument::HandleDOMEvent 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/content/base/src/nsDocument.cpp,
line 3969]
nsEventStateManager::PreHandleEvent 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/content/events/src/nsEventStateManager.cpp,
line 722]
PresShell::HandleEventInternal 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/layout/base/nsPresShell.cpp,
line 6321]
PresShell::HandleEvent 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/layout/base/nsPresShell.cpp,
line 6167]
nsViewManager::HandleEvent 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/view/src/nsViewManager.cpp,
line 2457]
nsViewManager::DispatchEvent 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/view/src/nsViewManager.cpp,
line 2224]
HandleEvent 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/view/src/nsView.cpp, line
174]
nsWindow::DispatchEvent 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/widget/src/windows/nsWindow.cpp,
line 1180]
nsWindow::DispatchFocus 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/widget/src/windows/nsWindow.cpp,
line 6111]
nsWindow::ProcessMessage 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/widget/src/windows/nsWindow.cpp,
line 4757]
nsWindow::WindowProc 
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.2_Depend/mozilla/widget/src/windows/nsWindow.cpp,
line 1472]
USER32.dll + 0x8734 (0x77d18734)
USER32.dll + 0x8816 (0x77d18816)
USER32.dll + 0xb4c0 (0x77d1b4c0)
USER32.dll + 0xb50c (0x77d1b50c)
ntdll.dll + 0xeae3 (0x7c91eae3)
USER32.dll + 0xb3f9 (0x77d1b3f9)
Assignee: nobody → events
Component: JavaScript Engine → Event Handling
QA Contact: general → ian
Summary: Deer Park Alpha 1 doesn't show scrollbars and crashes when minimizing → Deer Park Alpha 1 doesn't show scrollbars and crashes when minimizing [@ 0x02cde130 - PresShell::HandleEventInternal ]
Mozilla Suite is working:
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b2) Gecko/20050527
Deerpark is crashing:
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b2) Gecko/20050527 Firefox/1.0+
shorter stack equal to top of stack shown in comment 5
http://talkback-public.mozilla.org/talkback/fastfind.jsp?search=2&type=iid&id=TB6181117E

 nfragstart="return false"
onselectsart="return false"

seen in comment and code, seems there is missing something, shouldn't this be:
 
onfragstart="return false"
onselectstart="return false"
crash: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b2) Gecko/20050527 Firefox/1.0+
wfm:   Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b2) Gecko/20050527

I saved the page as HTML only, and removed onBlur="self.close()" and now it
isn´t crashing anymore. Scrollbars are still missing in Deerpark.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Message from Reporter:

Deer Park Alpha 2 is not crashing anymore. Still the scrollbars are missing.
Downgrading severity: No longer crashing
Severity: critical → major
pulled crash references from the summary since it sounds like that is not a problem now.  add again if this is not correct

"and crashes when minimizing [@ 0x02cde130 - PresShell::HandleEventInternal ]"
Summary: Deer Park Alpha 1 doesn't show scrollbars and crashes when minimizing [@ 0x02cde130 - PresShell::HandleEventInternal ] → Deer Park Alpha 1 doesn't show scrollbars
Still present Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.9a9pre) Gecko/2007100705 Minefield/3.0a9pre ID:2007100705
OS: Windows XP → All
Assignee: events → nobody
QA Contact: ian → events
No crash, but still no scrollbars in Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2b1) Gecko/20091029 Firefox/3.6b1
scrollbars seen in Seamonkey

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7pre) Gecko/20091209 SeaMonkey/2.0.2pre

scrollbars missing in GranParadiso, Shiretoko, Namoroka, Minefield

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.17pre) Gecko/2009120805 GranParadiso/3.0.17pre

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7pre) Gecko/20091208 Shiretoko/3.5.7pre

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2b6pre) Gecko/20091208 Namoroka/3.6b6pre

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a1pre) Gecko/20091208 Minefield/3.7a1pre
jonas, reporter, Do you still see this?
Whiteboard: [closeme 2011-09-21]
The scrollbars issue is bug 400920.  Firefox defaults to "scrollbars=no"
if it's not specified to window.open.
https://developer.mozilla.org/en/DOM/window.open

-> WORKSFORME (for the crash)
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.