Closed
Bug 91539
Opened 24 years ago
Closed 24 years ago
baseURI property wrong type
Categories
(SeaMonkey :: UI Design, defect)
SeaMonkey
UI Design
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: hjtoi-bugzilla, Assigned: hjtoi-bugzilla)
References
()
Details
(Keywords: regression)
Attachments
(1 file)
567 bytes,
patch
|
Details | Diff | Splinter Review |
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]
Assignee | ||
Updated•24 years ago
|
Keywords: regression
![]() |
||
Comment 1•24 years ago
|
||
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
![]() |
||
Comment 2•24 years ago
|
||
![]() |
||
Updated•24 years ago
|
Assignee | ||
Comment 3•24 years ago
|
||
Looks ok to me, r=heikki. I think dougt broke this. Our XML support has suffered
some serious regressions lately :(
Comment 4•24 years ago
|
||
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.
Comment 5•24 years ago
|
||
Looks fine. sr=blake
Heikki, can you check this in?
Assignee: blake → heikki
![]() |
||
Comment 6•24 years ago
|
||
Checked in
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 7•24 years ago
|
||
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
Comment 8•24 years ago
|
||
oops, for linux-comm builds tested: s/2001.08.15.08/2001.08.15.14
Updated•21 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•