can't save page with <img id="title"> from URL ending with slash

NEW
Unassigned

Status

()

--
major
15 years ago
2 years ago

People

(Reporter: mikeinconnect, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

15 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113

Mozilla can't save pages containing <img id="title"> from URLs that may end with
slash (like "http://example.com/" or "http://example.com").

But Mozilla can save pages containing <img id="somethingelse"> or <p id="title">
from URLs that may end with slash.

Mozilla can save pages containing <img id="title"> from URLs that may NOT end in
slash (like http://example.com/index.html).

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
Save As dialog does not appear.

Expected Results:  
Save As dialog should appear.

Comment 1

15 years ago
Can you provide a real url where the problem can be tested?
The problem is at 

http://lxr.mozilla.org/mozilla/source/xpfe/communicator/resources/content/contentAreaUtils.js#779
and
http://lxr.mozilla.org/mozilla/source/browser/base/content/contentAreaUtils.js#758

document.title is pointing to the image node, of course.  We probably need to
create an nsIDOMNSDocument wrapper for aDocument there...

As for a real url, see url field.  ;)
Assignee: general → file-handling
Status: UNCONFIRMED → NEW
Component: Browser-General → File Handling
Ever confirmed: true
OS: Windows XP → All
QA Contact: general → ian
Hardware: PC → All
(Reporter)

Comment 3

15 years ago
Mozilla can't save the page containing <img id="title"> from
http://trymozilla.tripod.com/.

Mozilla can save the page containing <img id="title"> from
http://trymozilla.tripod.com/index.html.

Comment 4

10 years ago
Isn't the bug then that document.title points to an img?

Updated

10 years ago
Depends on: 446349
Assignee: file-handling → nobody
QA Contact: ian → file-handling

Updated

2 years ago
Component: File Handling → File Handling
Product: Core → Firefox
Version: Trunk → unspecified
You need to log in before you can comment on or make changes to this bug.