Closed Bug 91539 Opened 24 years ago Closed 24 years ago

baseURI property wrong type

Categories

(SeaMonkey :: UI Design, defect)

defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: hjtoi-bugzilla, Assigned: hjtoi-bugzilla)

References

()

Details

(Keywords: regression)

Attachments

(1 file)

Ok, this is a regression. At some point baseURI property (for XML at least) changed type from string to something else. To check this out, open the URL, select Bookmark This Link from the context menu for some link in the testcase. Instead of the URL you will see something like this in the dialog that pops up: [xpconnect wrapped nsIURI @ 0x4e96050]
http://lxr.mozilla.org/seamonkey/source/dom/public/idl/core/nsIDOMNode.idl#91 says: readonly attribute DOMString baseURI; The real problem is in http://lxr.mozilla.org/seamonkey/source/xpfe/communicator/resources/content/nsContextMenu.js#677 and/or its callers. The function returns: var baseURI = ioService.newURI(base, null); return ioService.newURI(baseURI.resolve(url), null); This returns an nsIURI instead of a string, of course. Jst, did the ToString() method recently change for any nsIURI implementations? Looking at the code, all the callers of makeURLAbsolute want a string, not an nsIURI. Over to XP Apps:GUI.
Assignee: jst → blake
Component: DOM Core → XP Apps: GUI Features
QA Contact: stummala → sairuh
Keywords: patch, review
Looks ok to me, r=heikki. I think dougt broke this. Our XML support has suffered some serious regressions lately :(
I don't remember hearing anything about changes to nsIURI except for the dougt changes that landed maybe a month ago or so. I don't think we ever had a toString() method in nsIURI.
Looks fine. sr=blake Heikki, can you check this in?
Assignee: blake → heikki
Checked in
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
vrfy fixed [although Bookmark This Link is now File Bookmark for Link]. now see the proper URL in the Location field in the resulting dialog. linux and mac, 2001.08.15.08-comm winnt, 2001.08.15.06-comm
Status: RESOLVED → VERIFIED
oops, for linux-comm builds tested: s/2001.08.15.08/2001.08.15.14
Product: Core → Mozilla Application Suite
Component: XP Apps: GUI Features → UI Design
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: