Closed Bug 175074 Opened 22 years ago Closed 19 years ago

URN:ISBN link converted to URN://ISBN

Categories

(SeaMonkey :: UI Design, defect)

defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.8.1

People

(Reporter: supermario, Assigned: bugzilla.mozilla.org-3)

References

()

Details

(Keywords: fixed1.8.1)

Attachments

(2 files, 3 obsolete files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2b) Gecko/20021016 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2b) Gecko/20021016 Mozilla can't handle URNs with ISBNs defined in RFC 3187. Here is an example: <blockquote cite="URN:ISBN:3-89432-379-5" title="Die Schweinswale"><p>Some text cite form a book.</blockquote> When I click right on the citation and choose Properties, Mozilla shows following text as URN: Info: urn://isbn:3/ Reproducible: Always Steps to Reproduce: 1. Go to the example page 2. Click right on the upper citation in the gray box beginning with "Manche dieser Bezeichnungen..." 3. Choose Properties Actual Results: Info: urn://isbn:3/ Expected Results: Info: ISBN: 3-89432-379-5
Component: Accessibility APIs → Networking
QA Contact: dsirnapalli
fixed summary for readability, set to default owners. dsirnapalli: please use the "Reassign bug to owner and QA contact of selected component" selection. You cleared the QA field somehow.
Assignee: aaronl → new-network-bugs
Status: UNCONFIRMED → NEW
Ever confirmed: true
QA Contact: benc
Summary: Mozilla can't handle URNs with an ISBN → URN: with an ISBN
Whiteboard: dupme
-- Reassiging but to owner and QA contact of selected component.
per bug 181135: all bugs owned by previous default owner that were not futured are being reassigned to default owner.
Assignee: new-network-bugs → dougt
+clean report, no found dupes, although bug 178133 might block.
Keywords: clean-report
Summary: URN: with an ISBN → URN: with an ISBN (RFC 3187)
Whiteboard: dupme
Keywords: helpwanted
Target Milestone: --- → Future
Setting all platforms, enhancement.
Severity: normal → enhancement
OS: Windows 2000 → All
Hardware: PC → All
No longer blocks: 269890
This worksforme in a current build.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
biesi pointed out why this worked in a testcase but not on that page... The bug is in the getAbsoluteURL function in metadata.js (both versions). It shouldn't be setting .spec, but rather assigning to the URI object altogether. See what getAbsoluteURL does in pageInfo.js.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Whiteboard: [good first bug]
I don't understand this. Getting the absolute URL from a node and a URI string should be a two-step operation: 1) Get the base URI for the node (DOM3 gives us this) 2) newURI on the IOService. so all 4 impls of getAbsoluteURL we have in the tree are way more complicated than they need to be, and wrong.
Remember that we didn't have those handy DOM3 methods when page info was first written. Over to db48x so he can decide what to do, because he was switching over to using properties which now return absolute urls anyway.
Assignee: dougt → db48x
Status: REOPENED → NEW
Component: Networking → XP Apps: GUI Features
Again, page info gets this right. It's item properties that's broken...
Ah, I keep confusing the two... anyway, I hope db48x can fix metadata.js in the same way as pageInfo.js where he is removing getAbsoluteURL altogether.
Product: Core → Mozilla Application Suite
Blocks: 242924
Attached patch Fix (obsolete) — Splinter Review
This patch gets rid of getAbsoluteURL. Now that bug 72524 has been fixed, blockquote.cite, a.href etc. all return absolute URIs. So only the XLink part needs special care. I have added the additional try/catch as mentioned over in bug 242924.
Attachment #177656 - Flags: review?(bzbarsky)
Comment on attachment 177656 [details] [diff] [review] Fix The patch looks fine, but I'm not a peer for browser/ code (and note that we really do want this fixed in the xpfe version of metaData.js as well, given that that's what the bug is filed on).
Attachment #177656 - Flags: review?(bzbarsky) → review?(mconnor)
Comment on attachment 177656 [details] [diff] [review] Fix + var baseURI = ioService.newURI(elem.baseURI, null, null); + url = ioService.newURI(href, null, baseURI).spec; please pass a character set to newURI (second argument); for example elem.ownerDocument.characterSet
I added elem.ownerDocument.characterSet to both calls to newURI (I hope that makes sense). Patch for xpfe coming up.
Attachment #177656 - Attachment is obsolete: true
Attachment #177771 - Flags: review?(mconnor)
(In reply to comment #15) > I added elem.ownerDocument.characterSet to both calls to newURI (I hope that > makes sense). yes, thanks!
Attached patch Identical patch for xpfe (obsolete) — Splinter Review
Attachment #177780 - Flags: review?(dean_tessman)
URIs are not a strongpoint of mine. I don't feel comfortable giving a review.
Comment on attachment 177780 [details] [diff] [review] Identical patch for xpfe db48x would probably like to look at this. I wouldn't have bothered with separate url and href variables.
Attachment #177780 - Flags: review?(dean_tessman) → review?(db48x)
Comment on attachment 177780 [details] [diff] [review] Identical patch for xpfe Yea, it looks good. I also would recommend using a single variable instead of both url and href, but that's not really a very big deal
Attachment #177780 - Flags: review?(db48x) → review+
Attachment #177771 - Attachment is obsolete: true
Attachment #177845 - Flags: superreview?(bzbarsky)
Attachment #177845 - Flags: review?(mconnor)
I don't have check-in priviledges, so I need somebody to help me get these in, when they pass reviews. (I assume that I don't need new review from db48x)
Attachment #177780 - Attachment is obsolete: true
Attachment #177846 - Flags: superreview?(bzbarsky)
Attachment #177656 - Flags: review?(mconnor)
Attachment #177771 - Flags: review?(mconnor)
Comment on attachment 177846 [details] [diff] [review] Updated patch for xpfe that uses only one variable [Checked in: Comment 29] I'll check this in.
Attachment #177846 - Flags: superreview?(bzbarsky) → superreview+
Comment on attachment 177845 [details] [diff] [review] Updated patch for Firefox that uses only one variable This code doesn't need sr, and I wouldn't be able to get to this for at least several weeks anyway... so if you do want an sr, please pick someone else.
Attachment #177845 - Flags: superreview?(bzbarsky)
I don't want a super-review, if it isn't necessary. Where should I look if I want to find out whether I should seek super-review for a patch or not? I looked at <http://www.mozilla.org/hacking/reviewers.html>, but that didn't make it clear to me why I don't need a super-review for this patch.
It's the module owner's call, basically... I'm not sure that the /browser module review policy is actually coherently written down anywhere on the website.
*** Bug 288416 has been marked as a duplicate of this bug. ***
Severity: enhancement → major
Summary: URN: with an ISBN (RFC 3187) → URN:ISBN link converted to URN://ISBN
*** Bug 242924 has been marked as a duplicate of this bug. ***
Comment on attachment 177846 [details] [diff] [review] Updated patch for xpfe that uses only one variable [Checked in: Comment 29] the xpfe patch was checked in 2005-03-18 02:38
Attachment #177846 - Attachment description: Updated patch for xpfe that uses only one variable → Updated patch for xpfe that uses only one variable (checked in)
Attachment #177845 - Flags: review?(mconnor) → review+
Attachment #177845 - Flags: approval-aviary1.1a2?
Attachment #177845 - Flags: approval-aviary1.1a2? → approval-aviary1.1a2+
Keywords: helpwanted
Whiteboard: [good first bug] → [checkin needed]
Attachment #177846 - Attachment description: Updated patch for xpfe that uses only one variable (checked in) → Updated patch for xpfe that uses only one variable [Checked in: Comment 29]
Attachment #177846 - Attachment is obsolete: true
Attachment #177780 - Flags: approval1.8b4?
Attachment #177780 - Flags: approval1.8b4?
Steps to Reproduce from comment 0 are wfm on Seamonkey, as a fix has been checked in. They are not working however on Firefox, checkin there is still needed, but nobody seems to notice, as this is filed as Seamonkey bug.
Does the Firefox patch even still apply?
Assignee: db48x → bugzilla.mozilla.org
(In reply to comment #31) > Does the Firefox patch even still apply? Yes, it does. I checked it in on the trunk. Hermann, if you could verify that'd be great. mozilla/browser/base/content/metaData.js; new revision: 1.8;
Status: NEW → RESOLVED
Closed: 20 years ago19 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Target Milestone: Future → mozilla1.8.1
verifying Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.9a1) Gecko/20060212 Firefox/1.6a1 nightly: urn://isbn:3/ tinderbox-build with fix: urn:ISBN:3-89432-379-5
Status: RESOLVED → VERIFIED
Thanks Hermann. I checked this in on the 1.8 branch as well. mozilla/browser/base/content/metaData.js; new revision: 1.6.10.1;
Keywords: fixed1.8.1
verifying Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8) Gecko/20060212 Firefox/1.5 urn:ISBN:3-89432-379-5 tested using tinderbox build: WINNT 5.2 pacifica Depend Fx-Release Started 21:55, finished 22:29 WindowsExplorer Properties gives wrong BuildID: Bug 305233 1.8: 2006021203 12. Februar 2006 22:29:12
Component: XP Apps: GUI Features → UI Design
Attachment #177846 - Attachment is obsolete: false
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: