Open Bug 302568 Opened 19 years ago Updated 14 years ago

In <aw-server.js>, "Warning: reference to undefined property pageData.newsserver"

Categories

(SeaMonkey :: MailNews: Account Configuration, defect)

x86
Windows 98
defect
Not set
minor

Tracking

(Not tracked)

People

(Reporter: sgautherie, Unassigned)

Details

[Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b4) Gecko/20050728 SeaMonkey/1.0a]
(nightly) (W98SE)

Going Next on Identity page of News account creation wizard
{{
Warning: reference to undefined property pageData.newsserver
Source File: chrome://messenger/content/aw-server.js
Line: 108
}}
[Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b) Gecko/20050217] (<-- 1.8b1 !)
(W98SE)

Bug already there.


***** brendan, neil

As a sidenote, (in SMv1.0a at least) I noticed a very odd behaviour regarding
the JS Console:

This warning, like some others (in other bugs) will only show up if I press
Enter while focus is in a "field";
if I use the Next button (with keyboard/mouse), the JS.C. remains empty/unchanged.

(This could explain why I did not notice this kind of bugs before today... :-<)
[Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.10) Gecko/20050727] (-08 nightly)
(W98SE)

Bug there too.
(In reply to comment #1)
>As a sidenote, (in SMv1.0a at least) I noticed a very odd behaviour regarding
>the JS Console:
> 
>This warning, like some others (in other bugs) will only show up if I press
>Enter while focus is in a "field"; if I use the Next button (with
>keyboard/mouse), the JS.C. remains empty/unchanged.
Wow, that is odd...

The technique used in checkForEmail() appears to quash this warning too.
Build identifier: Mozilla/5.0 (Windows NT 6.1; rv:2.2a1pre) Gecko/20110424 Firefox/4.2a1pre SeaMonkey/2.2a1pre

Warning: reference to undefined property pageData.newsserver
Source File: chrome://messenger/content/aw-server.js
Line: 124

The reason that I gathered is the following. (Please correct me if
I'm wrong.)

When selecting Newsgroup account and after the identity entry page,
it goes to the Newsgroup server entry page.  When this page is 
displayed:

mailnews\base\prefs\content\AccountWizard.xul: line 241
241               onpageshow="return serverPageInit();"

It calls serverPageInit(); 
(from mailnews\base\prefs\content\aw-server.js)

115 function serverPageInit() {
116  gOnMailServersPage = (document.documentElement.currentPage.id == "serverpage");
117  gOnNewsServerPage = (document.documentElement.currentPage.id == "newsserver");
118  if (gOnNewsServerPage)
119  {
120    var newsServer = document.getElementById("newsServer");
121    var pageData = parent.GetPageData();
122    try 
123    {
124      newsServer.value = pageData.newsserver.hostname.value;
125    }
126    catch (ex){}
127  }

pageData.newsserver is not defined at line 121 because it was
never given a chance to be set.  Perhaps there is a case in
which it is set; but I haven't found it yet.
Look for AccountDataToPageData()
You need to log in before you can comment on or make changes to this bug.