Closed
Bug 201443
Opened 23 years ago
Closed 23 years ago
guardian crossword functions broken-- java javascript
Categories
(Core Graveyard :: Java: OJI, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: slindsay, Assigned: joshua.xia)
References
()
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030405 Phoenix/0.5
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030405 Phoenix/0.5
Cheating and checking and saving don't work on the Guardian's Quiptic Crossword.
Javascript console shows these errors:
Error: document.puzzle.cheat is not a function
Source File: http://www.guardian.co.uk/crossword/java/blank/0,7082,-5798,00.html
Line: 224
Error: uncaught exception: [Exception... "Component returned failure code:
0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getIntPref]" nsresult:
"0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame ::
chrome://cookie/content/cookieTasksOverlay.xul :: CookieTasksStartup :: line 84"
data: no]
Error: document.puzzle.save is not a function
Source File: http://www.guardian.co.uk/crossword/java/blank/0,7082,-5798,00.html
Line: 206
Reproducible: Always
Steps to Reproduce:
1.enable java, javascript, cookies, etc.
2.go to a Guardian crossword puzzle
3.click buttons to enable features like cheating
Actual Results:
Eerie silence. Error messages appeared in JavaScript Console.
Expected Results:
Mozilla should have let me peek at the answers.
j2re1.4.1_01 from Sun, the ns610 plugin correctly symlinked.
I first noticed the problem on my everyday mozilla, like a version 1.2.9 binary
package from Debian Sid.
Don't know whether it's Rhino or Java or Tech Evangalism or what. It would be
cool if somebody at mozilla.org could find a solution.
Comment 1•23 years ago
|
||
liveconnect for triage...
Assignee: asa → rogerl
Component: Browser-General → Live Connect
QA Contact: asa → pschwartau
Comment 2•23 years ago
|
||
Using Mozilla trunk 2003-04-04 WinNT binary, Java Plug-in 1.4.1.
The site document.writes() an applet named "puzzle":
<applet archive="/crossword/java/puzzle.jar" name="puzzle"
code="crossword/Crossword.class" width="640" height="324">
They then access functions in the applet via JavaScript, as follows:
document.puzzle.cheat();
document.puzzle.save();
This is working fine for me with my WinNT build above. For example,
the first time I click the "Cheat" button, I get a popup saying,
"Cheating is not enabled.
Click OK to enable it now, or CANCEL to leave it disabled."
I clicked OK. I clicked it again, and nothing happened (because I hadn't
started playing the puzzle yet). I started playing a word in the puzzle,
clicked the button again, and it provided the answer in the puzzle for me.
Every time I click the Cheat button, I get this message in the Java Console:
JavaScript: caller and callee have same origin
JavaScript: default security policy = http://www.guardian.co.uk
I'm getting no errors in the JavaScript Console. Will try Linux now -
Component: Live Connect → OJI
Comment 3•23 years ago
|
||
The site is also working fine for me on Linux RH7.1, Java plug-in 1.4.0-b92.
Reassigning to OJI in case this is some subtle JRE issue with Phoenix builds.
Shawn:
1. Did this site ever work with Mozilla in the past?
2. What happens if you launch Mozilla as follows:
[ ]./mozilla -profilemanager
When the Profile Manager comes up, click on "Create Profile".
Does the bug still occur with the new profile?
3. Are you running through any web proxy, "privoxy" for example?
4. > the ns610 plugin is correctly symlinked
NOTE: don't use the ns610 directory, that is for Forte-compiled Mozilla.
The ns600 directory is for gcc-compiled Mozilla. See bug 162682 comment 15.
Again, with my Mozilla trunk builds (rv:1.4a) on both WinNT and Linux,
this site WORKSFORME -
Assignee: rogerl → joshua.xia
QA Contact: pschwartau → dsirnapalli
| Reporter | ||
Comment 4•23 years ago
|
||
okay.
1) it hadn't worked with mozilla 1.2.1-9, but now it does.
2) it worked with a new profile, modern theme, default settings
3) no proxy
4) I changed the symlinks from ns610 to ns600
You think I must have set a pref in my default profile(s) that's causing a
problem here? I'll do some trial and error. It's looking like pbeuak. Might
as well close it.
Thanks.
Comment 5•23 years ago
|
||
Shawn: thanks, resolving as WORKSFORME.
You may not have changed the pref that broke this site. We've
had situations where repeated installs corrupt the prefs file
somehow. This is stored in mozilla/defaults/pref/ with the
name "all.js" or "user.js" or "prefs.js"
Bug 159195 is a good example -
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•