mozilla crashes when scrolling or filling in a form after downloading page with javascript error




17 years ago
17 years ago


(Reporter: rein, Assigned: attinasi)



Windows 2000

Firefox Tracking Flags

(Not tracked)



(6 attachments)



17 years ago
When clicking on a link resulting in downloading a page with sources as giving
in the attachment, both scrolling the page, or trying to fill in the form
results in a crash of Mozilla.

The javascript console gives the following error messages:

Error: document.getElementById("helptext").currentStyle has no properties
Source File:
Line: 150

Error: document.getElementById("helptext").currentStyle has no properties
Source File:
Line: 150

Error: redeclaration of const hide
Source File: chrome://wallet/content/walletOverlay.js
Line: 1


The messages above appear after downloading the page.
What happens during the crash has been captures by the talkback agent, see
the incidents with ID's  TB2572354Q and TB2571850K

Reproducable: always

URL: unfortunately, the urls are behind a password and used for local applications.

Comment 1

17 years ago
Created attachment 68120 [details]
source of page that lets Mozilla crash

Comment 2

17 years ago
Additional comment: I am using Build 2002020406.


17 years ago
Attachment #68120 - Attachment mime type: text/html → text/plain

Comment 3

17 years ago
Created attachment 68160 [details]
Rein's Talkback incidents

Comment 4

17 years ago
Created attachment 68162 [details]
Stack trace from a WinNT debug build

Comment 5

17 years ago
Confirming crash on Attachment #1 [details] [diff] above. All the stack traces look 
similar; based on them, reassigning to Layout component -
Assignee: rogerl → attinasi
Component: JavaScript Engine → Layout
Ever confirmed: true
QA Contact: pschwartau → petersen
Taking bug. Marking nsbeta1+
Keywords: nsbeta1+
Target Milestone: --- → mozilla1.0


17 years ago
Priority: -- → P1


17 years ago
Whiteboard: creating testcase

Comment 7

17 years ago
Created attachment 69290 [details]
Reduced test that crashes (from original attachment)


17 years ago
Keywords: testcase
Whiteboard: creating testcase

Comment 8

17 years ago

I reduced the test to a mininium number of functions in the script element (same
thing done with document's HTML elements). Could you take a look at the file ?

Comment 9

17 years ago
Chris: I was able to reduce the testcase even further and still get
the same stack trace as in Comment #4 above. Will attach this below -

Comment 10

17 years ago
Created attachment 69778 [details]
Reduced test even more (crashes with same stack as URL does)

Comment 11

17 years ago
To expand on my setup: using WinNT Mozilla trunk binary 2002021413
and a WinNT debug build 2002-02-10. 

I can't add any more from the JS Debugger, because the reduced test
crashes on load, before I can set a breakpoint. At any rate, the 
WinNT c++ stack trace in Comment #4 alwayss come up in any debug build
as soon as you load the test -

Comment 12

17 years ago
Here is the HTML source of the reduced test in Comment #10:

<title>Bug 123803</title>

function onLoadActions()
  document.getElementById('cursusgegevens').style.display = 'none';           
  document.getElementById('periodeaanduiding').style.display = 'none';                

<body onload="onLoadActions()">

<div id='cursusgegevens'>
  <input id='periodeaanduiding'>

<input type='button'>


Comment 13

17 years ago
Note I get almost the same exact stack trace as in Comment #4 above
when I mouseover the "DHTML Menu Builder" menu item at the top left.

Exact steps in
One of the differences in the stack traces is the presence here of 
          DeviceContextImpl::GetMetricsFor() line 303
          nsTextFrame::TextStyle::TextStyle() line 553
          nsTextFrame::Paint() line 1429

whereas at that site I get:
          DeviceContextImpl::GetMetricsFor() line 303
          ComputeLineHeight() line 2179 + 63 bytes
          nsHTMLReflowState::CalcLineHeight() line 2219

Will attach full stack trace below - 

Comment 14

17 years ago
Created attachment 70331 [details]
WinNT stack trace from site

Comment 15

17 years ago
I'm not getting the crash with today's build on the test cases or url. If this 
is still crashing, please be specific on how to recreate it.
Last Resolved: 17 years ago
Resolution: --- → WORKSFORME

Comment 16

17 years ago
With 2002031104 no crashes any more so that problem seems to be fixed.

However, also no additonal texts and such appear after selecting the appropriate
radiobuttons and javascript console says:

Error: document.getElementById("helptext").currentStyle has no properties
Source File:
Line: 62

I imagine this is because non-standard solutions are used in the script??
(It worked on previous versions of Mozilla)

Comment 17

17 years ago
Marking verfied wfm in the April 23rd OS X (2002-04-23-08) and Windows ME
You need to log in before you can comment on or make changes to this bug.