Closed
Bug 175074
Opened 22 years ago
Closed 19 years ago
URN:ISBN link converted to URN://ISBN
Categories
(SeaMonkey :: UI Design, defect)
SeaMonkey
UI Design
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)
3.35 KB,
patch
|
mconnor
:
review+
asa
:
approval-aviary1.1a2+
|
Details | Diff | Splinter Review |
3.58 KB,
patch
|
neil
:
superreview+
|
Details | Diff | Splinter Review |
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
Updated•22 years ago
|
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
Comment 2•22 years ago
|
||
-- 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.
Updated•22 years ago
|
Keywords: helpwanted
Target Milestone: --- → Future
Comment 5•21 years ago
|
||
Setting all platforms, enhancement.
Severity: normal → enhancement
OS: Windows 2000 → All
Hardware: PC → All
Comment 6•20 years ago
|
||
This worksforme in a current build.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Comment 7•20 years ago
|
||
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]
Comment 8•20 years ago
|
||
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.
Comment 9•20 years ago
|
||
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
Comment 10•20 years ago
|
||
Again, page info gets this right. It's item properties that's broken...
Comment 11•20 years ago
|
||
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.
Updated•20 years ago
|
Product: Core → Mozilla Application Suite
Assignee | ||
Comment 12•20 years ago
|
||
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 13•20 years ago
|
||
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 14•20 years ago
|
||
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
Assignee | ||
Comment 15•20 years ago
|
||
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)
Comment 16•20 years ago
|
||
(In reply to comment #15)
> I added elem.ownerDocument.characterSet to both calls to newURI (I hope that
> makes sense).
yes, thanks!
Assignee | ||
Comment 17•20 years ago
|
||
Attachment #177780 -
Flags: review?(dean_tessman)
Comment 18•20 years ago
|
||
URIs are not a strongpoint of mine. I don't feel comfortable giving a review.
Comment 19•20 years ago
|
||
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 20•20 years ago
|
||
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+
Assignee | ||
Comment 21•20 years ago
|
||
Attachment #177771 -
Attachment is obsolete: true
Attachment #177845 -
Flags: superreview?(bzbarsky)
Attachment #177845 -
Flags: review?(mconnor)
Assignee | ||
Comment 22•20 years ago
|
||
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)
Updated•20 years ago
|
Attachment #177656 -
Flags: review?(mconnor)
Updated•20 years ago
|
Attachment #177771 -
Flags: review?(mconnor)
Comment 23•20 years ago
|
||
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 24•20 years ago
|
||
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)
Assignee | ||
Comment 25•20 years ago
|
||
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.
Comment 26•20 years ago
|
||
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.
Comment 27•20 years ago
|
||
*** Bug 288416 has been marked as a duplicate of this bug. ***
Updated•20 years ago
|
Severity: enhancement → major
Summary: URN: with an ISBN (RFC 3187) → URN:ISBN link converted to URN://ISBN
Comment 28•20 years ago
|
||
*** Bug 242924 has been marked as a duplicate of this bug. ***
Comment 29•20 years ago
|
||
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)
Updated•19 years ago
|
Attachment #177845 -
Flags: review?(mconnor) → review+
Assignee | ||
Updated•19 years ago
|
Attachment #177845 -
Flags: approval-aviary1.1a2?
Updated•19 years ago
|
Attachment #177845 -
Flags: approval-aviary1.1a2? → approval-aviary1.1a2+
Assignee | ||
Updated•19 years ago
|
Keywords: helpwanted
Whiteboard: [good first bug] → [checkin needed]
Updated•19 years ago
|
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
Assignee | ||
Updated•19 years ago
|
Attachment #177780 -
Flags: approval1.8b4?
Assignee | ||
Updated•19 years ago
|
Attachment #177780 -
Flags: approval1.8b4?
Comment 30•19 years ago
|
||
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.
Comment 31•19 years ago
|
||
Does the Firefox patch even still apply?
Updated•19 years ago
|
Assignee: db48x → bugzilla.mozilla.org
Comment 32•19 years ago
|
||
(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 ago → 19 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Target Milestone: Future → mozilla1.8.1
Comment 33•19 years ago
|
||
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
Comment 34•19 years ago
|
||
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
Comment 35•19 years ago
|
||
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
Updated•11 years ago
|
Attachment #177846 -
Attachment is obsolete: false
You need to log in
before you can comment on or make changes to this bug.
Description
•