Bug 1402369 Comment 24 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

> I am not sure what format the Files will be sent through from Navigator, and therefore am unsure what format they will need to be converted into once they hit JS/Java. Maybe :mcaceres can answer that one.

@baku, you might recall we talked briefly about this at the AllHands... you had some suggestions for what we could use to get the files over to GeckoView. Would you mind providing some guidance again? The IDL from [1]: 

dictionary ShareData {
  USVString title;
  USVString text;
  USVString url;
  FrozenArray<File> files;
};

(i.e., so it's Files as per FileAPI)

[1] https://wicg.github.io/web-share/level-2/#sharedata-dictionary
> I am not sure what format the Files will be sent through from Navigator, and therefore am unsure what format they will need to be converted into once they hit JS/Java. Maybe :mcaceres can answer that one.

@baku, you might recall we talked briefly about this at the AllHands... you had some suggestions for what we could use to get the files over to GeckoView. Would you mind providing some guidance again? The IDL from [1]: 

```
dictionary ShareData {
  USVString title;
  USVString text;
  USVString url;
  FrozenArray<File> files;
};
```
(i.e., so it's Files as per FileAPI)

[1] https://wicg.github.io/web-share/level-2/#sharedata-dictionary
> I am not sure what format the Files will be sent through from Navigator, and therefore am unsure what format they will need to be converted into once they hit JS/Java. Maybe :mcaceres can answer that one.

@baku, you might recall we talked briefly about this at the AllHands... you had some suggestions for what we could use to get the files over to GeckoView. Would you mind providing some guidance again? The IDL from [1]: 

```
dictionary ShareData {
  USVString title;
  USVString text;
  USVString url;
  FrozenArray<File> files;
};
```
(i.e., so it's `File` as per FileAPI)

[1] https://wicg.github.io/web-share/level-2/#sharedata-dictionary

Back to Bug 1402369 Comment 24