Closed Bug 1894995 Opened 1 year ago Closed 1 year ago

Remove deprecated nsICacheEntry methods

Categories

(Core :: Networking: Cache, task, P3)

task

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: valentin, Assigned: sekim, Mentored)

References

Details

(Keywords: good-first-bug, Whiteboard: [necko-triaged])

Attachments

(1 file)

These methods were used by the previous cache implementation and are no longer required.
We can remove them from the interface and their implementations.

Assignee: nobody → sekim
Status: NEW → ASSIGNED
Pushed by valentin.gosu@gmail.com: https://hg.mozilla.org/integration/autoland/rev/8abbf422db5c Remove deprecated nslCacheEntry methods and their implementations r=valentin,necko-reviewers

Backed out for causing bustage on nsHttpChannel.cpp

[task 2024-05-17T09:47:18.459Z] 09:47:18     INFO -  In file included from Unified_cpp_protocol_http4.cpp:56:
[task 2024-05-17T09:47:18.459Z] 09:47:18    ERROR -  /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpChannel.cpp:951:29: error: too many arguments to function call, expected 0, have 1
[task 2024-05-17T09:47:18.459Z] 09:47:18     INFO -    951 |     Unused << ReadFromCache(true);
[task 2024-05-17T09:47:18.459Z] 09:47:18     INFO -        |               ~~~~~~~~~~~~~ ^~~~
[task 2024-05-17T09:47:18.460Z] 09:47:18     INFO -  /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpChannel.h:404:26: note: 'ReadFromCache' declared here
[task 2024-05-17T09:47:18.460Z] 09:47:18     INFO -    404 |   [[nodiscard]] nsresult ReadFromCache(void);
[task 2024-05-17T09:47:18.460Z] 09:47:18     INFO -        |                          ^
[task 2024-05-17T09:47:18.460Z] 09:47:18     INFO -  In file included from Unified_cpp_protocol_http4.cpp:56:
[task 2024-05-17T09:47:18.461Z] 09:47:18    ERROR -  /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpChannel.cpp:983:26: error: too many arguments to function call, expected 0, have 1
[task 2024-05-17T09:47:18.461Z] 09:47:18     INFO -    983 |       rv = ReadFromCache(true);
[task 2024-05-17T09:47:18.461Z] 09:47:18     INFO -        |            ~~~~~~~~~~~~~ ^~~~
[task 2024-05-17T09:47:18.461Z] 09:47:18     INFO -  /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpChannel.h:404:26: note: 'ReadFromCache' declared here
[task 2024-05-17T09:47:18.462Z] 09:47:18     INFO -    404 |   [[nodiscard]] nsresult ReadFromCache(void);
[task 2024-05-17T09:47:18.462Z] 09:47:18     INFO -        |                          ^
[task 2024-05-17T09:47:18.462Z] 09:47:18     INFO -  In file included from Unified_cpp_protocol_http4.cpp:56:
[task 2024-05-17T09:47:18.462Z] 09:47:18    ERROR -  /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpChannel.cpp:3597:39: error: too many arguments to function call, expected 0, have 1
[task 2024-05-17T09:47:18.462Z] 09:47:18     INFO -   3597 |     nsresult rv = self->ReadFromCache(false);
[task 2024-05-17T09:47:18.462Z] 09:47:18     INFO -        |                   ~~~~~~~~~~~~~~~~~~~ ^~~~~
Flags: needinfo?(sekim)

(In reply to Natalia Csoregi [:nataliaCs] from comment #3)

Backed out for causing bustage on nsHttpChannel.cpp

[task 2024-05-17T09:47:18.459Z] 09:47:18     INFO -  In file included from Unified_cpp_protocol_http4.cpp:56:
[task 2024-05-17T09:47:18.459Z] 09:47:18    ERROR -  /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpChannel.cpp:951:29: error: too many arguments to function call, expected 0, have 1
[task 2024-05-17T09:47:18.459Z] 09:47:18     INFO -    951 |     Unused << ReadFromCache(true);
[task 2024-05-17T09:47:18.459Z] 09:47:18     INFO -        |               ~~~~~~~~~~~~~ ^~~~
[task 2024-05-17T09:47:18.460Z] 09:47:18     INFO -  /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpChannel.h:404:26: note: 'ReadFromCache' declared here
[task 2024-05-17T09:47:18.460Z] 09:47:18     INFO -    404 |   [[nodiscard]] nsresult ReadFromCache(void);
[task 2024-05-17T09:47:18.460Z] 09:47:18     INFO -        |                          ^
[task 2024-05-17T09:47:18.460Z] 09:47:18     INFO -  In file included from Unified_cpp_protocol_http4.cpp:56:
[task 2024-05-17T09:47:18.461Z] 09:47:18    ERROR -  /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpChannel.cpp:983:26: error: too many arguments to function call, expected 0, have 1
[task 2024-05-17T09:47:18.461Z] 09:47:18     INFO -    983 |       rv = ReadFromCache(true);
[task 2024-05-17T09:47:18.461Z] 09:47:18     INFO -        |            ~~~~~~~~~~~~~ ^~~~
[task 2024-05-17T09:47:18.461Z] 09:47:18     INFO -  /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpChannel.h:404:26: note: 'ReadFromCache' declared here
[task 2024-05-17T09:47:18.462Z] 09:47:18     INFO -    404 |   [[nodiscard]] nsresult ReadFromCache(void);
[task 2024-05-17T09:47:18.462Z] 09:47:18     INFO -        |                          ^
[task 2024-05-17T09:47:18.462Z] 09:47:18     INFO -  In file included from Unified_cpp_protocol_http4.cpp:56:
[task 2024-05-17T09:47:18.462Z] 09:47:18    ERROR -  /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpChannel.cpp:3597:39: error: too many arguments to function call, expected 0, have 1
[task 2024-05-17T09:47:18.462Z] 09:47:18     INFO -   3597 |     nsresult rv = self->ReadFromCache(false);
[task 2024-05-17T09:47:18.462Z] 09:47:18     INFO -        |                   ~~~~~~~~~~~~~~~~~~~ ^~~~~

Fixed the issue and rebased the change, thank you!

Flags: needinfo?(sekim)
Pushed by valentin.gosu@gmail.com: https://hg.mozilla.org/integration/autoland/rev/9866ca157a60 Remove deprecated nslCacheEntry methods and their implementations r=valentin,necko-reviewers
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Backout by csabou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4decf144658a Backed out changeset 9866ca157a60 for causing several xpcshell failures.

Backed out changeset 9866ca157a60 (bug 1894995) for causing several xpcshell failures.

Push with failures: https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&resultStatus=testfailed%2Cbusted%2Cexception%2Cusercancel&revision=9866ca157a60aba081cbf8de7ed49fe39fdaa2ae&selectedTaskRun=VhE8RQsbQ6OdjC2G3quDcw.0

Failure logs:

Backout link: https://hg.mozilla.org/integration/autoland/rev/4decf144658a

Bug 1559200 has been relanded.
Sean, there's no need to close the bugs after landing, they will be closed only when they reach mozilla-central as it's deemed as stable code after testing.

Status: RESOLVED → REOPENED
Flags: needinfo?(sekim)
Resolution: FIXED → ---

@cosminS(In reply to Cosmin Sabou [:CosminS] from comment #7)

Backed out changeset 9866ca157a60 (bug 1894995) for causing several xpcshell failures.

Push with failures: https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&resultStatus=testfailed%2Cbusted%2Cexception%2Cusercancel&revision=9866ca157a60aba081cbf8de7ed49fe39fdaa2ae&selectedTaskRun=VhE8RQsbQ6OdjC2G3quDcw.0

Failure logs:

Backout link: https://hg.mozilla.org/integration/autoland/rev/4decf144658a

Bug 1559200 has been relanded.
Sean, there's no need to close the bugs after landing, they will be closed only when they reach mozilla-central as it's deemed as stable code after testing.

Oops, thank you for letting me know

Flags: needinfo?(sekim)
Pushed by valentin.gosu@gmail.com: https://hg.mozilla.org/integration/autoland/rev/9d04ae8305e6 Remove deprecated nslCacheEntry methods and their implementations r=valentin,necko-reviewers,places-reviewers
Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
See Also: → 1899199
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: