Skip to content

Commit

Permalink
Backed out changeset 22970015ff0c (bug 1815739) for saveAContentPdfDo…
Browse files Browse the repository at this point in the history
…cument related junit failures. CLOSED TREE
  • Loading branch information
Stanca Serban committed Nov 13, 2023
1 parent e719890 commit c3f330e
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 648 deletions.
47 changes: 0 additions & 47 deletions mobile/android/components/geckoview/GeckoViewContentChannel.cpp

This file was deleted.

23 changes: 0 additions & 23 deletions mobile/android/components/geckoview/GeckoViewContentChannel.h

This file was deleted.

This file was deleted.

This file was deleted.

110 changes: 0 additions & 110 deletions mobile/android/components/geckoview/GeckoViewInputStream.cpp

This file was deleted.

43 changes: 0 additions & 43 deletions mobile/android/components/geckoview/GeckoViewInputStream.h

This file was deleted.

14 changes: 0 additions & 14 deletions mobile/android/components/geckoview/components.conf
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,6 @@ Classes = [
'headers': ['GeckoViewExternalAppService.h'],
'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
},
{
'cid': '{a8f4582e-4b47-4e06-970d-b94b76977bf7}',
'contract_ids': ['@mozilla.org/network/protocol;1?name=content'],
'type': 'GeckoViewContentProtocolHandler',
'headers': ['./GeckoViewContentProtocolHandler.h'],
'protocol_config': {
'scheme': 'content',
'flags': [
'URI_IS_POTENTIALLY_TRUSTWORTHY',
'URI_IS_LOCAL_RESOURCE',
'URI_DANGEROUS_TO_LOAD',
],
},
},
]

if defined('MOZ_ANDROID_HISTORY'):
Expand Down
6 changes: 0 additions & 6 deletions mobile/android/components/geckoview/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,13 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

SOURCES += [
"GeckoViewContentChannel.cpp",
"GeckoViewContentProtocolHandler.cpp",
"GeckoViewExternalAppService.cpp",
"GeckoViewInputStream.cpp",
"GeckoViewOutputStream.cpp",
"GeckoViewStreamListener.cpp",
]

EXPORTS += [
"GeckoViewContentChannel.h",
"GeckoViewContentProtocolHandler.h",
"GeckoViewExternalAppService.h",
"GeckoViewInputStream.h",
"GeckoViewOutputStream.h",
"GeckoViewStreamListener.h",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,20 +158,4 @@ class PdfCreationTest : BaseSessionTest() {
}
}
}

@NullDelegate(Autofill.Delegate::class)
@Test
fun saveAContentPdfDocument() {
activityRule.scenario.onActivity {
val originalBytes = getTestBytes(HELLO_PDF_WORLD_PDF_PATH)
TestContentProvider.setTestData(originalBytes, "application/pdf")
mainSession.loadUri("content://org.mozilla.geckoview.test.provider/pdf")
mainSession.waitForPageStop()

val response = mainSession.pdfFileSaver.save()
sessionRule.waitForResult(response).let {
assertThat("The PDF File must the same as the original one.", it.body?.readBytes(), equalTo(originalBytes))
}
}
}
}
Loading

0 comments on commit c3f330e

Please sign in to comment.