Closed
Bug 8290
Opened 26 years ago
Closed 25 years ago
Pressing BACK button crashs the browser
Categories
(Core Graveyard :: Java: OJI, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
M17
People
(Reporter: pawyskoczka, Assigned: edburns)
References
()
Details
(Keywords: crash, Whiteboard: [nsbeta2-]ETA 8/3)
Attachments
(3 files)
Apprunner build is 6/15
RJE is 1.3
Occurs on Mac and Windows NT
Steps:
1. Launch the browser
2. Run the following url:
http://blues/users/bsharma/publish/ojitests/tags/applet/align.html
3. Browser crashes
![]() |
||
Updated•26 years ago
|
Assignee: amusil → av
Target Milestone: M8
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
![]() |
||
Updated•26 years ago
|
Status: RESOLVED → REOPENED
![]() |
||
Comment 1•26 years ago
|
||
Using 11/16/99 Mozilla build and jdk1.3 build "O" on WinNT,
loading this url would crash the browser.
It crashes in JPINS32.dll. Reassigning to Java folks for investigation.
![]() |
||
Updated•26 years ago
|
Severity: major → critical
![]() |
||
Comment 6•26 years ago
|
||
Could we have a public test case? Thanks.
![]() |
||
Comment 7•26 years ago
|
||
Added the test case in the attachment.
![]() |
||
Comment 8•26 years ago
|
||
Updated•26 years ago
|
Target Milestone: M13 → M14
Comment 9•26 years ago
|
||
move to m14. let me know if fixes are available. thx.
![]() |
||
Comment 10•26 years ago
|
||
This one happens on Windows-95 too.
I tested with todays build. [2000-01-24-09], and its crashing.
Here is simple testcase I'm providing. [Coming attachment.]
Just load this attachment and you'll see crash.
![]() |
||
Comment 11•26 years ago
|
||
![]() |
||
Comment 12•26 years ago
|
||
We have a blocker on this bug: the current Java Plug-In doesn't work with
current Mozilla builds, due to yet another set of Mozilla API changes. We are
working to get Sun's internal source tree for JDK/Plug-In modified to work with
current Mozilla builds. Only then can we begin working on this bug.
We have proposed solutions, have notified JDK Plug-In development team, and are
working with them to help implement their upgrade. Will update this bug when
that is done.
Status: NEW → ASSIGNED
![]() |
Assignee | |
Comment 14•26 years ago
|
||
I'm better set up to test this. But I can't test it until PAW makes the applet
available as an attachment to this bug, or as an externallay available applet.
Marking INVALID so PAW can post the applet.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago → 26 years ago
Resolution: --- → INVALID
![]() |
Reporter | |
Comment 15•26 years ago
|
||
![]() |
Reporter | |
Comment 16•26 years ago
|
||
Added testcase for align as an attachment. Reopening the bug.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
![]() |
||
Comment 17•26 years ago
|
||
For this applet, the browser crashes on the Windows 98 platform as well. It
gives "Runtime Error!. Abnormal Program Termination".
![]() |
||
Comment 18•26 years ago
|
||
For this applet, the browser crashes on the Windows 2000 platform as well.
Build ID: 03-17-00 Beta 1
![]() |
||
Comment 20•25 years ago
|
||
Adding "nsbeta2" keyword to nominate, since this causes a crash. Crashes ain't
good.
Keywords: nsbeta2
![]() |
Assignee | |
Comment 22•25 years ago
|
||
Using Stanley's 2 June JPI patch with a MOZ_DEBUG=1 Mozilla build from 9 July
this appears to work exactly as it should.
Marking FIXED.
Status: REOPENED → RESOLVED
Closed: 26 years ago → 25 years ago
Resolution: --- → FIXED
![]() |
||
Comment 24•25 years ago
|
||
The page shows up correclty and align does work as indicated
but after this page is loaded, clicking on browser Back button does nothing
Typing another URL does nothing
Choosing URL from 'GO menu option' does nothing.
So goes into a hung state
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
![]() |
||
Comment 26•25 years ago
|
||
Setting ETA to 7/26, if not fixed by end of tomorrow, will minus.
Whiteboard: [nsbeta2+] → [nsbeta2+]ETA 7/26
![]() |
Assignee | |
Comment 27•25 years ago
|
||
I notice that the nsWindow message proc is still running even after the hang,
but when I "break" the running execution after the hang the stack trace always
shows:
NTDLL! 77f677ef()
KERNEL32! 77f1c7d6()
JVM! 08057890()
MSVCRT! 7800248d()
KERNEL32! 77f04f2c()
I think this is related to lifecycle issues again. It appears the plugins are
not being properly stopped.
![]() |
Assignee | |
Comment 28•25 years ago
|
||
I find that the bug occurs even if I modify the testcase to have a single
applet. This rules out the possibility that multiple applets have something to
do with this bug.
![]() |
Assignee | |
Comment 29•25 years ago
|
||
reassign
![]() |
Assignee | |
Comment 30•25 years ago
|
||
Hi Stanley,
Environment: ladybird/JPI and mozilla OJI branch from AM 25 July 2000.
Here's what I observe when I visit a page with an applet and press back.
I set the following breakpoints:
1. nsObjectFrame.cpp nsObjectFrame::Destroy() where it calls inst->SetWindow
(nsnull)
2. awt_Component.cpp AwtComponent::WindowProc() where it handles the WM_DESTROY
message
3. nsWindow.cpp nsWindow::ProcessMessage() where it handles the WM_DESTROY
message.
When I press back I find that the breakpoints are hit in the following order:
1, 3
Breakpoint 2 is never hit.
When breakpoint 3 is hit, the stack trace ends with:
nsWindow::ProcessMessage(unsigned int 2, unsigned int 0, long 0, long *
0x0012e2ec) line 2650
nsWindow::WindowProc(HWND__ * 0x057e0392, unsigned int 2, unsigned int 0, long
0) line 829 + 27 bytes
USER32! 77e7288d()
USER32! 77e72918()
CJavaPluginView::PluginWndProc(HWND__ * 0x057e0392, unsigned int 2, unsigned
int 0, long 0) line 546 + 31 bytes
USER32! 77e71ab7()
USER32! 77e71a77()
NTDLL! 77f7624f()
nsView::~nsView() line 161
I think this is because CJavaPluginView::PluginWndProc() delegates the handling
of the WM_DESTROY message to the window from which it subclassed, which is an
nsWindow. Either that or it delegates it to its parent window.
MY QUESTION: Is this the correct ordering?
Status: NEW → ASSIGNED
![]() |
||
Comment 31•25 years ago
|
||
Ed,
1. nsObjectFrame.cpp nsObjectFrame::Destroy() where it calls inst->SetWindow
(nsnull)
2. awt_Component.cpp AwtComponent::WindowProc() where it handles the WM_DESTROY
message
3. nsWindow.cpp nsWindow::ProcessMessage() where it handles the WM_DESTROY
message.
> I think this is because CJavaPluginView::PluginWndProc() delegates the
> handling of the WM_DESTROY message to the window from which it subclassed,
> which is an nsWindow. Either that or it delegates it to its parent window.
>
> MY QUESTION: Is this the correct ordering?
CJavaPluginView::PluginWndProc() is a hook into the browser's plugin window
message loop. Therefore, when WM_DESTROY is sent to the native window,
CJavaPluginView::PluginWndProc() will get a hold of it, before the native
window message loop process it.
From the MS documents:
"The WM_DESTROY message is sent when a window is being destroyed. It is sent to
the window procedure of the window being destroyed after the window is removed
from the screen. "
"This message is sent first to the window being destroyed and then to the child
windows (if any) as they are destroyed. During the processing of the message,
it can be assumed that all child windows still exist."
Therefore, the correct order should be 1, 3, 2 in this case.
![]() |
Assignee | |
Comment 32•25 years ago
|
||
Added Stanley to CC.
![]() |
Assignee | |
Comment 33•25 years ago
|
||
Stanley, so you're saying that it is CORRECT that setWindow(nsnull) should
occurr BEFORE the window is destroyed?
![]() |
Assignee | |
Comment 34•25 years ago
|
||
Changed ETA to 8/3
Whiteboard: [nsbeta2+]ETA 7/26 → [nsbeta2+]ETA 8/3
![]() |
||
Comment 35•25 years ago
|
||
Per todays PR2 nsbeta2+ blocking bugs review, no me left. moving from
[nsbeta2+] to [nsbeta2-]. Putting on nsbeta3 nominee radar. If you get a fix,
put it on the trunk, not the branch.
Keywords: nsbeta3
Whiteboard: [nsbeta2+]ETA 8/3 → [nsbeta2-]ETA 8/3
![]() |
||
Comment 36•25 years ago
|
||
This does not crash anymore on windows build 2000081508M18.Applets load fine on
this testpage. Changing OS to Mac.
OS: Windows NT → Mac System 9.0
Hardware: PC → Macintosh
![]() |
||
Comment 37•25 years ago
|
||
Retried this test url with today's build on windows and crashed after I pressed
BACK button(applets loaded fine,build 2000081608m18). Resummarizing and
changing back OS:ALL.
OS: Mac System 9.0 → All
Hardware: Macintosh → PC
Summary: The applet tag with the align parm crashs the browser → Pressing BACK button crashs the browser
![]() |
Assignee | |
Comment 38•25 years ago
|
||
The ALIGN part of this bug is fixed. The Applet Lifecycle part of this bug is
not. Please see bug 31220.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → FIXED
![]() |
||
Comment 39•25 years ago
|
||
marking veriifed since the original problem in this bug is fixed (align tag
crashes browser). Logged bug 50547 for the hang when pressing back button. Also,
the lifecycle problem is a different bug. so... closing this one.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•