mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 23:07:33 +09:00
Issue #1442 - Part 10c - Use application/octet-stream for arrayBuffer in sendBeacon. https://bugzilla.mozilla.org/show_bug.cgi?id=1329298 Pre-requisite for Part 11.
This commit is contained in:
parent
a9520b2a7a
commit
772ab8ac41
3 changed files with 25 additions and 12 deletions
|
|
@ -256,9 +256,17 @@ private:
|
|||
bool CheckPermission(const char* type);
|
||||
static bool CheckPermission(nsPIDOMWindowInner* aWindow, const char* aType);
|
||||
|
||||
// This enum helps SendBeaconInternal to apply different behaviors to body
|
||||
// types.
|
||||
enum BeaconType {
|
||||
eBeaconTypeBlob,
|
||||
eBeaconTypeArrayBuffer,
|
||||
eBeaconTypeOther
|
||||
};
|
||||
|
||||
bool SendBeaconInternal(const nsAString& aUrl,
|
||||
BodyExtractorBase* aBody,
|
||||
bool aIsBlob,
|
||||
BeaconType aType,
|
||||
ErrorResult& aRv);
|
||||
|
||||
RefPtr<nsMimeTypeArray> mMimeTypes;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue