Closed Bug 1619518 Opened 5 years ago Closed 5 years ago

Get rid of BlobImpl::IsSizeUnknown and BlobImpl::IsDateUnknown

Categories

(Core :: DOM: File, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: baku, Assigned: baku)

Details

Attachments

(4 files, 2 obsolete files)

We have just 1 BlobImpl class with lazy GetLength() and GetLastModified(): FileBlobImpl. We should keep the complexity of those 2 methods in FileBlobImpl.

In this bug I want to fix the last-modified default value in here:
https://searchfox.org/mozilla-central/rev/91f6c02fcf4c16f78fdc4417f61f192688294066/dom/file/FileBlobImpl.cpp#40

In this CTOR we pass UINT64_MAX instead of INT64_MAX as lastModified.

Assignee: nobody → amarchesini
Status: NEW → ASSIGNED

Depends on D65074

Priority: -- → P3
Attachment #9130352 - Attachment description: Bug 1619518 - Introduce BLOBIMPL_UNKNOWN_LENGTH and BLOBIMPL_UNKNOWN_LAST_MODIFIED, r?ssengupta → Bug 1619518 - part 2 - Better File.lastModified attribute handling, r?ssengupta
Attachment #9130353 - Attachment is obsolete: true
Attachment #9130354 - Attachment is obsolete: true
Pushed by amarchesini@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/aa25ea873fa9 part 1 - Remove a EmptyBlobImpl CTOR, r=ssengupta https://hg.mozilla.org/integration/autoland/rev/403e9b8e2040 part 2 - Better File.lastModified attribute handling, r=ssengupta,ttung,dom-workers-and-storage-reviewers,smaug https://hg.mozilla.org/integration/autoland/rev/eb4b8aa164e8 part 3 - Better File.length attribute handling, r=ssengupta,smaug https://hg.mozilla.org/integration/autoland/rev/f848fd145194 part 4 - FileBlobImpl inherits BlobImpl directly, r=ssengupta,smaug
Flags: needinfo?(amarchesini)
Pushed by amarchesini@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/56be1c62b9e2 part 1 - Remove a EmptyBlobImpl CTOR, r=ssengupta https://hg.mozilla.org/integration/autoland/rev/8ee9f73f0551 part 2 - Better File.lastModified attribute handling, r=ssengupta,ttung,dom-workers-and-storage-reviewers,smaug https://hg.mozilla.org/integration/autoland/rev/6974a7016aaf part 3 - Better File.length attribute handling, r=ssengupta,smaug https://hg.mozilla.org/integration/autoland/rev/e6793b0b1b3f part 4 - FileBlobImpl inherits BlobImpl directly, r=ssengupta,smaug
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: