Closed
Bug 1334586
Opened 8 years ago
Closed 8 years ago
Propagate reload flags when loading pages with Large-Allocation headers
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla54
People
(Reporter: nika, Assigned: nika)
References
Details
Attachments
(1 file)
(deleted),
patch
|
smaug
:
review+
lizzard
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Right now we don't propagate those flags so sometimes we load from cache when we shouldn't.
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → michael
Assignee | ||
Comment 1•8 years ago
|
||
I'm not quite sure how I'd go about testing this. I did some manual testing, however, and it seemed to work OK.
MozReview-Commit-ID: ESfCqSc0BJK
Attachment #8831242 -
Flags: review?(bugs)
Comment 2•8 years ago
|
||
Comment on attachment 8831242 [details] [diff] [review]
Propagate reload flags when reloading pages with Large-Allocation headers
>+ // Get the channel's load flags, and use them to generate docshell load flags.
>+ // We want to make sure to propagate the refresh and cache busting flags.
>+ nsLoadFlags channelLoadFlags;
>+ aChannel->GetLoadFlags(&channelLoadFlags);
>+
>+ uint32_t docshellLoadFlags = nsIWebNavigation::LOAD_FLAGS_NONE;
>+ if (channelLoadFlags & nsIRequest::LOAD_BYPASS_CACHE) {
>+ docshellLoadFlags |= nsIWebNavigation::LOAD_FLAGS_BYPASS_CACHE;
>+ docshellLoadFlags |= nsIWebNavigation::LOAD_FLAGS_BYPASS_PROXY;
>+ } else if (channelLoadFlags & nsIRequest::VALIDATE_ALWAYS) {
>+ docshellLoadFlags |= nsIWebNavigation::LOAD_FLAGS_IS_REFRESH;
>+ }
>+
So you aren't sending docshellLoadFlags but nsIWebNavigation flags, so rename the variable.
docshellLoadFlag is easy to mix with docshellLoadType
http://searchfox.org/mozilla-central/source/docshell/base/nsDocShellLoadTypes.h
Yes, this is confusing. And we have also nsIDocShellLoadInfo.
Attachment #8831242 -
Flags: review?(bugs) → review+
Pushed by michael@thelayzells.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/3d025789972f
Propagate reload flags when reloading pages with Large-Allocation headers, r=smaug
Comment 4•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Assignee | ||
Comment 5•8 years ago
|
||
Comment on attachment 8831242 [details] [diff] [review]
Propagate reload flags when reloading pages with Large-Allocation headers
Approval Request Comment
This is part 5 of a 6-bug/7-patch uplift request
[Feature/Bug causing the regression]: We would like to ship the Large-Allocation header in 52/53, and these patches make some final touch-ups which will be required before we can ship.
[User impact if declined]: Increased crash rates of wasm games on 32-bit windows
[Is this code covered by automated tests?]: Yes
[Has the fix been verified in Nightly?]: Most of these fixups just landed in Nightly.
[Needs manual test from QE? If yes, steps to reproduce]: No.
[List of other uplifts needed for the feature/fix]:
bug 1331083
bug 1332343
bug 1334210
bug 1333936
bug 1334586
bug 1331087
[Is the change risky?]: Not very
[Why is the change risky/not risky?]: This exposes and enables an opt-in low risk web API which is only supported by Firefox to help avoid OOM problems on 32-bit windows.
[String changes made/needed]: A string was added to dom.properties in bug 1331087
Attachment #8831242 -
Flags: approval-mozilla-aurora?
Updated•8 years ago
|
status-firefox53:
--- → affected
Comment on attachment 8831242 [details] [diff] [review]
Propagate reload flags when reloading pages with Large-Allocation headers
Part of a larger uplift for aurora, since we can pref this off let's take it for 53.
Attachment #8831242 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 7•8 years ago
|
||
bugherder uplift |
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•