Closed Bug 183185 Opened 22 years ago Closed 21 years ago

In <pageInfo.js>, (JS) "Error: this.data[row] has no properties" (on pages with meta tags)

Categories

(SeaMonkey :: Page Info, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugzilla, Assigned: db48x)

References

()

Details

Attachments

(1 file)

Warning: reference to undefined property this.data[row] Source File: chrome://navigator/content/pageInfo.js Line: 82 to reproduce: 1) go to http://wap.gemal.dk/env.cgi press cancel in the Downloading dialog 2) right click on the empty white page and select Page Info 3) select the Forms tab check the js console... 20021201
ok, I know why this happens. See line 487, in the case where there are no form nodes in the document (and about:blank has no form nodes) Anyway, this'll be fixed when I get bug 181764 checked in
Depends on: 181764
The patch for bug 181764 has been checked in, it looks like that bug is only open for cosmetic reasons at this point. I don't get a "blank white page" when canceling the download, however. Henrik, can you make sure this has been fixed, please?
I get almost the same error but on line 81 Warning: reference to undefined property this.data[row] Source File: chrome://navigator/content/pageInfo.js Line: 81 I use mozilla 1.4 final. Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 I see the error opening the media tab. This happens on a page without any meta tags or other header info. I get this error twice on the page. This is the row complaining. 81: return this.data[row][colidx] || ""; If the bug 181764 was included in 1.4 final the problem persists. If needed I could create a testcase of my page.
[Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6a) Gecko/20031030] (BuildId=2003110115, bug 224340#c19) (W98SE) I just got tens of this one, like in a loop... { Error: this.data[row] has no properties Source File: chrome://navigator/content/pageInfo.js Line: 81 } It's no longer a (strict) warning: it's now an error. Changing: (S) normal -> major. The code says: { 75 76 // row can be null, but js arrays are 0-indexed. 77 // colidx cannot be null, but can be larger than the number 78 // of columns in the array (when column is a string not in 79 // this.columnids.) In this case it's the fault of 80 // whoever typoed while calling this function. 81 return this.data[row][colidx] || ""; }
Severity: normal → major
Summary: strict javascript warning in pageInfo.js → In <pageInfo.js>, (JS) "Error: this.data[row] has no properties"
I'm using the latest Mozilla 1.6beta (build 2003120808) and each time I consult the View/Page Info Ctrl+I, I get about 50 errors in the javascript console. Even after unchecking Edit/Preferences.../Debug/Show chrome javascript errors and warnings, I still get Error: this.data[row] has no properties Source File: chrome://navigator/content/pageInfo.js Line: 81 and I should not.
This bug sure looks like a DUPLICATE of bug 213860
*** Bug 213860 has been marked as a duplicate of this bug. ***
[Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6b) Gecko/20031208] (W98SE) Yet another URL: <http://www.aston.fr/>. From bug 213860: it happens on pages with meta tags.
Summary: In <pageInfo.js>, (JS) "Error: this.data[row] has no properties" → In <pageInfo.js>, (JS) "Error: this.data[row] has no properties" (on pages with meta tags)
Removing: (depends on) bug 181764, since its inital patch landed on 2003.01.
No longer depends on: 181764
Addition to comment 8: A run through Venkman shows that the |getCellText| function is called for twice the actual row count, 0-5 instead of 0-2: then there are 2 columns (meta-name, meta-content), so 3*2=6 errors ! then this happens at each pageInfo window "refresh" !! Now, where is this function called from ? (not from one of the calls inside pageInfo.js !)
Attached patch fix (deleted) — Splinter Review
it should be noted that this also happens with the forms tab, and that this patch fixes that as well
Attachment #137254 - Flags: superreview?(bz-vacation)
Attachment #137254 - Flags: review?(timeless)
Blocks: 223867
Comment on attachment 137254 [details] [diff] [review] fix Yea, I noticed theses calls while using Venkman, and wondered about this function purpose... 'approval1.6=?': Trivial repetitive JS Error generating code removal.
Attachment #137254 - Flags: approval1.6?
The TreeBoxObject uses it to request the contents of each cell that it draws on the screen.
So why is it ok to remove that code? Do things still update properly?
it's ok because it's called automatically whenever you add a row. I changed that a while back, but apparently never took out all the extra calls.
Additionaly to the <pageInfo.js> patch, Could you check <http://lxr.mozilla.org/seamonkey/search?string=%5C.rowCountChanged> for possible other removals ?
none of those others are related. each one of those other files manages a seperate nsTreeView object, and they'll all have slightly different rules in this respect. I recently changed the one in pageInfo.js, but that doesn't mean any of the others have changed.
Comment on attachment 137254 [details] [diff] [review] fix Ah, ok. sr=bzbarsky then. Timeless is sorta on a bus at the moment; I don't know when he will next be able to review stuff. You may want to ask Neil instead...
Attachment #137254 - Flags: superreview?(bz-vacation) → superreview+
Attachment #137254 - Flags: review?(timeless) → review?(neil.parkwaycc.co.uk)
Attachment #137254 - Flags: review?(neil.parkwaycc.co.uk) → review+
Comment on attachment 137254 [details] [diff] [review] fix a=tor for 1.6 checkin.
Attachment #137254 - Flags: approval1.6? → approval1.6+
Has this landed yet? It's going to need to make it in soon if it's going to make the 1.6 branch.
It seems that it has not. I requested approval1.6, but I don't have a CVS account to check in the patch. Daniel (the author) ? Anyone ??
No, it hasn't yet. I still don't have my cvs access, so could you check it in for me Asa? I'd appreciate it.
Checked in for Daniel Brooks.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: