Closed Bug 1344976 Opened 7 years ago Closed 6 years ago

Further remove xml:base usage in FeedWriter

Categories

(Firefox Graveyard :: RSS Discovery and Preview, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: xidorn, Assigned: jkt)

References

Details

Attachments

(1 file)

It seems to me there isn't anything wrong happens with this removal as well.
Comment on attachment 8844277 [details]
Bug 1344976 - Remove xml:base usage in FeedWriter.

https://reviewboard.mozilla.org/r/117796/#review119576

I'm not convinced this is righteous on its own. Some of the relevant code here lives in https://dxr.mozilla.org/mozilla-central/source/toolkit/components/feeds/FeedProcessor.js . There we're still processing xml:base, we just don't seem to use Node/Entry.base in a lot of cases, 'privately' resolving a lot of the URIs. Your code now ignores that property, but it's still being set in some cases.

There is also a test that this works correctly, and background in bug 436801 suggests that there were changes in xml:base behavior implemented there, too. Though, to be honest, looking at the test I doubt it actually verifies that the xml:base behavior is correct.

I don't know if we can remove support for xml:base from the feedprocessor code. If we can, we should do so. If we can't, we should presumably still remove the `.base` references in the toolkit code, taking care not to break the actual resolution of URLs in the process (which from a brief look doesn't seem to rely on those properties, but we should check).
Attachment #8844277 - Flags: review?(gijskruitbosch+bugs) → review-
Assignee: nobody → xidorn+moz
Priority: -- → P3
Assignee: xidorn+moz → nobody
I'm going to add this to a patch in Bug 903372. I don't think there are any blockers in removing this now right?
Assignee: nobody → jkt
Flags: needinfo?(gijskruitbosch+bugs)
Actually it has been fully removed... closing
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(gijskruitbosch+bugs)
Resolution: --- → FIXED
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: