Bug 1864622 Comment 1 Edit History

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

I'll start investigating this.

Recently locally tested w/isolated processes on:
* `org.mozilla.geckoview.test.PdfCreationTest#saveAContentPdfDocument`
* `org.mozilla.geckoview.test.PdfCreationTest#dontTryToOpenNullContent` - Appears fixed locally, I'll open and test on CI w/other test

Log:
```
04-18 12:17:41.013  6020  6045 D ContentInputStream: The uri is readable: content://org.mozilla.geckoview.test.provider/pdf
04-18 12:17:41.019  6061  6077 E ContentInputStream: Cannot read the uri: content://org.mozilla.geckoview.test.provider/pdf
04-18 12:17:41.019  6061  6077 E ContentInputStream: java.lang.SecurityException: Isolated process not allowed to call getContentProvider
```

Relevant lines:
* [ContentInputStream.java](https://searchfox.org/mozilla-central/rev/f3c8c63a097b61bb1f01e13629b9514e09395947/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/ContentInputStream.java#125-148)

I think some Android function is indirectly is calling `getContentProvider` right now, I'll see if I can narrow down the caller.
I'll start investigating this.

Recently locally tested w/isolated processes on:
* `org.mozilla.geckoview.test.PdfCreationTest#saveAContentPdfDocument`
* `org.mozilla.geckoview.test.PdfCreationTest#dontTryToOpenNullContent` - Appears fixed locally, I'll open and test on CI w/other test

Log:
```
04-18 12:17:41.013  6020  6045 D ContentInputStream: The uri is readable: content://org.mozilla.geckoview.test.provider/pdf
04-18 12:17:41.019  6061  6077 E ContentInputStream: Cannot read the uri: content://org.mozilla.geckoview.test.provider/pdf
04-18 12:17:41.019  6061  6077 E ContentInputStream: java.lang.SecurityException: Isolated process not allowed to call getContentProvider
```

Relevant lines:
* [ContentInputStream.java](https://searchfox.org/mozilla-central/rev/f3c8c63a097b61bb1f01e13629b9514e09395947/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/ContentInputStream.java#125-148)

I think some Android function in those referenced lines is indirectly is calling `getContentProvider` right now, I'll see if I can narrow down the caller.

Back to Bug 1864622 Comment 1