Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML5 persistent storage - quota requests are denied #107

Open
GoogleCodeExporter opened this issue Aug 18, 2015 · 5 comments
Open

HTML5 persistent storage - quota requests are denied #107

GoogleCodeExporter opened this issue Aug 18, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

Need to implement CefRequestHandler::OnQuotaRequest:

  ///
  // Called on the IO thread when JavaScript requests a specific storage quota
  // size via the webkitStorageInfo.requestQuota function. |origin_url| is the
  // origin of the page making the request. |new_size| is the requested quota
  // size in bytes. Return true and call CefQuotaCallback::Continue() either in
  // this method or at a later time to grant or deny the request. Return false
  // to cancel the request.
  ///
  /*--cef(optional_param=realm)--*/
  virtual bool OnQuotaRequest(CefRefPtr<CefBrowser> browser,
                              const CefString& origin_url,
                              int64 new_size,
                              CefRefPtr<CefQuotaCallback> callback) {
    return false;
  } 

Original issue reported on code.google.com by [email protected] on 2 May 2014 at 6:26

@GoogleCodeExporter
Copy link
Author

[deleted comment]

1 similar comment
@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

A javascript example for requesting additional space for local storage or 
indexed db:

https://code.google.com/p/phpdesktop/source/browse/phpdesktop-chrome/www/request
-quota.php?r=a08269c0e01b

Currently it doesn't work, the result is "Granted 0 bytes". OnQuotaRequest 
needs to be implemented to fix this.

Shall we allow all quota requests? Or should it be configurable through 
settings.json? For 127.0.0.1 all requests should be allowed. For other internet 
domains a limit in the settings.json file may be a good idea.

Original comment by [email protected] on 3 May 2014 at 8:03

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 13 Oct 2014 at 6:57

  • Added labels: Bug

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 21 Oct 2014 at 10:39

  • Added labels: Restrict-AddIssueComment-Commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant