Closed Bug 1906393 Opened 4 months ago Closed 4 months ago

Add nsIIncrementalStreamLoader.onStartRequest

Categories

(Core :: Networking, task, P1)

task

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

In bug 1896709, we need to accumulate the cache expiration time for script loader's request.

The ScriptLoader uses nsIIncrementalStreamLoader and nsIIncrementalStreamLoaderObserver for request handling, instead of directly observing with nsIRequestObserver.

In order to reflect the cache info, nsIRequestObserver::onStartRequest need to be exposed to nsIIncrementalStreamLoaderObserver

https://searchfox.org/mozilla-central/rev/e4a222169f9f9b1d8f2f49e4066585b6b9c4dc58/layout/style/StreamLoader.cpp#53-54,90-91

NS_IMETHODIMP
StreamLoader::OnStartRequest(nsIRequest* aRequest) {
...
  mSheetLoadData->AccumulateExpirationTime(
      CalculateExpirationTime(aRequest, mSheetLoadData->mURI));
Assignee: nobody → arai.unmht
Status: NEW → ASSIGNED
Whiteboard: [necko-triaged]
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/ecc4d56f368f Add nsIIncrementalStreamLoader.onStartRequest. r=necko-reviewers,kershaw
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: