WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
195804
Compute quota after network process restart based on default quota and space used
https://bugs.webkit.org/show_bug.cgi?id=195804
Summary
Compute quota after network process restart based on default quota and space ...
youenn fablet
Reported
2019-03-15 09:55:13 PDT
Compute quota after network process restart based on default quota and space used.
Attachments
Patch
(12.70 KB, patch)
2019-03-15 11:14 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(13.09 KB, patch)
2019-03-15 13:10 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(13.10 KB, patch)
2019-03-20 10:19 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(20.66 KB, patch)
2019-03-20 17:57 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch for landing
(20.57 KB, patch)
2019-03-20 20:59 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2019-03-15 11:14:40 PDT
Created
attachment 364815
[details]
Patch
youenn fablet
Comment 2
2019-03-15 13:10:45 PDT
Created
attachment 364825
[details]
Patch
Chris Dumez
Comment 3
2019-03-16 08:36:11 PDT
Comment on
attachment 364825
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=364825&action=review
> Source/WebCore/storage/StorageQuotaManager.cpp:71 > + initializeQuotaAccordingSpaceUsage();
Not a great name. AccordingTo at least to be correct although I wish the name was shorter.
> Source/WebKit/NetworkProcess/cache/CacheStorageEngineCaches.cpp:-60 > - quotaManager.addUser(*this);
Why this change? I thought it looked in the constructor.
youenn fablet
Comment 4
2019-03-16 09:07:00 PDT
(In reply to Chris Dumez from
comment #3
)
> Comment on
attachment 364825
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=364825&action=review
> > > Source/WebCore/storage/StorageQuotaManager.cpp:71 > > + initializeQuotaAccordingSpaceUsage(); > > Not a great name. AccordingTo at least to be correct although I wish the > name was shorter.
OK.
> > Source/WebKit/NetworkProcess/cache/CacheStorageEngineCaches.cpp:-60 > > - quotaManager.addUser(*this); > > Why this change? I thought it looked in the constructor.
When added as a quota user, whenInitialized will be called. This will trigger a call to initialize which will try to ref 'this'. This must be done once 'this' is adopted. I think a follow-up patch will try to delay initialization to the first call of requestSpace with a task size greater than zero.
youenn fablet
Comment 5
2019-03-20 10:19:02 PDT
Created
attachment 365353
[details]
Patch
youenn fablet
Comment 6
2019-03-20 17:57:01 PDT
Created
attachment 365451
[details]
Patch
Chris Dumez
Comment 7
2019-03-20 19:48:25 PDT
Comment on
attachment 365451
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=365451&action=review
> Source/WebCore/storage/StorageQuotaManager.cpp:47 > +void StorageQuotaManager::setQuotaBasedOnSpaceUsage()
maybe updateQuotaBasedOnSpaceUsage() since it is not a one time thing. Also, it makes no parameter.
youenn fablet
Comment 8
2019-03-20 20:59:40 PDT
Created
attachment 365477
[details]
Patch for landing
youenn fablet
Comment 9
2019-03-20 21:00:05 PDT
Thanks for the review. (In reply to Chris Dumez from
comment #7
)
> Comment on
attachment 365451
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=365451&action=review
> > > Source/WebCore/storage/StorageQuotaManager.cpp:47 > > +void StorageQuotaManager::setQuotaBasedOnSpaceUsage() > > maybe updateQuotaBasedOnSpaceUsage() since it is not a one time thing. Also, > it makes no parameter.
OK
WebKit Commit Bot
Comment 10
2019-03-20 21:38:35 PDT
Comment on
attachment 365477
[details]
Patch for landing Clearing flags on attachment: 365477 Committed
r243276
: <
https://trac.webkit.org/changeset/243276
>
WebKit Commit Bot
Comment 11
2019-03-20 21:38:37 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 12
2019-03-20 21:41:23 PDT
<
rdar://problem/49093838
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug