Skip to content

Commit

Permalink
[GeckoView] Bundle the Firefox printing code in the viewer (bug 1810111)
Browse files Browse the repository at this point in the history
This may not be enough, on its own, to completely fix [bug 1810111](https://bugzilla.mozilla.org/show_bug.cgi?id=1810111) however it's impossible for printing to work in GeckoView without this patch.
  • Loading branch information
Snuffleupagus committed Mar 16, 2023
1 parent 5e4b3d1 commit fafcc8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,9 @@ function createWebpackConfig(
for (const key in viewerAlias) {
viewerAlias[key] = "web/stubs-geckoview.js";
}
} else {
viewerAlias["web-print_service"] = "web/firefox_print_service.js";
}
viewerAlias["web-com"] = "web/firefoxcom.js";
viewerAlias["web-print_service"] = "web/firefox_print_service.js";
}
const alias = { ...basicAlias, ...viewerAlias };
for (const key in alias) {
Expand Down
1 change: 1 addition & 0 deletions web/viewer-geckoview.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/

import "web-com";
import "web-print_service";
import { RenderingStates, ScrollMode, SpreadMode } from "./ui_utils.js";
import { AppOptions } from "./app_options.js";
import { LinkTarget } from "./pdf_link_service.js";
Expand Down

0 comments on commit fafcc8f

Please sign in to comment.