Page MenuHomePhabricator

Vector incompatible with old Netscape
Closed, ResolvedPublic

Description

"For various reasons, I'm stuck with an iBook G3 under System Mac OS 9.2, and I browse with Netscape 7.02. Since the recent changes, I can't access Wikipedia *at all*. Going to www.wikipedia.org gives me the bouquet of languages, but then, clicking on any of them provokes an "error of type 2" crash, and Netscape quits. Same (painful) experience when trying to reach *any* specific Wikipedia page, in any language."

Anyone have some old hardware laying around ? :D
Probably disabling all the jquery stuff on those platforms should fix it.


Version: 1.17.x
Severity: normal
Resolved: rSVN68003: UsabilityInitiative: Separate jQuery UI into a separate file and load it on…

Details

Reference
bz23926

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:03 PM
bzimport set Reference to bz23926.

You say *any* specific Wikipedia. Does that include those who haven't switched to Vector, try this link http://en.wikipedia.org/wiki/?useskin=monobook ?

i'm quoting a report. i'm not the affected person :D

(In reply to comment #1)

I don't have NS 7.02, but I tested a little with NS 7.1 on Windows XP.
Swedish Wikipedia which still use monobook works, and English Wikipedia works when using "?useskin=monobook" or if disabling javascript.
Trying to look at English or French Wikipedia in vector skin with javascript enabled crashes the browser.

I have just installed NS 7.2 PPC on my Mac 10.6 Intel system :D
I have the below crashreport, which I think might indicate that we are triggering the following old Mozilla JS bug: https://bugzilla.mozilla.org/show_bug.cgi?id=319683

Thread 7: Crashed (0xb7fffacc, 0x7d8cc59e)
0x0030ce88: @executable_path/libmozjs.dylib : _call_enumerate + 168
0x0030caf4: @executable_path/libmozjs.dylib : _js_PutCallObject + 48
0x00312334: @executable_path/libmozjs.dylib : _js_Invoke + 1888
0x00319204: @executable_path/libmozjs.dylib : _js_Interpret + 26224
0x003122d0: @executable_path/libmozjs.dylib : _js_Invoke + 1788
0x00319204: @executable_path/libmozjs.dylib : _js_Interpret + 26224
0x00312870: @executable_path/libmozjs.dylib : _js_Execute + 496
0x002f02fc: @executable_path/libmozjs.dylib : _JS_EvaluateUCScriptForPrincipals + 88
0x02aa787c: /Users/hartman/Desktop/Netscape.app/Contents/MacOS/components/libgklayout.dylib : nsJSContext::EvaluateString(nsAString const&, void*, nsIPrincipal*, char const*, unsigned int, char const*, nsAString&, int*) + 868
0x02998128: /Users/hartman/Desktop/Netscape.app/Contents/MacOS/components/libgklayout.dylib : nsScriptLoader::EvaluateScript(nsScriptLoadRequest*, nsString const&) + 428
0x02997d3c: /Users/hartman/Desktop/Netscape.app/Contents/MacOS/components/libgklayout.dylib : nsScriptLoader::ProcessRequest(nsScriptLoadRequest*) + 192
0x02998b38: /Users/hartman/Desktop/Netscape.app/Contents/MacOS/components/libgklayout.dylib : nsScriptLoader::OnStreamComplete(nsIStreamLoader*, nsISupports*, unsigned int, unsigned int, char const*) + 1864
0x01a6c14c: /Users/hartman/Desktop/Netscape.app/Contents/MacOS/components/libnecko.dylib : nsStreamLoader::OnStopRequest(nsIRequest*, nsISupports*, unsigned int) + 100
0x01ad11f0: /Users/hartman/Desktop/Netscape.app/Contents/MacOS/components/libnecko.dylib : nsHttpChannel::OnStopRequest(nsIRequest*, nsISupports*, unsigned int) + 552
0x01a561d4: /Users/hartman/Desktop/Netscape.app/Contents/MacOS/components/libnecko.dylib : nsInputStreamPump::OnStateStop() + 160
0x01a55e20: /Users/hartman/Desktop/Netscape.app/Contents/MacOS/components/libnecko.dylib : nsInputStreamPump::OnInputStreamReady(nsIAsyncInputStream*) + 128
0x00283b64: @executable_path/libxpcom.dylib : nsInputStreamReadyEvent::EventHandler(PLEvent*) + 68
0x0024307c: @executable_path/libxpcom.dylib : _PL_HandleEvent + 36
0x00242fa0: @executable_path/libxpcom.dylib : _PL_ProcessPendingEvents + 128
0x00243484: @executable_path/libxpcom.dylib : md_EventReceiverProc + 116
0x90bf381c: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1524
0x90bf41d8: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 456
0x90bf44b8: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _SendEventToEventTargetWithOptions + 72
0x90beffcc: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 2500
0x90bf3c54: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 2604
0x90bf41d8: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 456
0x90bf4518: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _SendEventToEventTarget + 72
0x90bf00b8: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _ToolboxEventDispatcher + 88
0x90c0dd10: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _GetOrPeekEvent + 584
0x90c0df28: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _GetNextEventMatchingMask + 168
0x90c0e2c8: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _WNEInternal + 180
0x90c0e4bc: /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _WaitNextEvent + 76
0x01e86f20: /Users/hartman/Desktop/Netscape.app/Contents/MacOS/components/libwidget_mac.dylib : nsMacMessagePump::GetEvent(EventRecord&) + 116
0x01e86dfc: /Users/hartman/Desktop/Netscape.app/Contents/MacOS/components/libwidget_mac.dylib : nsMacMessagePump::DoMessagePump() + 48
0x01e7abf8: /Users/hartman/Desktop/Netscape.app/Contents/MacOS/components/libwidget_mac.dylib : nsAppShell::Run() + 56
0x00004ad0: /Users/hartman/Desktop/Netscape.app/Contents/MacOS/mozilla-bin : main1(int, char**, nsISupports*) + 1636
0x00005024: /Users/hartman/Desktop/Netscape.app/Contents/MacOS/mozilla-bin : _main + 316
0x00001d00: /Users/hartman/Desktop/Netscape.app/Contents/MacOS/mozilla-bin :
start + 380
0x00001b80: /Users/hartman/Desktop/Netscape.app/Contents/MacOS/mozilla-bin : start + 48
0x98f8ffbf: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : _kIOMasterPortDefault + 4026771

PPC Thread State
srr0: 0x00000000 srr1: 0x00000000 vrsave: 0x00000000
cr: 0xXXXXXXXX xer: 0x20000000 lr: 0x0030ce88 ctr: 0x0033c9b0
r00: 0x0030ce88 r01: 0xbfffd320 r02: 0x0000001b r03: 0x00000001
r04: 0x01812070 r05: 0xafd9d683 r06: 0x15512734 r07: 0x00000015
r08: 0x0034cec0 r09: 0x15e4ead0 r10: 0x00000000 r11: 0x15535ac4
r12: 0x28442044 r13: 0x00000000 r14: 0x01818f60 r15: 0x026d65b0
r16: 0x15e0b760 r17: 0x1571dd00 r18: 0x00000000 r19: 0x00000002
r20: 0x00000008 r21: 0x00000000 r22: 0x12aea078 r23: 0x01d9515c
r24: 0x00000002 r25: 0x157acee0 r26: 0x00311994 r27: 0x00311968
r28: 0xbfffd440 r29: 0x12aea05c r30: 0x163056ec r31: 0x0030cdf0

I don't see any proto in our javascript. Can you isolate the crash to one file?

Bossavit wrote:

I am the affected person, very incompetent. I logged in there just to

(1) confirm that, in answer to

You say *any* specific Wikipedia. Does that include those who haven't switched
to Vector, try this link http://en.wikipedia.org/wiki/?useskin=monobook ?

you are right, I *can* access this. Trying to reach some Wikipedia page from this very panel will then crash Netscape.

(2) express my appreciation. You guys are awesome.

AB

If you are logged in, you can set in your preferences that you want to always see pages in monobook.
http://en.wikipedia.org/wiki/Special:Preferences?useskin=monobook

You can even register using ?useskin=monobook urls everywhere, but you may find easier to do that from another computer.

Depending on whether we can solve this problem, I think it's best for you to register an account (if you haven't done so already) and set in "My preferences" under the "Appearance", "monobook" skin as your default.

If that is not possible, try updating your browser to a newer version. Since you're likely on an older computer, look for the most recent version of the browser that is compatible with your system.

For example, Opera and Mozilla tend to be fairly good at supporting older MacOS versions. Opera 9.6 should work on your iBook with Mac OS X 10.2. This is pretty cool considering OSX 10.2 is from 2003, and Opera 9.6 from March 2009.

rm js/js2stopgap/ui.core.js makes Netscape not crash. seeing if i can further pinpoint the problem area.

If I remove the $.widget code from ui.core.js the browser no longer crashes. I can't seem to find what specific part of that code makes it crash...

(In reply to comment #10)

If I remove the $.widget code from ui.core.js the browser no longer crashes. I
can't seem to find what specific part of that code makes it crash...

That would be appreciated. In the meantime, I'll see what I can do towards loading ui.core.js dynamically.

Can you give me the User-Agent string of the affected browser and find out if there's a more recent version of Netscape in which this bug doesn't occur?

Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2

There are no higher versions of Netscape Navigator 7 and versions of Netscape Navigator 8 for the mac do not exist, so I cannot test those.
I tested Netscape 9.0.0.0 and it does not have the same problem: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.8pre) Gecko/20071015 Firefox/2.0.0.7 Navigator/9.0

Confirmed that this is now fixed on the deployed software of Wikipedia.