summaryrefslogtreecommitdiffstats
path: root/browser/extensions/webcompat/moz.build
blob: 03d5783ef2987837f93eca625595a8c1227bd6e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DEFINES["MOZ_APP_VERSION"] = CONFIG["MOZ_APP_VERSION"]
DEFINES["MOZ_APP_MAXVERSION"] = CONFIG["MOZ_APP_MAXVERSION"]

FINAL_TARGET_FILES.features["webcompat@mozilla.org"] += [
    "manifest.json",
    "run.js",
]

FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["about-compat"] += [
    "about-compat/aboutCompat.css",
    "about-compat/aboutCompat.html",
    "about-compat/aboutCompat.js",
    "about-compat/AboutCompat.jsm",
    "about-compat/aboutPage.js",
    "about-compat/aboutPage.json",
    "about-compat/aboutPageProcessScript.js",
]

FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["data"] += [
    "data/injections.js",
    "data/shims.js",
    "data/ua_overrides.js",
]

FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["experiment-apis"] += [
    "experiment-apis/aboutConfigPrefs.js",
    "experiment-apis/aboutConfigPrefs.json",
    "experiment-apis/appConstants.js",
    "experiment-apis/appConstants.json",
    "experiment-apis/matchPatterns.js",
    "experiment-apis/matchPatterns.json",
    "experiment-apis/systemManufacturer.js",
    "experiment-apis/systemManufacturer.json",
    "experiment-apis/trackingProtection.js",
    "experiment-apis/trackingProtection.json",
]

FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["injections"]["css"] += [
    "injections/css/bug0000000-testbed-css-injection.css",
    "injections/css/bug1570328-developer-apple.com-transform-scale.css",
    "injections/css/bug1575000-apply.lloydsbank.co.uk-radio-buttons-fix.css",
    "injections/css/bug1605611-maps.google.com-directions-time.css",
    "injections/css/bug1610344-directv.com.co-hide-unsupported-message.css",
    "injections/css/bug1644830-missingmail.usps.com-checkboxes-not-visible.css",
    "injections/css/bug1651917-teletrader.com.body-transform-origin.css",
    "injections/css/bug1653075-livescience.com-scrollbar-width.css",
    "injections/css/bug1654877-preev.com-moz-appearance-fix.css",
    "injections/css/bug1654907-reactine.ca-hide-unsupported.css",
    "injections/css/bug1694470-myvidster.com-content-not-shown.css",
    "injections/css/bug1707795-office365-sheets-overscroll-disable.css",
    "injections/css/bug1712833-buskocchi.desuca.co.jp-fix-map-height.css",
    "injections/css/bug1741234-patient.alphalabs.ca-height-fix.css",
    "injections/css/bug1748455-reddit.com-gallery-image-width-fix.css",
    "injections/css/bug1754473-m.intl.taobao.com-number-arrow-buttons-overlapping-fix.css",
    "injections/css/bug1765947-veniceincoming.com-left-fix.css",
    "injections/css/bug1770962-coldwellbankerhomes.com-image-height.css",
    "injections/css/bug1774490-rainews.it-gallery-fix.css",
    "injections/css/bug1784141-aveeno.com-acuvue.com-unsupported.css",
    "injections/css/bug1784195-nutmeg.morrisons.com-overflow.css",
    "injections/css/bug1784199-entrata-platform-unsupported.css",
    "injections/css/bug1784351-movistar.com.ar-overflow-overlay-fix.css",
    "injections/css/bug1789164-zdnet.com-cropped-section.css",
    "injections/css/bug1799994-www.vivobarefoot.com-product-filters-fix.css",
    "injections/css/bug1800000-www.honda.co.uk-choose-dealer-button-fix.css",
    "injections/css/bug1800127-www.burgerking.es-webkit-fill-available-fix.css",
    "injections/css/bug1800143-www.nintendo.co.jp-zoomed-in-image-scrolling-fix.css",
]

FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["injections"]["js"] += [
    "injections/js/bug0000000-testbed-js-injection.js",
    "injections/js/bug1452707-window.controllers-shim-ib.absa.co.za.js",
    "injections/js/bug1457335-histography.io-ua-change.js",
    "injections/js/bug1472075-bankofamerica.com-ua-change.js",
    "injections/js/bug1579159-m.tailieu.vn-pdfjs-worker-disable.js",
    "injections/js/bug1605611-maps.google.com-directions-time.js",
    "injections/js/bug1631811-datastudio.google.com-indexedDB.js",
    "injections/js/bug1722955-frontgate.com-ua-override.js",
    "injections/js/bug1724764-window-print.js",
    "injections/js/bug1724868-news.yahoo.co.jp-ua-override.js",
    "injections/js/bug1731825-office365-email-handling-prompt-autohide.js",
    "injections/js/bug1739489-draftjs-beforeinput.js",
    "injections/js/bug1769762-tiktok.com-plugins-shim.js",
    "injections/js/bug1774005-installtrigger-shim.js",
    "injections/js/bug1778239-m.pji.co.kr-banner-hide.js",
    "injections/js/bug1784302-effectiveType-shim.js",
    "injections/js/bug1795490-www.china-airlines.com-undisable-date-fields-on-mobile.js",
    "injections/js/bug1799968-www.samsung.com-appVersion-linux-fix.js",
    "injections/js/bug1799980-healow.com-infinite-loop-fix.js",
    "injections/js/bug1800131-www.almosafer.com-undisable-date-fields.js",
    "injections/js/bug1803976-www.youtube.com-performance-now-precision.js",
]

FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["shims"] += [
    "shims/addthis-angular.js",
    "shims/adform.js",
    "shims/adnexus-ast.js",
    "shims/adnexus-prebid.js",
    "shims/adsafeprotected-ima.js",
    "shims/apstag.js",
    "shims/blogger.js",
    "shims/bloggerAccount.js",
    "shims/bmauth.js",
    "shims/branch.js",
    "shims/chartbeat.js",
    "shims/crave-ca.js",
    "shims/criteo.js",
    "shims/cxense.js",
    "shims/doubleverify.js",
    "shims/eluminate.js",
    "shims/empty-script.js",
    "shims/empty-shim.txt",
    "shims/everest.js",
    "shims/facebook-sdk.js",
    "shims/facebook.svg",
    "shims/fastclick.js",
    "shims/firebase.js",
    "shims/google-ads.js",
    "shims/google-analytics-and-tag-manager.js",
    "shims/google-analytics-ecommerce-plugin.js",
    "shims/google-analytics-legacy.js",
    "shims/google-ima.js",
    "shims/google-page-ad.js",
    "shims/google-publisher-tags.js",
    "shims/google-safeframe.html",
    "shims/history.js",
    "shims/iam.js",
    "shims/iaspet.js",
    "shims/kinja.js",
    "shims/live-test-shim.js",
    "shims/maxmind-geoip.js",
    "shims/microsoftLogin.js",
    "shims/microsoftVirtualAssistant.js",
    "shims/moat.js",
    "shims/mochitest-shim-1.js",
    "shims/mochitest-shim-2.js",
    "shims/mochitest-shim-3.js",
    "shims/nielsen.js",
    "shims/optimizely.js",
    "shims/play.svg",
    "shims/private-browsing-web-api-fixes.js",
    "shims/rambler-authenticator.js",
    "shims/rich-relevance.js",
    "shims/tracking-pixel.png",
    "shims/vast2.xml",
    "shims/vast3.xml",
    "shims/vidible.js",
    "shims/vmad.xml",
    "shims/webtrends.js",
]

FINAL_TARGET_FILES.features["webcompat@mozilla.org"]["lib"] += [
    "lib/about_compat_broker.js",
    "lib/custom_functions.js",
    "lib/injections.js",
    "lib/intervention_helpers.js",
    "lib/messaging_helper.js",
    "lib/module_shim.js",
    "lib/requestStorageAccess_helper.js",
    "lib/shim_messaging_helper.js",
    "lib/shims.js",
    "lib/ua_helpers.js",
    "lib/ua_overrides.js",
]

XPCOM_MANIFESTS += [
    "components.conf",
]

BROWSER_CHROME_MANIFESTS += ["tests/browser/browser.ini"]

with Files("**"):
    BUG_COMPONENT = ("Web Compatibility", "Tooling & Investigations")