Bug 13987
| Summary: | Clicking "Home" link on WebFX site causes JavaScript error | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | David Kilzer (:ddkilzer) <ddkilzer> |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | Normal | CC: | eae, mbritto, sroret |
| Priority: | P2 | ||
| Version: | 523.x (Safari 3) | ||
| Hardware: | Mac | ||
| OS: | OS X 10.4 | ||
| URL: | http://webfx.eae.net/ | ||
David Kilzer (:ddkilzer)
* SUMMARY
Clicking "Home" link on WebFX site causes JavaScript error. (Loading the page by typing in the URL and hitting enter works fine, though.)
* STEPS TO REPRODUCE
1. Open Safari/WebKit.
2. Go to URL: http://webfx.eae.net/
3. Click "Home" link on navigation bar.
* EXPECTED RESULTS
The home page should reload with the navigation bar and no JavaScript error.
* ACTUAL RESULTS
The home page reloads with no navigation bar and a JavaScript error.
* REGRESSION
This is not a regression as the same issue occurs in shipping Safari 2.0.4 (419.3) on Mac OS X 10.4.9 (8P135). Tested with a local debug build of WebKit r21952.
* NOTES
JavaScript Console error:
ReferenceError: Can't find variable: webfxMenuBar
http://webfx.eae.net/webfxlayout.js
Line: 57
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Maxime BRITTO
I noticed that I can reproduce the bug without using the navigation bar.
If I use the above link more than one time, the navigation bar is missing and the error appear.I have to refresh the page to have the navigation bar back (without the error).
Maybe it's related to visited link handling in the webkit.
David Kilzer (:ddkilzer)
(In reply to comment #1)
> I noticed that I can reproduce the bug without using the navigation bar.
> If I use the above link more than one time, the navigation bar is missing and
> the error appear.I have to refresh the page to have the navigation bar back
> (without the error).
I've seen this, too, but in both cases, the same JavaScript error occurs. BTW, do you have the hidden "Debug" menu enabled in Safari?
http://www.macosxhints.com/article.php?story=20030110063041629
> Maybe it's related to visited link handling in the webkit.
I doubt it only because of the same JavaScript error that occurs each time.
Maxime BRITTO
(In reply to comment #2)
> I've seen this, too, but in both cases, the same JavaScript error occurs. BTW,
> do you have the hidden "Debug" menu enabled in Safari?
>
> http://www.macosxhints.com/article.php?story=20030110063041629
I meant that this javascript error doesn't occur when I use refresh button or entering the page for the first time of the session. But I agree it always occurs when we reload this page through a link (the link can come from an external site or from the nav bar)
Yes I have already enabled the debug menu and it's very useful, thanks anyway.
> > Maybe it's related to visited link handling in the webkit.
>
> I doubt it only because of the same JavaScript error that occurs each time.
>
My guess was a cache problem : Safari is using his cache because the site has already been visited in the session and skips something which is, in fact, useful.
That would explain the correction of the bug by refreshing the page (or typing adress and press enter).
David Kilzer (:ddkilzer)
This appears to be fixed now. Not sure if the live site changed or whether the bug was fixed.