Closed Bug 399746 Opened 17 years ago Closed 17 years ago

Exception... "'[JavaScript Error: "gImageView.data[i] has no properties" {file: "chrome://browser/content/pageinfo/pageInfo.js" line: 554}]' when calling method: [nsIDOMNodeFilter::acceptNode]"

Categories

(Firefox :: Page Info Window, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: reed, Assigned: florian)

References

()

Details

(Keywords: regression)

Attachments

(1 file)

Got this exception when I opened the Page Info window today:

Error: uncaught exception: [Exception... "'[JavaScript Error: "gImageView.data[i] has no properties" {file: "chrome://browser/content/pageinfo/pageInfo.js" line: 554}]' when calling method: [nsIDOMNodeFilter::acceptNode]"  nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame :: chrome://browser/content/pageinfo/pageInfo.js :: doGrab :: line 499"  data: yes]
Flags: blocking-firefox3?
Do you have some steps to reproduce? The url of the page?
I can't easily reproduce: Reed, can you provide more details on how to see this exception?
Flags: blocking-firefox3?
I came across this again today. Here's my STR:

1. Visit http://news.bbc.co.uk/2/hi/asia-pacific/7132886.stm
2. Open Page Info dialog
3. See error in error console

Florian, how's that?
Oh, the error has changed a bit now.

Error: uncaught exception: [Exception... "'[JavaScript Error: "gImageView.data[i] is undefined" {file: "chrome://browser/content/pageinfo/pageInfo.js" line: 556}]' when calling method: [nsIDOMNodeFilter::acceptNode]"  nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame :: chrome://browser/content/pageinfo/pageInfo.js :: doGrab :: line 501"  data: yes]
mmm, that's an interesting error.
Apparently we get screwed because |"watch" in { }| returns true.
OS: Linux → All
Hardware: PC → All
Attached patch patch v1Splinter Review
Assignee: nobody → florian
Status: NEW → ASSIGNED
Attachment #292698 - Flags: review?(mano)
Attachment #292698 - Flags: review?(db48x)
This is a regression from bug 201264.
Keywords: regression
Comment on attachment 292698 [details] [diff] [review]
patch v1

r=db48x
Attachment #292698 - Flags: review?(db48x) → review+
Comment on attachment 292698 [details] [diff] [review]
patch v1

r=mano
Attachment #292698 - Flags: review?(mano) → review+
Comment on attachment 292698 [details] [diff] [review]
patch v1

Fixes a JS exception due to use of JS-reserved word.
Attachment #292698 - Flags: approval1.9?
Comment on attachment 292698 [details] [diff] [review]
patch v1

a=beltzner
Attachment #292698 - Flags: approval1.9? → approval1.9+
Fixed for both Firefox and SeaMonkey.

Checking in browser/base/content/pageinfo/pageInfo.js;
/cvsroot/mozilla/browser/base/content/pageinfo/pageInfo.js,v  <--  pageInfo.js
new revision: 1.11; previous revision: 1.10
done
Checking in suite/browser/pageinfo/pageInfo.js;
/cvsroot/mozilla/suite/browser/pageinfo/pageInfo.js,v  <--  pageInfo.js
new revision: 1.4; previous revision: 1.3
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: