Closed Bug 17385 Opened 25 years ago Closed 25 years ago

opening this URL causes JavaScript failure on WinNT SP#4 using Oct27th daily build

Categories

(Core :: JavaScript Engine, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: reast, Assigned: mike+mozilla)

References

Details

Visit this http://www.nationalgeographic.com/maps/index.html which uses much Javascript / DHTML. I'm afraid I'm inexpert at debuggin why it might happen, but anyway, the Oct27th Mozilla eventually just shows a blank page, and dumps the following in the console. It works fine in Communicator 4.7 (or is that equivalent to cussing around here? :) Parse Time (this=0152BC90): Real time 0:0:0, CP time 0.010 DTD Time: Real time 0:0:0, CP time 0.000 Tokenize Time: Real time 0:0:0, CP time 0.010 Parse Time (this=015028F0): Real time 0:0:0, CP time 0.000 DTD Time: Real time 0:0:0, CP time 0.000 Tokenize Time: Real time 0:0:0, CP time 0.000 *** Timing layout processes on url: 'http://www.nationalgeographic.com/maps/inde x.html', webshell: 011B7020 Parse Time (this=015028F0): Real time 0:0:0, CP time 0.000 DTD Time: Real time 0:0:0, CP time 0.000 Tokenize Time: Real time 0:0:0, CP time 0.000 Parse Time (this=01524050): Real time 0:0:0, CP time 0.000 DTD Time: Real time 0:0:0, CP time 0.000 Tokenize Time: Real time 0:0:0, CP time 0.000 JavaScript Error: uncaught exception: [Exception... "Failure" code: "-214746725 9" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "http://www.nationalgeog raphic.com/maps/index.html Line: 21"] Content creation time (this=01524D40): Real time 0:0:0, CP time 0.000 Reflow time (this=01489080): Real time 0:0:0, CP time 0.010 Frame construction plus style resolution time (this=01489080): Real time 0:0:21, CP time 0.541 Style resolution time (this=01489080): Real time 0:0:21, CP time 0.541 Parse Time (this=01524050): Real time 0:0:0, CP time 0.000 DTD Time: Real time 0:0:20, CP time 0.501 Tokenize Time: Real time 0:0:0, CP time 0.000 Total (Layout + Page Load) Time (webshell=011B7020): Real time 0:0:24, CP time 1 .001 JavaScript Error: uncaught exception: [Exception... "ServiceManager::GetService returned failure code: 0x80004005 (NS_ERROR_FAILURE)" nsresult: "0x80004005 (NS _ERROR_FAILURE)" location: "JS frame :: file:///C|/win32app/Netscape5/m10-oct27 /bin/chrome/navigator/content/default/navigator.js :: UpdateBookmarksLastVisited Date :: line 233" data: no] JavaScript Error: uncaught exception: [Exception... "Failure" code: "-214746725 9" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "http://www.nationalgeog raphic.com/maps/index.html Line: 9"] Document http://www.nationalgeographic.com/maps/index.html loaded successfully Total (Layout + Page Load) Time (webshell=004E8CE0): Real time 0:0:2, CP time 1. 813
Assignee: mccabe → rjc
Component: Javascript Engine → UE/UI
Looks like an error might be coming from UpdateBookmarksLastVisitedDate? rjc is the lucky blamee. Robert - If you have any better clue as to who the forward the bug to, please feel free...
Status: NEW → ASSIGNED
Target Milestone: M15
Assignee: rjc → saari
Status: ASSIGNED → NEW
I added some debugging to UpdateBookmarksLastVisited() in navigator.js and it completes successfully for the URL in question, so that isn't the problem. UpdateBookmarksLastVisited() is registered in navigator.js around line # 477 via the line: window.addEventListener("load", UpdateBookmarksLastVisited, true); so perhaps there is a problem with event listeners? (Note: I see this bug on all platforms.) saari, any idea? I think you might be familiar with the event code. (If not, perhaps you know who is?)
I think the bookmark issue is a red-herring. I had neglected to remove the mozregistry.dat from my WINNT folder. After I removed it and restarted, I now get this [ now with Build M11] : Error: Can't load: http://www.nationalgeographic.com/maps/index.html (804b0002) JavaScript Error: uncaught exception: [Exception... "Failure" code: "-214746725 9" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "http://plasma.nationalg eographic.com/mapmachine/index.html Line: 28"] Content creation time (this=01A60480): Real time 0:0:0, CP time 0.000 Reflow time (this=01A05280): Real time 0:0:0, CP time 0.000 Frame construction plus style resolution time (this=01A05280): Real time 0:0:1, CP time 0.160 Style resolution time (this=01A05280): Real time 0:0:1, CP time 0.160 Parse Time (this=01A65C40): Real time 0:0:0, CP time 0.000 DTD Time: Real time 0:0:1, CP time 0.130 Tokenize Time: Real time 0:0:0, CP time 0.000 Total (Layout + Page Load) Time (webshell=01766430): Real time 0:0:2, CP time 0. 761 failed to set the page title. JavaScript Error: uncaught exception: [Exception... "Failure" code: "-214746725 9" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "http://plasma.nationalg eographic.com/mapmachine/index.html Line: 14"] Document http://www.nationalgeographic.com/maps/index.html loaded successfully Document: Done (2.313 secs) Total (Layout + Page Load) Time (webshell=004EAC50): Real time 0:0:8, CP time 2. 293
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Fixed. Calling ServiceManager::GetService() can fail inside of a window opened via JavaScript that isn't local, due to security, so wrap the call inside of a JavaScript "try" block.
Status: RESOLVED → REOPENED
*** Bug 22719 has been marked as a duplicate of this bug. ***
Reopening; see comments to 22719.
Component: UE/UI → Javascript Engine
QA Contact: cbegle → rginda
Resolution: FIXED → ---
Clearing FIXED resolution due to reopen.
Hey, how did this get assigned to me? Just because focus is in the stack doesn't mean it is my fault! Tossing back to mccabe
Assignee: saari → mccabe
Status: REOPENED → NEW
Funny, that's what I say about javascript traces :) rjc?
Assignee: mccabe → rjc
Not me any more. :^(
Assignee: rjc → mccabe
Still happening with M13. I have a completely new PC with SP5 now. I installed M13 on it this morning. When I visit the url: http://www.nationalgeographic.com/mapmachine I get: JavaScript Error: uncaught exception: [Exception... "Failure" code: "-214746725 9" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "http://plasma.nationalg eographic.com/mapmachine/ Line: 19"] JavaScript Error: uncaught exception: [Exception... "Failure" code: "-214746725 9" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "http://plasma.nationalg eographic.com/mapmachine/ Line: 6"] Document http://www.nationalgeographic.com/mapmachine loaded successfully which I think is pretty much the same problem.
What is the status on this bug? Any chance the fix will make the M15 stability checkpoint? If not, please push to M16 asap. Thanks
worksforme I'm using build winNT 2000041008. I noticed the reporter is using M13. reast@esri.com try downloading a newer version http://ftp.mozilla.org/pub/mozilla/nightly/latest/mozilla-win32.zip If you can reproduce using that version please re-open this bug.
Status: NEW → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → WORKSFORME
I'm unable to properly view the URL anymore - I've been trying to get to it with build M14,M15 and now M16. The page that you now see at http://plasma.nationalgeographic.com/mapmachine/ prevents Netscape v5/v6 from viewing, and instead shows a page that recommends that you get the "latest" IE or Netscape. If you open the same page in current IE or NS v4.7 you'll see what the "real" url is like. There is a similar URL now available at http://corleone.esri.com/website/301 in which a map is displayed using DHTML layers. If you click and drag the mouse within the map, you'll see a "rubberbanding" rectangle which is a feature of the map, constructed using layers. These seem to work now in M15/M16, so I'd say that I'm a happy camper, and am happy to leave the bug as resolved. Thanks!
Verified Platform: PC OS: Windows 98 Mozilla Build: 2000101020 M18 Trunk Build
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.