Open Bug 1264979 Opened 8 years ago Updated 2 years ago

Implement nsIFileWatcherService for non supported platforms

Categories

(Toolkit :: General, defect)

defect

Tracking

()

People

(Reporter: baku, Assigned: baku)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

      No description provided.
Assignee: nobody → amarchesini
Attached patch polling.patchSplinter Review
This is OK-ish for not supported platforms.
We will never have many files to watch because this component is currently used by the File object only. And only File objects having underlying real file (mainly created from a FilePicker).
Attachment #8742338 - Flags: review?(khuey)
I'm not convinced this is a good idea.  Why don't we just leave them unsupported?
Unsupported means that if the underlying file changes, we cannot detect it and FileReader, XHR, and other APIs will retrieve wrong data.
Right. That doesn't seem so bad compared to polling the file.
Comment on attachment 8742338 [details] [diff] [review]
polling.patch

Review of attachment 8742338 [details] [diff] [review]:
-----------------------------------------------------------------

The code is fine, but I don't think we should land this, which I'll show by setting r+ and sr-.  If others think we should land the code they can overrule me :)
Attachment #8742338 - Flags: superreview-
Attachment #8742338 - Flags: review?(khuey)
Attachment #8742338 - Flags: review+
Blocks: 660148
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: