Closed
Bug 187908
Opened 22 years ago
Closed 22 years ago
In <pageInfo.js>, "Warning: reference to undefined property item.href"
Categories
(SeaMonkey :: Page Info, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bugzilla, Assigned: db48x)
Details
Attachments
(3 files, 1 obsolete file)
166 bytes,
text/html
|
Details | |
487 bytes,
patch
|
db48x
:
review+
alecf
:
superreview+
|
Details | Diff | Splinter Review |
471 bytes,
patch
|
sspitzer
:
approval1.4b+
asa
:
approval1.4+
|
Details | Diff | Splinter Review |
if you try to save an image that doesnt exist:
Warning: reference to undefined property item.href
Source File: chrome://navigator/content/pageInfo.js
Line: 718
20030105
Comment 1•22 years ago
|
||
WFM in the latest Windows nightly; perhaps this has been fixed by the other
pageinfo changes?
Reporter | ||
Comment 2•22 years ago
|
||
not fixed:
Warning: reference to undefined property item.href
Source File: chrome://navigator/content/pageInfo.js
Line: 739
if you press Save As on an image that doesnt exist.
20030320
Comment 3•22 years ago
|
||
Steps to Reproduce:
1. Open attached HTML page
2. Go to View | Page Info
3. Click on the Media tab
4. Click on the Save As... button
Comment 4•22 years ago
|
||
Updated•22 years ago
|
Attachment #118200 -
Flags: review?(db48x)
Assignee | ||
Comment 5•22 years ago
|
||
Comment on attachment 118200 [details] [diff] [review]
patch
you need to change both null checks. It also has nothing to do with whether the
image is missing or not, but it's a bug none the less.
Attachment #118200 -
Flags: review?(db48x) → review-
Comment 6•22 years ago
|
||
Updated•22 years ago
|
Attachment #118200 -
Attachment is obsolete: true
Updated•22 years ago
|
Attachment #118212 -
Flags: review?(db48x)
Assignee | ||
Comment 7•22 years ago
|
||
Comment on attachment 118212 [details] [diff] [review]
patch to fix both null checks
looks good
Attachment #118212 -
Flags: superreview+
Assignee | ||
Comment 8•22 years ago
|
||
Comment on attachment 118212 [details] [diff] [review]
patch to fix both null checks
oops, my bad
Attachment #118212 -
Flags: review?(db48x)
Assignee | ||
Updated•22 years ago
|
Attachment #118212 -
Flags: superreview+ → review+
Updated•22 years ago
|
Attachment #118212 -
Flags: superreview?
Attachment #118212 -
Flags: superreview? → superreview?(alecf)
Comment 9•22 years ago
|
||
Comment on attachment 118212 [details] [diff] [review]
patch to fix both null checks
how about
if ("href" in item && item.href)
(the null is redundant, IMO)
Attachment #118212 -
Flags: superreview?(alecf) → superreview+
Comment 10•22 years ago
|
||
> if ("href" in item && item.href)
I agree. Looking through the code, this is the convention used most often. What
should I do -- create a new patch? Sorry, I'm a n00b at patches.
Assignee | ||
Comment 11•22 years ago
|
||
yea, go ahead and make another patch. makes it easier for to get someone to
check it in :)
Comment 12•22 years ago
|
||
Here's the patch with the != null removed. Could someone check this in for me?
I don't have CVS access.
Updated•22 years ago
|
Attachment #118212 -
Flags: approval1.4b?
Comment 13•22 years ago
|
||
Comment on attachment 119469 [details] [diff] [review]
final patch with != null removed
carrying over r/sr. here's your a=sspitzer
Attachment #119469 -
Flags: approval1.4b+
Updated•22 years ago
|
Attachment #118212 -
Flags: approval1.4b?
Updated•22 years ago
|
Attachment #119469 -
Flags: approval1.4?
Comment 14•22 years ago
|
||
what happened here? did this have r/sr/a for 1.4 beta, but never checked in?
Assignee | ||
Comment 15•22 years ago
|
||
yep. I should have thought about it and asked in irc, that usually works.
Comment 16•22 years ago
|
||
Comment on attachment 119469 [details] [diff] [review]
final patch with != null removed
a=asa (on behalf of drivers) for checkin to 1.4.
Attachment #119469 -
Flags: approval1.4? → approval1.4+
Assignee | ||
Comment 17•22 years ago
|
||
timeless just checked this in
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Updated•21 years ago
|
Summary: strict javascript warning in pageInfo.js → In <pageInfo.js>, "Warning: reference to undefined property item.href"
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•