Closed Bug 631925 Opened 14 years ago Closed 14 years ago

problem with javascript: FF says "function is not defined", but it exists

Categories

(Firefox :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 627361

People

(Reporter: vladimir.naprstek, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b12pre) Gecko/20110206 Firefox/4.0b12pre Build Identifier: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b12pre) Gecko/20110206 Firefox/4.0b12pre Hi, we use helpdesk application (CA service desk). Up to FF 4.0b9 works properly. FF 4.0b10 in one function says "Error: do_default is not defined". I tested also latest build (4.0b12pre, 2011-02-06) with the same result. Function do_default also opens pop-up window. I preferences I allowed pop-up windows, allowed javascript. I suppose, it is some javascript settings. I checked page and all javascripts are really read from the same server as the page is. Reproducible: Always Steps to Reproduce: click to link, where function is bind. For developers is hard to test, this problem I see only in mentioned application.
Does it work in the Firefox safemode ? http://support.mozilla.com/en-US/kb/Safe+Mode There is only one chance if there is no available testcase. You have to download and test nightly builds to find the regression range. Would you do that ?
No, in safe mode I disabled all add-ons, but behavior is still the same. Test I can do (this evening). Is there any description how to do that? Or, do you mean download every night build after b9 and watch which version stop working?
You can download nightly builds from here : ftp://ftp.mozilla.org/pub/firefox/nightly/ use the comm-central ones. Download the build in the middle between b9 and b10 and start from there. You have to test only a few builds to find the 2 builds that are required for the regression range (the last working and the first broken one). Post the two "Source:build from" build revision from about:buildconfig in this bug. An example "Built from http://hg.mozilla.org/mozilla-central/rev/eb35c4e6d50e"
I tested versions since version 2011-01-12. this is last working version: ftp://ftp.mozilla.org/pub/mozilla.org/mozilla.org/firefox/nightly/2011-01-14-03-mozilla-central this version not worked: ftp://ftp.mozilla.org/pub/mozilla.org/mozilla.org/firefox/nightly/2011-01-15-03-mozilla-central The tag, where is the problem is: <a href="javascript:do_default(1)" class="record" onblur="blurRow(1)" onfocus="selectRow(1)" tabindex="110" id="rslnk_1_0" title="Incident #I11-164402">I11-164402</a>
We need the build revision of those 2 builds. Please enter about:buildconfig in Firefox URL bar and copy the build revisions from those 2 builds in this bug (as explained in comment #3. Thanks
I don't have it narrowed down to a decent test case yet, as it appears to require some of the stuff that is going on in the other frames, but it does break reliably with beta10 if I leave this line in the HTML: <BASE TARGET="_top"> If I take that line out, or use beta9, it works ok. I was even trying it with the following declaration right before the a href like in comment #4: function do_default { alert('Whee'); } I was able to duplicate it on Windows XP and Linux. Worked fine in both with beta9, broke on both in beta10. If I get time tomorrow I'll try to narrow it down further to make a proper test case. It's rather ugly with the way that Service Desk works.
Upon further searches, it looks like this is a duplicate of 627361, which has more detail. CA Unicenter is the old name for what is now CA Service Desk.
Considering Comment 7, setting as duplicate.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.