[epiphany/mcatanzaro/pdfjs-is-moving] Remove PDF.js




commit e854cdffe5bb4bfc112406e4494d332bb2322840
Author: Michael Catanzaro <mcatanzaro redhat com>
Date:   Mon May 16 13:44:36 2022 -0500

    Remove PDF.js
    
    WebKit now has its own copy of PDF.js, and it handles PDF display for us
    automatically. See https://bugs.webkit.org/show_bug.cgi?id=237513.
    
    This depends on WebKitGTK 2.37.1, but it's not a hard dependency: if
    using older WebKit, you'll just not be able to view PDFs.

 embed/ephy-embed-shell.c                           |    38 +-
 embed/ephy-embed-shell.h                           |     3 -
 embed/ephy-embed-utils.c                           |     1 -
 embed/ephy-pdf-handler.c                           |   302 -
 embed/ephy-pdf-handler.h                           |    41 -
 embed/ephy-web-view.c                              |    33 +-
 embed/ephy-web-view.h                              |     1 -
 embed/meson.build                                  |     1 -
 po/POTFILES.in                                     |     1 -
 src/ephy-session.c                                 |     3 +-
 src/ephy-window.c                                  |     3 -
 src/meson.build                                    |     1 -
 third-party/meson.build                            |     7 -
 third-party/pdfjs/LICENSE                          |   177 -
 third-party/pdfjs/README.epiphany.md               |    75 -
 third-party/pdfjs/build/pdf.js                     | 15806 ----
 third-party/pdfjs/build/pdf.sandbox.js             |   309 -
 third-party/pdfjs/build/pdf.worker.js              | 73828 -------------------
 third-party/pdfjs/epiphany-pdfjs-changes.patch     |   145 -
 third-party/pdfjs/pdfjs.gresource.xml              |   363 -
 third-party/pdfjs/pdfjs_generate_resource.py       |    27 -
 third-party/pdfjs/web/cmaps/78-EUC-H.bcmap         |   Bin 2404 -> 0 bytes
 third-party/pdfjs/web/cmaps/78-EUC-V.bcmap         |   Bin 173 -> 0 bytes
 third-party/pdfjs/web/cmaps/78-H.bcmap             |   Bin 2379 -> 0 bytes
 third-party/pdfjs/web/cmaps/78-RKSJ-H.bcmap        |   Bin 2398 -> 0 bytes
 third-party/pdfjs/web/cmaps/78-RKSJ-V.bcmap        |   Bin 173 -> 0 bytes
 third-party/pdfjs/web/cmaps/78-V.bcmap             |   Bin 169 -> 0 bytes
 third-party/pdfjs/web/cmaps/78ms-RKSJ-H.bcmap      |   Bin 2651 -> 0 bytes
 third-party/pdfjs/web/cmaps/78ms-RKSJ-V.bcmap      |   Bin 290 -> 0 bytes
 third-party/pdfjs/web/cmaps/83pv-RKSJ-H.bcmap      |   Bin 905 -> 0 bytes
 third-party/pdfjs/web/cmaps/90ms-RKSJ-H.bcmap      |   Bin 721 -> 0 bytes
 third-party/pdfjs/web/cmaps/90ms-RKSJ-V.bcmap      |   Bin 290 -> 0 bytes
 third-party/pdfjs/web/cmaps/90msp-RKSJ-H.bcmap     |   Bin 715 -> 0 bytes
 third-party/pdfjs/web/cmaps/90msp-RKSJ-V.bcmap     |   Bin 291 -> 0 bytes
 third-party/pdfjs/web/cmaps/90pv-RKSJ-H.bcmap      |   Bin 982 -> 0 bytes
 third-party/pdfjs/web/cmaps/90pv-RKSJ-V.bcmap      |   Bin 260 -> 0 bytes
 third-party/pdfjs/web/cmaps/Add-H.bcmap            |   Bin 2419 -> 0 bytes
 third-party/pdfjs/web/cmaps/Add-RKSJ-H.bcmap       |   Bin 2413 -> 0 bytes
 third-party/pdfjs/web/cmaps/Add-RKSJ-V.bcmap       |   Bin 287 -> 0 bytes
 third-party/pdfjs/web/cmaps/Add-V.bcmap            |   Bin 282 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-CNS1-0.bcmap     |   Bin 317 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-CNS1-1.bcmap     |   Bin 371 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-CNS1-2.bcmap     |   Bin 376 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-CNS1-3.bcmap     |   Bin 401 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-CNS1-4.bcmap     |   Bin 405 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-CNS1-5.bcmap     |   Bin 406 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-CNS1-6.bcmap     |   Bin 406 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-CNS1-UCS2.bcmap  |   Bin 41193 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-GB1-0.bcmap      |   Bin 217 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-GB1-1.bcmap      |   Bin 250 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-GB1-2.bcmap      |   Bin 465 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-GB1-3.bcmap      |   Bin 470 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-GB1-4.bcmap      |   Bin 601 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-GB1-5.bcmap      |   Bin 625 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-GB1-UCS2.bcmap   |   Bin 33974 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-Japan1-0.bcmap   |   Bin 225 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-Japan1-1.bcmap   |   Bin 226 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-Japan1-2.bcmap   |   Bin 233 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-Japan1-3.bcmap   |   Bin 242 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-Japan1-4.bcmap   |   Bin 337 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-Japan1-5.bcmap   |   Bin 430 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-Japan1-6.bcmap   |   Bin 485 -> 0 bytes
 .../pdfjs/web/cmaps/Adobe-Japan1-UCS2.bcmap        |   Bin 40951 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-Korea1-0.bcmap   |   Bin 241 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-Korea1-1.bcmap   |   Bin 386 -> 0 bytes
 third-party/pdfjs/web/cmaps/Adobe-Korea1-2.bcmap   |   Bin 391 -> 0 bytes
 .../pdfjs/web/cmaps/Adobe-Korea1-UCS2.bcmap        |   Bin 23293 -> 0 bytes
 third-party/pdfjs/web/cmaps/B5-H.bcmap             |   Bin 1086 -> 0 bytes
 third-party/pdfjs/web/cmaps/B5-V.bcmap             |   Bin 142 -> 0 bytes
 third-party/pdfjs/web/cmaps/B5pc-H.bcmap           |   Bin 1099 -> 0 bytes
 third-party/pdfjs/web/cmaps/B5pc-V.bcmap           |   Bin 144 -> 0 bytes
 third-party/pdfjs/web/cmaps/CNS-EUC-H.bcmap        |   Bin 1780 -> 0 bytes
 third-party/pdfjs/web/cmaps/CNS-EUC-V.bcmap        |   Bin 1920 -> 0 bytes
 third-party/pdfjs/web/cmaps/CNS1-H.bcmap           |   Bin 706 -> 0 bytes
 third-party/pdfjs/web/cmaps/CNS1-V.bcmap           |   Bin 143 -> 0 bytes
 third-party/pdfjs/web/cmaps/CNS2-H.bcmap           |   Bin 504 -> 0 bytes
 third-party/pdfjs/web/cmaps/CNS2-V.bcmap           |     3 -
 third-party/pdfjs/web/cmaps/ETHK-B5-H.bcmap        |   Bin 4426 -> 0 bytes
 third-party/pdfjs/web/cmaps/ETHK-B5-V.bcmap        |   Bin 158 -> 0 bytes
 third-party/pdfjs/web/cmaps/ETen-B5-H.bcmap        |   Bin 1125 -> 0 bytes
 third-party/pdfjs/web/cmaps/ETen-B5-V.bcmap        |   Bin 158 -> 0 bytes
 third-party/pdfjs/web/cmaps/ETenms-B5-H.bcmap      |     3 -
 third-party/pdfjs/web/cmaps/ETenms-B5-V.bcmap      |   Bin 172 -> 0 bytes
 third-party/pdfjs/web/cmaps/EUC-H.bcmap            |   Bin 578 -> 0 bytes
 third-party/pdfjs/web/cmaps/EUC-V.bcmap            |   Bin 170 -> 0 bytes
 third-party/pdfjs/web/cmaps/Ext-H.bcmap            |   Bin 2536 -> 0 bytes
 third-party/pdfjs/web/cmaps/Ext-RKSJ-H.bcmap       |   Bin 2542 -> 0 bytes
 third-party/pdfjs/web/cmaps/Ext-RKSJ-V.bcmap       |   Bin 218 -> 0 bytes
 third-party/pdfjs/web/cmaps/Ext-V.bcmap            |   Bin 215 -> 0 bytes
 third-party/pdfjs/web/cmaps/GB-EUC-H.bcmap         |   Bin 549 -> 0 bytes
 third-party/pdfjs/web/cmaps/GB-EUC-V.bcmap         |   Bin 179 -> 0 bytes
 third-party/pdfjs/web/cmaps/GB-H.bcmap             |     4 -
 third-party/pdfjs/web/cmaps/GB-V.bcmap             |   Bin 175 -> 0 bytes
 third-party/pdfjs/web/cmaps/GBK-EUC-H.bcmap        |   Bin 14692 -> 0 bytes
 third-party/pdfjs/web/cmaps/GBK-EUC-V.bcmap        |   Bin 180 -> 0 bytes
 third-party/pdfjs/web/cmaps/GBK2K-H.bcmap          |   Bin 19662 -> 0 bytes
 third-party/pdfjs/web/cmaps/GBK2K-V.bcmap          |   Bin 219 -> 0 bytes
 third-party/pdfjs/web/cmaps/GBKp-EUC-H.bcmap       |   Bin 14686 -> 0 bytes
 third-party/pdfjs/web/cmaps/GBKp-EUC-V.bcmap       |   Bin 181 -> 0 bytes
 third-party/pdfjs/web/cmaps/GBT-EUC-H.bcmap        |   Bin 7290 -> 0 bytes
 third-party/pdfjs/web/cmaps/GBT-EUC-V.bcmap        |   Bin 180 -> 0 bytes
 third-party/pdfjs/web/cmaps/GBT-H.bcmap            |   Bin 7269 -> 0 bytes
 third-party/pdfjs/web/cmaps/GBT-V.bcmap            |   Bin 176 -> 0 bytes
 third-party/pdfjs/web/cmaps/GBTpc-EUC-H.bcmap      |   Bin 7298 -> 0 bytes
 third-party/pdfjs/web/cmaps/GBTpc-EUC-V.bcmap      |   Bin 182 -> 0 bytes
 third-party/pdfjs/web/cmaps/GBpc-EUC-H.bcmap       |   Bin 557 -> 0 bytes
 third-party/pdfjs/web/cmaps/GBpc-EUC-V.bcmap       |   Bin 181 -> 0 bytes
 third-party/pdfjs/web/cmaps/H.bcmap                |   Bin 553 -> 0 bytes
 third-party/pdfjs/web/cmaps/HKdla-B5-H.bcmap       |   Bin 2654 -> 0 bytes
 third-party/pdfjs/web/cmaps/HKdla-B5-V.bcmap       |   Bin 148 -> 0 bytes
 third-party/pdfjs/web/cmaps/HKdlb-B5-H.bcmap       |   Bin 2414 -> 0 bytes
 third-party/pdfjs/web/cmaps/HKdlb-B5-V.bcmap       |   Bin 148 -> 0 bytes
 third-party/pdfjs/web/cmaps/HKgccs-B5-H.bcmap      |   Bin 2292 -> 0 bytes
 third-party/pdfjs/web/cmaps/HKgccs-B5-V.bcmap      |   Bin 149 -> 0 bytes
 third-party/pdfjs/web/cmaps/HKm314-B5-H.bcmap      |   Bin 1772 -> 0 bytes
 third-party/pdfjs/web/cmaps/HKm314-B5-V.bcmap      |   Bin 149 -> 0 bytes
 third-party/pdfjs/web/cmaps/HKm471-B5-H.bcmap      |   Bin 2171 -> 0 bytes
 third-party/pdfjs/web/cmaps/HKm471-B5-V.bcmap      |   Bin 149 -> 0 bytes
 third-party/pdfjs/web/cmaps/HKscs-B5-H.bcmap       |   Bin 4437 -> 0 bytes
 third-party/pdfjs/web/cmaps/HKscs-B5-V.bcmap       |   Bin 159 -> 0 bytes
 third-party/pdfjs/web/cmaps/Hankaku.bcmap          |   Bin 132 -> 0 bytes
 third-party/pdfjs/web/cmaps/Hiragana.bcmap         |   Bin 124 -> 0 bytes
 third-party/pdfjs/web/cmaps/KSC-EUC-H.bcmap        |   Bin 1848 -> 0 bytes
 third-party/pdfjs/web/cmaps/KSC-EUC-V.bcmap        |   Bin 164 -> 0 bytes
 third-party/pdfjs/web/cmaps/KSC-H.bcmap            |   Bin 1831 -> 0 bytes
 third-party/pdfjs/web/cmaps/KSC-Johab-H.bcmap      |   Bin 16791 -> 0 bytes
 third-party/pdfjs/web/cmaps/KSC-Johab-V.bcmap      |   Bin 166 -> 0 bytes
 third-party/pdfjs/web/cmaps/KSC-V.bcmap            |   Bin 160 -> 0 bytes
 third-party/pdfjs/web/cmaps/KSCms-UHC-H.bcmap      |   Bin 2787 -> 0 bytes
 third-party/pdfjs/web/cmaps/KSCms-UHC-HW-H.bcmap   |   Bin 2789 -> 0 bytes
 third-party/pdfjs/web/cmaps/KSCms-UHC-HW-V.bcmap   |   Bin 169 -> 0 bytes
 third-party/pdfjs/web/cmaps/KSCms-UHC-V.bcmap      |   Bin 166 -> 0 bytes
 third-party/pdfjs/web/cmaps/KSCpc-EUC-H.bcmap      |   Bin 2024 -> 0 bytes
 third-party/pdfjs/web/cmaps/KSCpc-EUC-V.bcmap      |   Bin 166 -> 0 bytes
 third-party/pdfjs/web/cmaps/Katakana.bcmap         |   Bin 100 -> 0 bytes
 third-party/pdfjs/web/cmaps/LICENSE                |    36 -
 third-party/pdfjs/web/cmaps/NWP-H.bcmap            |   Bin 2765 -> 0 bytes
 third-party/pdfjs/web/cmaps/NWP-V.bcmap            |   Bin 252 -> 0 bytes
 third-party/pdfjs/web/cmaps/RKSJ-H.bcmap           |   Bin 534 -> 0 bytes
 third-party/pdfjs/web/cmaps/RKSJ-V.bcmap           |   Bin 170 -> 0 bytes
 third-party/pdfjs/web/cmaps/Roman.bcmap            |   Bin 96 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniCNS-UCS2-H.bcmap    |   Bin 48280 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniCNS-UCS2-V.bcmap    |   Bin 156 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniCNS-UTF16-H.bcmap   |   Bin 50419 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniCNS-UTF16-V.bcmap   |   Bin 156 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniCNS-UTF32-H.bcmap   |   Bin 52679 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniCNS-UTF32-V.bcmap   |   Bin 160 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniCNS-UTF8-H.bcmap    |   Bin 53629 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniCNS-UTF8-V.bcmap    |   Bin 157 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniGB-UCS2-H.bcmap     |   Bin 43366 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniGB-UCS2-V.bcmap     |   Bin 193 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniGB-UTF16-H.bcmap    |   Bin 44086 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniGB-UTF16-V.bcmap    |   Bin 178 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniGB-UTF32-H.bcmap    |   Bin 45738 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniGB-UTF32-V.bcmap    |   Bin 182 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniGB-UTF8-H.bcmap     |   Bin 46837 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniGB-UTF8-V.bcmap     |   Bin 181 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniJIS-UCS2-H.bcmap    |   Bin 25439 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniJIS-UCS2-HW-H.bcmap |   Bin 119 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniJIS-UCS2-HW-V.bcmap |   Bin 680 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniJIS-UCS2-V.bcmap    |   Bin 664 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniJIS-UTF16-H.bcmap   |   Bin 39443 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniJIS-UTF16-V.bcmap   |   Bin 643 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniJIS-UTF32-H.bcmap   |   Bin 40539 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniJIS-UTF32-V.bcmap   |   Bin 677 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniJIS-UTF8-H.bcmap    |   Bin 41695 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniJIS-UTF8-V.bcmap    |   Bin 678 -> 0 bytes
 .../pdfjs/web/cmaps/UniJIS2004-UTF16-H.bcmap       |   Bin 39534 -> 0 bytes
 .../pdfjs/web/cmaps/UniJIS2004-UTF16-V.bcmap       |   Bin 647 -> 0 bytes
 .../pdfjs/web/cmaps/UniJIS2004-UTF32-H.bcmap       |   Bin 40630 -> 0 bytes
 .../pdfjs/web/cmaps/UniJIS2004-UTF32-V.bcmap       |   Bin 681 -> 0 bytes
 .../pdfjs/web/cmaps/UniJIS2004-UTF8-H.bcmap        |   Bin 41779 -> 0 bytes
 .../pdfjs/web/cmaps/UniJIS2004-UTF8-V.bcmap        |   Bin 682 -> 0 bytes
 .../pdfjs/web/cmaps/UniJISPro-UCS2-HW-V.bcmap      |   Bin 705 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniJISPro-UCS2-V.bcmap |   Bin 689 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniJISPro-UTF8-V.bcmap |   Bin 726 -> 0 bytes
 .../pdfjs/web/cmaps/UniJISX0213-UTF32-H.bcmap      |   Bin 40517 -> 0 bytes
 .../pdfjs/web/cmaps/UniJISX0213-UTF32-V.bcmap      |   Bin 684 -> 0 bytes
 .../pdfjs/web/cmaps/UniJISX02132004-UTF32-H.bcmap  |   Bin 40608 -> 0 bytes
 .../pdfjs/web/cmaps/UniJISX02132004-UTF32-V.bcmap  |   Bin 688 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniKS-UCS2-H.bcmap     |   Bin 25783 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniKS-UCS2-V.bcmap     |   Bin 178 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniKS-UTF16-H.bcmap    |   Bin 26327 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniKS-UTF16-V.bcmap    |   Bin 164 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniKS-UTF32-H.bcmap    |   Bin 26451 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniKS-UTF32-V.bcmap    |   Bin 168 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniKS-UTF8-H.bcmap     |   Bin 27790 -> 0 bytes
 third-party/pdfjs/web/cmaps/UniKS-UTF8-V.bcmap     |   Bin 169 -> 0 bytes
 third-party/pdfjs/web/cmaps/V.bcmap                |   Bin 166 -> 0 bytes
 third-party/pdfjs/web/cmaps/WP-Symbol.bcmap        |   Bin 179 -> 0 bytes
 .../pdfjs/web/compressed.tracemonkey-pldi-09.pdf   |   Bin 1016315 -> 0 bytes
 third-party/pdfjs/web/debugger.js                  |   628 -
 third-party/pdfjs/web/images/annotation-check.svg  |    11 -
 .../pdfjs/web/images/annotation-comment.svg        |    16 -
 third-party/pdfjs/web/images/annotation-help.svg   |    26 -
 third-party/pdfjs/web/images/annotation-insert.svg |    10 -
 third-party/pdfjs/web/images/annotation-key.svg    |    11 -
 .../pdfjs/web/images/annotation-newparagraph.svg   |    11 -
 third-party/pdfjs/web/images/annotation-noicon.svg |     7 -
 third-party/pdfjs/web/images/annotation-note.svg   |    42 -
 .../pdfjs/web/images/annotation-paragraph.svg      |    16 -
 .../pdfjs/web/images/findbarButton-next.svg        |     4 -
 .../pdfjs/web/images/findbarButton-previous.svg    |     4 -
 third-party/pdfjs/web/images/grab.cur              |   Bin 326 -> 0 bytes
 third-party/pdfjs/web/images/grabbing.cur          |   Bin 326 -> 0 bytes
 third-party/pdfjs/web/images/loading-dark.svg      |    24 -
 third-party/pdfjs/web/images/loading-icon.gif      |   Bin 2545 -> 0 bytes
 third-party/pdfjs/web/images/loading.svg           |     1 -
 .../secondaryToolbarButton-documentProperties.svg  |    15 -
 .../images/secondaryToolbarButton-firstPage.svg    |     1 -
 .../web/images/secondaryToolbarButton-handTool.svg |     1 -
 .../web/images/secondaryToolbarButton-lastPage.svg |     1 -
 .../images/secondaryToolbarButton-rotateCcw.svg    |     1 -
 .../web/images/secondaryToolbarButton-rotateCw.svg |     4 -
 .../secondaryToolbarButton-scrollHorizontal.svg    |     1 -
 .../images/secondaryToolbarButton-scrollPage.svg   |     1 -
 .../secondaryToolbarButton-scrollVertical.svg      |     1 -
 .../secondaryToolbarButton-scrollWrapped.svg       |     1 -
 .../images/secondaryToolbarButton-selectTool.svg   |     4 -
 .../images/secondaryToolbarButton-spreadEven.svg   |     1 -
 .../images/secondaryToolbarButton-spreadNone.svg   |     1 -
 .../images/secondaryToolbarButton-spreadOdd.svg    |     1 -
 third-party/pdfjs/web/images/shadow.png            |   Bin 269 -> 0 bytes
 .../pdfjs/web/images/toolbarButton-bookmark.svg    |     1 -
 .../images/toolbarButton-currentOutlineItem.svg    |     1 -
 .../pdfjs/web/images/toolbarButton-download.svg    |     4 -
 .../pdfjs/web/images/toolbarButton-menuArrow.svg   |     1 -
 .../pdfjs/web/images/toolbarButton-openFile.svg    |     4 -
 .../pdfjs/web/images/toolbarButton-pageDown.svg    |     7 -
 .../pdfjs/web/images/toolbarButton-pageUp.svg      |    12 -
 .../web/images/toolbarButton-presentationMode.svg  |     1 -
 .../pdfjs/web/images/toolbarButton-print.svg       |     4 -
 .../pdfjs/web/images/toolbarButton-search.svg      |     4 -
 .../toolbarButton-secondaryToolbarToggle.svg       |     4 -
 .../web/images/toolbarButton-sidebarToggle.svg     |     4 -
 .../web/images/toolbarButton-viewAttachments.svg   |     1 -
 .../pdfjs/web/images/toolbarButton-viewLayers.svg  |     1 -
 .../pdfjs/web/images/toolbarButton-viewOutline.svg |     1 -
 .../web/images/toolbarButton-viewThumbnail.svg     |     4 -
 .../pdfjs/web/images/toolbarButton-zoomIn.svg      |     4 -
 .../pdfjs/web/images/toolbarButton-zoomOut.svg     |     4 -
 .../pdfjs/web/images/treeitem-collapsed.svg        |     1 -
 third-party/pdfjs/web/images/treeitem-expanded.svg |     1 -
 third-party/pdfjs/web/locale/ach/viewer.properties |   199 -
 third-party/pdfjs/web/locale/af/viewer.properties  |   176 -
 third-party/pdfjs/web/locale/an/viewer.properties  |   242 -
 third-party/pdfjs/web/locale/ar/viewer.properties  |   246 -
 third-party/pdfjs/web/locale/ast/viewer.properties |   207 -
 third-party/pdfjs/web/locale/az/viewer.properties  |   242 -
 third-party/pdfjs/web/locale/be/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/bg/viewer.properties  |   234 -
 third-party/pdfjs/web/locale/bn/viewer.properties  |   236 -
 third-party/pdfjs/web/locale/bo/viewer.properties  |   237 -
 third-party/pdfjs/web/locale/br/viewer.properties  |   246 -
 third-party/pdfjs/web/locale/brx/viewer.properties |   204 -
 third-party/pdfjs/web/locale/bs/viewer.properties  |   193 -
 third-party/pdfjs/web/locale/ca/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/cak/viewer.properties |   248 -
 third-party/pdfjs/web/locale/ckb/viewer.properties |   233 -
 third-party/pdfjs/web/locale/cs/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/cy/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/da/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/de/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/dsb/viewer.properties |   250 -
 third-party/pdfjs/web/locale/el/viewer.properties  |   250 -
 .../pdfjs/web/locale/en-CA/viewer.properties       |   250 -
 .../pdfjs/web/locale/en-GB/viewer.properties       |   250 -
 .../pdfjs/web/locale/en-US/viewer.properties       |   251 -
 third-party/pdfjs/web/locale/eo/viewer.properties  |   250 -
 .../pdfjs/web/locale/es-AR/viewer.properties       |   250 -
 .../pdfjs/web/locale/es-CL/viewer.properties       |   250 -
 .../pdfjs/web/locale/es-ES/viewer.properties       |   250 -
 .../pdfjs/web/locale/es-MX/viewer.properties       |   250 -
 third-party/pdfjs/web/locale/et/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/eu/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/fa/viewer.properties  |   215 -
 third-party/pdfjs/web/locale/ff/viewer.properties  |   234 -
 third-party/pdfjs/web/locale/fi/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/fr/viewer.properties  |   250 -
 .../pdfjs/web/locale/fy-NL/viewer.properties       |   250 -
 .../pdfjs/web/locale/ga-IE/viewer.properties       |   201 -
 third-party/pdfjs/web/locale/gd/viewer.properties  |   248 -
 third-party/pdfjs/web/locale/gl/viewer.properties  |   248 -
 third-party/pdfjs/web/locale/gn/viewer.properties  |   250 -
 .../pdfjs/web/locale/gu-IN/viewer.properties       |   234 -
 third-party/pdfjs/web/locale/he/viewer.properties  |   250 -
 .../pdfjs/web/locale/hi-IN/viewer.properties       |   234 -
 third-party/pdfjs/web/locale/hr/viewer.properties  |   248 -
 third-party/pdfjs/web/locale/hsb/viewer.properties |   250 -
 third-party/pdfjs/web/locale/hu/viewer.properties  |   250 -
 .../pdfjs/web/locale/hy-AM/viewer.properties       |   238 -
 third-party/pdfjs/web/locale/hye/viewer.properties |   250 -
 third-party/pdfjs/web/locale/ia/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/id/viewer.properties  |   248 -
 third-party/pdfjs/web/locale/is/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/it/viewer.properties  |   193 -
 third-party/pdfjs/web/locale/ja/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/ka/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/kab/viewer.properties |   248 -
 third-party/pdfjs/web/locale/kk/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/km/viewer.properties  |   209 -
 third-party/pdfjs/web/locale/kn/viewer.properties  |   186 -
 third-party/pdfjs/web/locale/ko/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/lij/viewer.properties |   234 -
 third-party/pdfjs/web/locale/lo/viewer.properties  |   145 -
 third-party/pdfjs/web/locale/locale.properties     |   327 -
 third-party/pdfjs/web/locale/lt/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/ltg/viewer.properties |   212 -
 third-party/pdfjs/web/locale/lv/viewer.properties  |   234 -
 third-party/pdfjs/web/locale/meh/viewer.properties |   111 -
 third-party/pdfjs/web/locale/mk/viewer.properties  |   138 -
 third-party/pdfjs/web/locale/mr/viewer.properties  |   230 -
 third-party/pdfjs/web/locale/ms/viewer.properties  |   234 -
 third-party/pdfjs/web/locale/my/viewer.properties  |   190 -
 .../pdfjs/web/locale/nb-NO/viewer.properties       |   250 -
 .../pdfjs/web/locale/ne-NP/viewer.properties       |   217 -
 third-party/pdfjs/web/locale/nl/viewer.properties  |   250 -
 .../pdfjs/web/locale/nn-NO/viewer.properties       |   250 -
 third-party/pdfjs/web/locale/oc/viewer.properties  |   250 -
 .../pdfjs/web/locale/pa-IN/viewer.properties       |   250 -
 third-party/pdfjs/web/locale/pl/viewer.properties  |   250 -
 .../pdfjs/web/locale/pt-BR/viewer.properties       |   250 -
 .../pdfjs/web/locale/pt-PT/viewer.properties       |   250 -
 third-party/pdfjs/web/locale/rm/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/ro/viewer.properties  |   240 -
 third-party/pdfjs/web/locale/ru/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/sat/viewer.properties |   154 -
 third-party/pdfjs/web/locale/sc/viewer.properties  |   119 -
 third-party/pdfjs/web/locale/scn/viewer.properties |   101 -
 third-party/pdfjs/web/locale/sco/viewer.properties |   248 -
 third-party/pdfjs/web/locale/si/viewer.properties  |   201 -
 third-party/pdfjs/web/locale/sk/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/sl/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/son/viewer.properties |   172 -
 third-party/pdfjs/web/locale/sq/viewer.properties  |   244 -
 third-party/pdfjs/web/locale/sr/viewer.properties  |   250 -
 .../pdfjs/web/locale/sv-SE/viewer.properties       |   250 -
 third-party/pdfjs/web/locale/szl/viewer.properties |   244 -
 third-party/pdfjs/web/locale/ta/viewer.properties  |   193 -
 third-party/pdfjs/web/locale/te/viewer.properties  |   217 -
 third-party/pdfjs/web/locale/tg/viewer.properties  |   139 -
 third-party/pdfjs/web/locale/th/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/tl/viewer.properties  |   242 -
 third-party/pdfjs/web/locale/tr/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/trs/viewer.properties |   206 -
 third-party/pdfjs/web/locale/uk/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/ur/viewer.properties  |   238 -
 third-party/pdfjs/web/locale/uz/viewer.properties  |   162 -
 third-party/pdfjs/web/locale/vi/viewer.properties  |   250 -
 third-party/pdfjs/web/locale/wo/viewer.properties  |   122 -
 third-party/pdfjs/web/locale/xh/viewer.properties  |   176 -
 .../pdfjs/web/locale/zh-CN/viewer.properties       |   250 -
 .../pdfjs/web/locale/zh-TW/viewer.properties       |   250 -
 .../pdfjs/web/standard_fonts/FoxitDingbats.pfb     |   Bin 29513 -> 0 bytes
 .../pdfjs/web/standard_fonts/FoxitFixed.pfb        |   Bin 17597 -> 0 bytes
 .../pdfjs/web/standard_fonts/FoxitFixedBold.pfb    |   Bin 18055 -> 0 bytes
 .../web/standard_fonts/FoxitFixedBoldItalic.pfb    |   Bin 19151 -> 0 bytes
 .../pdfjs/web/standard_fonts/FoxitFixedItalic.pfb  |   Bin 18746 -> 0 bytes
 third-party/pdfjs/web/standard_fonts/FoxitSans.pfb |   Bin 15025 -> 0 bytes
 .../pdfjs/web/standard_fonts/FoxitSansBold.pfb     |   Bin 16344 -> 0 bytes
 .../web/standard_fonts/FoxitSansBoldItalic.pfb     |   Bin 16418 -> 0 bytes
 .../pdfjs/web/standard_fonts/FoxitSansItalic.pfb   |   Bin 16339 -> 0 bytes
 .../pdfjs/web/standard_fonts/FoxitSerif.pfb        |   Bin 19469 -> 0 bytes
 .../pdfjs/web/standard_fonts/FoxitSerifBold.pfb    |   Bin 19395 -> 0 bytes
 .../web/standard_fonts/FoxitSerifBoldItalic.pfb    |   Bin 20733 -> 0 bytes
 .../pdfjs/web/standard_fonts/FoxitSerifItalic.pfb  |   Bin 21227 -> 0 bytes
 .../pdfjs/web/standard_fonts/FoxitSymbol.pfb       |   Bin 16729 -> 0 bytes
 third-party/pdfjs/web/standard_fonts/LICENSE_FOXIT |    27 -
 .../pdfjs/web/standard_fonts/LICENSE_LIBERATION    |   102 -
 .../web/standard_fonts/LiberationSans-Bold.ttf     |   Bin 137052 -> 0 bytes
 .../standard_fonts/LiberationSans-BoldItalic.ttf   |   Bin 135124 -> 0 bytes
 .../web/standard_fonts/LiberationSans-Italic.ttf   |   Bin 162036 -> 0 bytes
 .../web/standard_fonts/LiberationSans-Regular.ttf  |   Bin 139512 -> 0 bytes
 third-party/pdfjs/web/viewer.css                   |  2781 -
 third-party/pdfjs/web/viewer.html                  |   406 -
 third-party/pdfjs/web/viewer.js                    | 15756 ----
 376 files changed, 6 insertions(+), 136454 deletions(-)
---
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
index cc5f9832c..2754abfe3 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -35,7 +35,6 @@
 #include "ephy-flatpak-utils.h"
 #include "ephy-history-service.h"
 #include "ephy-password-manager.h"
-#include "ephy-pdf-handler.h"
 #include "ephy-profile-utils.h"
 #include "ephy-reader-handler.h"
 #include "ephy-settings.h"
@@ -66,7 +65,6 @@ typedef struct {
   EphyAboutHandler *about_handler;
   EphyViewSourceHandler *source_handler;
   EphyReaderHandler *reader_handler;
-  EphyPDFHandler *pdf_handler;
   char *guid;
   EphyFiltersManager *filters_manager;
   EphySearchEngineManager *search_engine_manager;
@@ -196,7 +194,6 @@ ephy_embed_shell_dispose (GObject *object)
   g_clear_object (&priv->about_handler);
   g_clear_object (&priv->reader_handler);
   g_clear_object (&priv->source_handler);
-  g_clear_object (&priv->pdf_handler);
   g_clear_object (&priv->downloads_manager);
   g_clear_object (&priv->password_manager);
   g_clear_object (&priv->permissions_manager);
@@ -713,15 +710,6 @@ reader_request_cb (WebKitURISchemeRequest *request,
   ephy_reader_handler_handle_request (priv->reader_handler, request);
 }
 
-static void
-pdf_request_cb (WebKitURISchemeRequest *request,
-                EphyEmbedShell         *shell)
-{
-  EphyEmbedShellPrivate *priv = ephy_embed_shell_get_instance_private (shell);
-
-  ephy_pdf_handler_handle_request (priv->pdf_handler, request);
-}
-
 static void
 ephy_resource_request_cb (WebKitURISchemeRequest *request)
 {
@@ -741,7 +729,7 @@ ephy_resource_request_cb (WebKitURISchemeRequest *request)
   request_view = webkit_uri_scheme_request_get_web_view (request);
   uri = webkit_web_view_get_uri (request_view);
 
-  /* ephy-resource:// requests bypass CORS in order to allow ephy-pdf:// to
+  /* ephy-resource:// requests bypass CORS in order to allow custom schemes to
    * access ephy-resource://. Accordingly, we need some custom security to
    * prevent websites from directly accessing ephy-resource://.
    *
@@ -751,7 +739,6 @@ ephy_resource_request_cb (WebKitURISchemeRequest *request)
   if (g_str_has_prefix (uri, "ephy-resource:") ||
       g_str_has_prefix (path, "/org/gnome/epiphany/page-icons/") ||
       g_str_has_prefix (path, "/org/gnome/epiphany/page-templates/") ||
-      (g_str_has_prefix (uri, "ephy-pdf:") && g_str_has_prefix (path, "/org/gnome/epiphany/pdfjs/")) ||
       (g_str_has_prefix (uri, "ephy-reader:") && g_str_has_prefix (path, 
"/org/gnome/epiphany/readability/")) ||
       (g_str_has_prefix (uri, "ephy-source:") && g_str_has_prefix (path, 
"/org/gnome/epiphany/highlightjs/"))) {
     stream = g_resources_open_stream (path, 0, &error);
@@ -861,14 +848,7 @@ download_started_cb (WebKitWebContext *web_context,
     return;
 
   ephy_download = ephy_download_new (download);
-
-  web_view = webkit_download_get_web_view (download);
-  if (EPHY_IS_WEB_VIEW (web_view)) {
-    if (ephy_web_view_get_document_type (EPHY_WEB_VIEW (web_view)) != EPHY_WEB_VIEW_DOCUMENT_PDF)
-      ephy_downloads_manager_add_download (priv->downloads_manager, ephy_download);
-  } else {
-    ephy_downloads_manager_add_download (priv->downloads_manager, ephy_download);
-  }
+  ephy_downloads_manager_add_download (priv->downloads_manager, ephy_download);
 }
 
 static void
@@ -978,11 +958,6 @@ ephy_embed_shell_startup (GApplication *application)
   webkit_web_context_register_uri_scheme (priv->web_context, EPHY_VIEW_SOURCE_SCHEME,
                                           (WebKitURISchemeRequestCallback)source_request_cb,
                                           shell, NULL);
-  /* pdf handler */
-  priv->pdf_handler = ephy_pdf_handler_new ();
-  webkit_web_context_register_uri_scheme (priv->web_context, EPHY_PDF_SCHEME,
-                                          (WebKitURISchemeRequestCallback)pdf_request_cb,
-                                          shell, NULL);
 
   /* reader mode handler */
   priv->reader_handler = ephy_reader_handler_new ();
@@ -1533,12 +1508,3 @@ ephy_embed_shell_unregister_ucm_handler (EphyEmbedShell           *shell,
                                                                           "passwordManagerSave",
                                                                           priv->guid);
 }
-
-void
-ephy_embed_shell_pdf_handler_stop (EphyEmbedShell *shell,
-                                   WebKitWebView  *web_view)
-{
-  EphyEmbedShellPrivate *priv = ephy_embed_shell_get_instance_private (shell);
-
-  ephy_pdf_handler_stop (priv->pdf_handler, web_view);
-}
diff --git a/embed/ephy-embed-shell.h b/embed/ephy-embed-shell.h
index 9464d42d4..85577c09d 100644
--- a/embed/ephy-embed-shell.h
+++ b/embed/ephy-embed-shell.h
@@ -91,7 +91,4 @@ void                     ephy_embed_shell_register_ucm_handler (EphyEmbedShell
 void                     ephy_embed_shell_unregister_ucm_handler (EphyEmbedShell           *shell,
                                                                   WebKitUserContentManager *ucm);
 
-void                     ephy_embed_shell_pdf_handler_stop (EphyEmbedShell *shell,
-                                                            WebKitWebView  *web_view);
-
 G_END_DECLS
diff --git a/embed/ephy-embed-utils.c b/embed/ephy-embed-utils.c
index a21319f31..9b6274c97 100644
--- a/embed/ephy-embed-utils.c
+++ b/embed/ephy-embed-utils.c
@@ -146,7 +146,6 @@ ephy_embed_utils_address_has_web_scheme (const char *address)
                      g_ascii_strncasecmp (address, "ephy-resource", colonpos) &&
                      g_ascii_strncasecmp (address, "ephy-source", colonpos) &&
                      g_ascii_strncasecmp (address, "ephy-reader", colonpos) &&
-                     g_ascii_strncasecmp (address, "ephy-pdf", colonpos) &&
                      g_ascii_strncasecmp (address, "gopher", colonpos) &&
                      g_ascii_strncasecmp (address, "inspector", colonpos) &&
                      g_ascii_strncasecmp (address, "webkit", colonpos));
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 4bccbcb46..b7ec2fa54 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -46,7 +46,6 @@
 #include "ephy-snapshot-service.h"
 #include "ephy-string.h"
 #include "ephy-uri-helpers.h"
-#include "ephy-pdf-handler.h"
 #include "ephy-view-source-handler.h"
 #include "ephy-web-app-utils.h"
 #include "ephy-zoom.h"
@@ -773,12 +772,8 @@ ephy_web_view_set_display_address (EphyWebView *view)
 {
   g_clear_pointer (&view->display_address, g_free);
 
-  if (view->address) {
-    if (g_str_has_prefix (view->address, EPHY_PDF_SCHEME))
-      view->display_address = ephy_uri_decode (view->address + strlen (EPHY_PDF_SCHEME) + 1);
-    else
-      view->display_address = ephy_uri_decode (view->address);
-  }
+  if (view->address)
+    view->display_address = ephy_uri_decode (view->address);
 }
 
 /*
@@ -818,9 +813,7 @@ uri_changed_cb (WebKitWebView *web_view,
 {
   EphyWebView *view = EPHY_WEB_VIEW (web_view);
 
-  if (view->document_type != EPHY_WEB_VIEW_DOCUMENT_PDF)
-    ephy_web_view_set_address (view,
-                               webkit_web_view_get_uri (web_view));
+  ephy_web_view_set_address (view, webkit_web_view_get_uri (web_view));
 }
 
 static void
@@ -968,8 +961,6 @@ decide_policy_cb (WebKitWebView            *web_view,
 
   /* If it's not the main resource, we don't need to set the document type. */
   if (is_main_resource) {
-    const char *method = webkit_uri_request_get_http_method (request);
-
     type = EPHY_WEB_VIEW_DOCUMENT_OTHER;
     if (strcmp (mime_type, "text/html") == 0 || strcmp (mime_type, "text/plain") == 0) {
       type = EPHY_WEB_VIEW_DOCUMENT_HTML;
@@ -977,18 +968,6 @@ decide_policy_cb (WebKitWebView            *web_view,
       type = EPHY_WEB_VIEW_DOCUMENT_XML;
     } else if (strncmp (mime_type, "image/", 6) == 0) {
       type = EPHY_WEB_VIEW_DOCUMENT_IMAGE;
-    } else if (strcmp (mime_type, "application/pdf") == 0 && (!method || strcmp (method, "GET") == 0)) {
-      g_autofree char *pdf_uri = NULL;
-
-      /* FIXME: figure out how to make PDFs work in iframes. */
-      type = EPHY_WEB_VIEW_DOCUMENT_PDF;
-      EPHY_WEB_VIEW (web_view)->document_type = type;
-
-      pdf_uri = g_strconcat (EPHY_PDF_SCHEME, ":", request_uri, NULL);
-
-      webkit_web_view_load_uri (web_view, pdf_uri);
-
-      return FALSE;
     }
 
     /* FIXME: maybe it makes more sense to have an API to query the mime
@@ -1550,7 +1529,6 @@ update_security_status_for_committed_load (EphyWebView *view,
   if (!guri ||
       strcmp (g_uri_get_scheme (guri), EPHY_VIEW_SOURCE_SCHEME) == 0 ||
       strcmp (g_uri_get_scheme (guri), EPHY_READER_SCHEME) == 0 ||
-      strcmp (g_uri_get_scheme (guri), EPHY_PDF_SCHEME) == 0 ||
       g_strcmp0 (tld, "127.0.0.1") == 0 ||
       g_strcmp0 (tld, "::1") == 0 ||
       g_strcmp0 (tld, "localhost") == 0 || /* We trust localhost to be local since glib!616. */
@@ -1655,8 +1633,6 @@ load_changed_cb (WebKitWebView   *web_view,
         /* TODO: move the normalization down to the history service? */
         if (g_str_has_prefix (uri, EPHY_ABOUT_SCHEME))
           history_uri = g_strdup_printf ("about:%s", uri + EPHY_ABOUT_SCHEME_LEN + 1);
-        else if (g_str_has_prefix (uri, EPHY_PDF_SCHEME))
-          history_uri = g_strdup (uri + strlen (EPHY_PDF_SCHEME) + 1);
         else
           history_uri = g_strdup (uri);
 
@@ -1692,9 +1668,6 @@ load_changed_cb (WebKitWebView   *web_view,
       /* Ensure we load the icon for this web view, if available. */
       _ephy_web_view_update_icon (view);
 
-      if (g_str_has_prefix (webkit_web_view_get_uri (web_view), "ephy-pdf"))
-        ephy_embed_shell_pdf_handler_stop (ephy_embed_shell_get_default (), web_view);
-
       /* Reset visit type. */
       view->visit_type = EPHY_PAGE_VISIT_NONE;
 
diff --git a/embed/ephy-web-view.h b/embed/ephy-web-view.h
index 5e45cb861..acb4ea487 100644
--- a/embed/ephy-web-view.h
+++ b/embed/ephy-web-view.h
@@ -61,7 +61,6 @@ typedef enum
   EPHY_WEB_VIEW_DOCUMENT_HTML,
   EPHY_WEB_VIEW_DOCUMENT_XML,
   EPHY_WEB_VIEW_DOCUMENT_IMAGE,
-  EPHY_WEB_VIEW_DOCUMENT_PDF,
   EPHY_WEB_VIEW_DOCUMENT_OTHER
 } EphyWebViewDocumentType;
 
diff --git a/embed/meson.build b/embed/meson.build
index 28b95859c..e08d9f9b2 100644
--- a/embed/meson.build
+++ b/embed/meson.build
@@ -25,7 +25,6 @@ libephyembed_sources = [
   'ephy-file-monitor.c',
   'ephy-filters-manager.c',
   'ephy-find-toolbar.c',
-  'ephy-pdf-handler.c',
   'ephy-reader-handler.c',
   'ephy-view-source-handler.c',
   'ephy-web-view.c',
diff --git a/po/POTFILES.in b/po/POTFILES.in
index d5f25d115..bac121ee0 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -11,7 +11,6 @@ embed/ephy-embed-utils.c
 embed/ephy-embed-utils.h
 embed/ephy-encodings.c
 embed/ephy-find-toolbar.c
-embed/ephy-pdf-handler.c
 embed/ephy-reader-handler.c
 embed/ephy-view-source-handler.c
 embed/ephy-web-view.c
diff --git a/src/ephy-session.c b/src/ephy-session.c
index 764ed1a19..b69bde806 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -893,8 +893,7 @@ session_seems_reasonable (GList *windows)
         if (g_uri_get_host (uri) != NULL ||
             strcmp (g_uri_get_scheme (uri), "data") == 0 ||
             strcmp (g_uri_get_scheme (uri), "file") == 0 ||
-            strcmp (g_uri_get_scheme (uri), "ephy-reader") == 0 ||
-            strcmp (g_uri_get_scheme (uri), "ephy-pdf") == 0)
+            strcmp (g_uri_get_scheme (uri), "ephy-reader") == 0)
           sane = TRUE;
       }
 
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 4deeecafe..2a8f97195 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2626,9 +2626,6 @@ static void
 download_only_load_cb (EphyWebView *view,
                        EphyWindow  *window)
 {
-  if (ephy_web_view_get_document_type (view) == EPHY_WEB_VIEW_DOCUMENT_PDF)
-    return;
-
   if (ephy_tab_view_get_n_pages (window->tab_view) == 1) {
     ephy_web_view_load_homepage (view);
     return;
diff --git a/src/meson.build b/src/meson.build
index 54964d150..310f65d48 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -163,7 +163,6 @@ resources = gnome.compile_resources('epiphany-resources',
 epiphany_sources = [
   'ephy-main.c',
   resources,
-  pdfjs_resources,
   highlightjs_resources,
   readability_resources,
   adguard_resources
diff --git a/third-party/meson.build b/third-party/meson.build
index d65b8747e..ab22ef9a9 100644
--- a/third-party/meson.build
+++ b/third-party/meson.build
@@ -5,13 +5,6 @@ adguard_resources = gnome.compile_resources('adguard-resources',
     source_dir: 'adguard'
 )
 
-pdfjs_resource_files = files('pdfjs/pdfjs.gresource.xml')
-pdfjs_resources = gnome.compile_resources('pdfjs-resources',
-    pdfjs_resource_files,
-    c_name: 'pdfjs',
-    source_dir: 'pdfjs'
-)
-
 highlightjs_resource_files = files('highlightjs/highlightjs.gresource.xml')
 highlightjs_resources = gnome.compile_resources('highlightjs-resources',
     highlightjs_resource_files,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]