Closed Bug 236654 Opened 20 years ago Closed 3 years ago

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

Categories

(Firefox :: File Handling, defect)

defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mikeinconnect, Unassigned)

References

()

Details

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.
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
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.
Isn't the bug then that document.title points to an img?
Depends on: 446349
Assignee: file-handling → nobody
QA Contact: ian → file-handling
Product: Core → Firefox
Version: Trunk → unspecified

Hi,
Is this issue still valid or it can be closed since the last activity in this ticket was many years ago? The links provided are not valid anymore in order to try to reproduce it.
Thanks.

Flags: needinfo?(bzbarsky)

This should be fine now, because Xrays don't expose named properties on document as "LegacyOverrideBuiltIns" properties. So the image with id="title" or name="title" can't override the built-in document.title.

Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(bzbarsky)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.