Closed Bug 1349570 Opened 7 years ago Closed 7 years ago

nsPipe3 should not be nsISeekableStream

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: baku, Assigned: baku)

References

Details

Attachments

(1 file, 1 obsolete file)

Currently we have just ::Tell() implemented. ::Seek() and ::SetEOF just return an error code.
It seems that nsPipe3 is not used as seekable in our codebase, and the removal is green on try.
Attached patch pipe_noSeekable.patch (obsolete) — Splinter Review
Assignee: nobody → amarchesini
Attachment #8850031 - Flags: review?(bugs)
Attachment #8850031 - Attachment is obsolete: true
Attachment #8850031 - Flags: review?(bugs)
Attachment #8850064 - Flags: review?(bugs)
Comment on attachment 8850064 [details] [diff] [review]
pipe_noSeekable.patch

How did you check Tell isn't being used?
I couldn't figure out any easy way to check that pipe's inputstream isn't accessed as nsISeekableStream.

Did you check also that Thunderbird doesn't use the inputstream as seekable?

Please explain, and ask review again.
Attachment #8850064 - Flags: review?(bugs)
> How did you check Tell isn't being used?

I relay in tests: I pushed the current patch to try and it's green.

> Did you check also that Thunderbird doesn't use the inputstream as seekable?

Also this is not easy to do. I prefer to push this patch, and in case we break something we can introduce a "nsITellableStream".
Attachment #8850064 - Flags: review?(bugs)
(In reply to Andrea Marchesini [:baku] from comment #4)
> > How did you check Tell isn't being used?
> 
> I relay in tests: I pushed the current patch to try and it's green.
ok, I don't think that is good enough.

Is there some particular reason why this change must be done? And if so, better to audit at least
Gecko code about the possible usage, and just running tests isn't really auditing.
Blocks: 1353629
I think I have found a better solution.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: