Commit Graph

84 Commits

Author SHA1 Message Date
Drew Willcoxon
bf444589fe Bug 1483033 - Pass correct startup and shutdown reasons to screenshots's embedded webextension. r=_6a68
`webExtension` in bootstrap.js's `start` and `stop` functions is an `EmbeddedExtension`, and `startupReason` and the `reason` argument passed to `stop` is a numeric reason.  `EmbeddedExtension.startup` and `shutdown` take string reasons, not numeric reasons, contrary to their jsdocs.

Also, we can use `AddonManagerPrivate` instead of hardcoding `APP_STARTUP` and `APP_SHUTDOWN`.

This patch fixes bug 1483033.

Differential Revision: https://phabricator.services.mozilla.com/D6114

--HG--
extra : moz-landing-system : lando
2018-09-20 21:58:44 +00:00
Andrew Swan
eac08444e3 Bug 1488971 Move logic for disabling screenshots out of the extension r=kmag,_6a68
Differential Revision: https://phabricator.services.mozilla.com/D5310

--HG--
extra : source : a8de31323a3b52d7f4d6abd9405ba64e2227a653
extra : intermediate-source : ef0c065ebe0fc1918816718d45dc7e2a42545b06
extra : histedit_source : 56ceab6060017e3c893a17f1cd9d885f97fb7c31%2Cb574ee4b673e9c7443d8318f147982fc07774a54
2018-09-07 13:43:48 -07:00
Dorel Luca
92cf5e0c3d Backed out changeset ef0c065ebe0f (bug 1488971) for browser-chrome failures on browser/base/content/test/performance/browser_preferences_usage.js. CLOSED TREE 2018-09-12 22:47:44 +03:00
Jared Hirsch
83e643e16a Bug 1466575 - Re-enable Screenshots WebExtension page action for Firefox 64; r=ianbicking
This patch was temporarily reverted to avoid bug 1483033 for Firefox 63.

MozReview-Commit-ID: 4VaQgZQCVlE

Differential Revision: https://phabricator.services.mozilla.com/D5621

--HG--
extra : rebase_source : 1d6879ee635efe2183b1c228398618461caa571b
2018-09-12 02:22:00 +00:00
Andrew Swan
23f0998b8e Bug 1488971 Move logic for disabling screenshots out of the extension r=kmag,_6a68
Differential Revision: https://phabricator.services.mozilla.com/D5310

--HG--
extra : rebase_source : f86e2cd6dbc2dafafcf4c7cd79d5c47208aad9f9
extra : source : a8de31323a3b52d7f4d6abd9405ba64e2227a653
2018-09-07 13:43:48 -07:00
shindli
09ca1be960 Backed out changeset a8de31323a3b (bug 1488971) for bc failures in browser/components/uitour/test/browser_UITour_availableTargets.js 2018-09-11 22:15:49 +03:00
Andrew Swan
95a89fe1c2 Bug 1488971 Move logic for disabling screenshots out of the extension r=kmag,_6a68
Differential Revision: https://phabricator.services.mozilla.com/D5310

--HG--
extra : rebase_source : f77cd499eb7415c27d992e91c58d99293181d7f6
extra : amend_source : 4f285a04f55b2186b538f9f2ff425cc7b97250dd
2018-09-07 13:43:48 -07:00
Jared Hirsch
768f7a15c5 Temporarily revert Screenshots back to Photon page action until 63 branches (Bug 1466575). r=ianbicking
Screenshots moved from a Photon page action to a pure WebExtension page
action, but this move introduced some UI bugs where the two page actions
behave differently. Since this change isn't needed for 63, seems better
to just temporarily revert.

Differential Revision: https://phabricator.services.mozilla.com/D4162

--HG--
extra : moz-landing-system : lando
2018-08-23 22:15:44 +00:00
Brian Grinstead
4995c61b0f Bug 1482667 - Migrate mochitest-browser tests in browser/ to use element variations of firstChild, etc;r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D3530

--HG--
extra : moz-landing-system : lando
2018-08-17 16:45:52 +00:00
Barry Chen
79f73b74c2 Bug 1466575 - Update tests to use new Screenshots pageAction id; r=_6a68
MozReview-Commit-ID: 9Bm0NHAP9Lj

--HG--
extra : rebase_source : d309d722dcd5baf5ed461af58b450404f67d6062
2018-08-09 17:40:39 -05:00
Barry Chen
d114b87a09 Bug 1466575 - Replace Photon pageAction with WebExtension pageAction in Screenshots; r=_6a68
MozReview-Commit-ID: 9pkwRRN2y7O

--HG--
extra : rebase_source : 66bbb7933fbf9401948d11a145f46a6e96175890
2018-08-01 10:15:25 -05:00
Narcis Beleuzu
498e726385 Backed out changeset 412b5e9b8525 (bug 1466575) for bc failures on browser_screenshots_ui_check.js and browser_UITour_availableTargets.js. CLOSED TREE 2018-08-02 21:39:16 +03:00
Barry Chen
369f4df732 Bug 1466575 - Replace Photon pageAction with WebExtension pageAction in Screenshots; r=_6a68
MozReview-Commit-ID: 9pkwRRN2y7O

--HG--
extra : rebase_source : 429c35a537e4a6b6605371df9e251d5df38dba20
2018-08-01 10:15:25 -05:00
Dave Townsend
389a969138 Bug 1479050: Migrate a number of call-sites to use document.createXULElement. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D2489

--HG--
extra : moz-landing-system : lando
2018-07-31 19:13:38 +00:00
Boris Zbarsky
270fa12c79 Bug 1476145 part 3. Stop using getInterface(nsIDOMWindowUtils) in browser/. r=gijs 2018-07-24 19:47:41 -04:00
Barry Chen
f4048fce52 Bug 1465581 - Export Screenshots 33.0.0 to Firefox (code excluding translations and Raven update); r=ianbicking,_6a68
MozReview-Commit-ID: FrvoD9G74mJ

--HG--
extra : rebase_source : 4f40cae47c81a53fc94ae451469a4a1b3ed37b03
2018-06-18 11:07:23 -05:00
Barry Chen
f163b42bb3 Bug 1465581 - Export Screenshots 33.0.0 to Firefox (upgrade Raven to 3.25.2); r=ianbicking,_6a68
MozReview-Commit-ID: 67A865KrF3z

--HG--
extra : rebase_source : 62141cbb9f23792aaec1215a247e3fe13d4157ae
2018-06-18 11:01:44 -05:00
Barry Chen
bd26d256d8 Bug 1465581 - Export Screenshots 33.0.0 to Firefox (translations only); r=flod,ianbicking
MozReview-Commit-ID: 2CXjtCJ6xvm

--HG--
extra : rebase_source : e17a3f08e60e1cb20ff0a4afdb77ba066362ad9e
2018-06-18 11:00:17 -05:00
Tomislav Jovanovic
67a9565d1a Bug 1466349 part 2 - Pass addonData to embedded Screenshots WE, add permissions r=aswan,ianbicking
MozReview-Commit-ID: GLwjp32sj2i

--HG--
extra : rebase_source : 9dbd9cb2800475835110913cf12cb4a3cbc62a37
2018-06-03 00:25:56 +02:00
Barry Chen
fab4bc4a9e Bug 1465544 - Add 'mozillaAddons' permission to Screenshots; r=ianbicking,_6a68
MozReview-Commit-ID: 7CoJJt34wqZ

--HG--
extra : rebase_source : 4dd027b9bc62fa33072d8d910d033865e9643f08
2018-05-30 12:28:23 -05:00
Ian Bicking
e23d2028e1 Bug 1454029 - Export Screenshots 32.1.0 to Firefox (code excluding translations and Raven update); r=_6a68
MozReview-Commit-ID: GA75ZjrWBjm

--HG--
extra : rebase_source : b4e282a57eb9b80f80a7a07dea171fe87a7ebc46
2018-04-19 16:10:10 -05:00
Ian Bicking
3954244573 Bug 1454029 - Export Screenshots 32.1.0 to Firefox (upgrade Raven to 3.24.1); r=_6a68
MozReview-Commit-ID: 1cYxWWwLzmQ

--HG--
extra : rebase_source : 37e96fab8876a0455466bd67d1517c1f24e30777
2018-04-19 16:09:58 -05:00
Ian Bicking
2b01c1f008 Bug 1454029 - Export Screenshots 32.1.0 to Firefox (translations only); r=flod,_6a68
MozReview-Commit-ID: E6PueP7jKFk

--HG--
extra : rebase_source : 4ef21718bbf57c42c1e8df3e84190ff4db319ec1
2018-04-19 16:09:28 -05:00
Jonathan Kingston
ff73ac0338 Bug 1374741 - Within browser/ make openUILinkIn() provide the correct triggeringPrincipal. r=gijs
MozReview-Commit-ID: 1NQrlWzIBja

--HG--
extra : rebase_source : 29d337e111d82e9c5729b5a59e1a16d06e67774c
2018-02-21 14:28:48 +00:00
Drew Willcoxon
36b7f691ee Bug 1221539 - Add search engine discovery to the page action menu. Part 1: Page action changes. r=Gijs
MozReview-Commit-ID: DGy3sBibpRW

--HG--
extra : rebase_source : b2c60c94707a0fd950c01fc7c5976888f4481c8a
2018-03-28 11:28:13 -07:00
Jared Hirsch
dc6e559983 Bug 1447043 - Export Screenshots 30.1.0 to Firefox; r=ianbicking
MozReview-Commit-ID: 9XBAO678lT7

--HG--
extra : rebase_source : 0bbd36f0b8b71479a51f0f6c9306924a24c9d4ad
2018-03-19 10:22:01 -07:00
Barry Chen
92a8500a66 Bug 1447043 - Calculate top and left selection margin using left and top; r=_6a68
MozReview-Commit-ID: 88TM8xgATPC

--HG--
extra : rebase_source : 90736aff211016d40ac6c1b6dfd0dd4985f2545b
2018-03-19 09:31:57 -07:00
Jared Hirsch
e4f04ff4cc Bug 1443648 - Restore high DPI scaling for most downloaded or copied shots; r=_6a68
* Don't overwrite correctly-scaled canvas dimensions when generating a
shot async

* Pass the shot type to downloadShot and copyShot, so that non-fullpage
shots will be correctly scaled. Note that fullpage shots are always low DPI.

MozReview-Commit-ID: 5SAnoJrJ88S

--HG--
extra : rebase_source : 16e2ea24d027ebee7baaa0e0fed270e2f2bd3d3b
2018-03-06 14:24:03 -08:00
Jared Hirsch
e858645b88 Bug 1440524 - Export Screenshots 30.0.0 to Firefox (code excluding translations); r=ianbicking
MozReview-Commit-ID: GQJOHaBJiY

--HG--
extra : rebase_source : a09e26dc37999e8c5b79fa0d022fa92a9b2c1659
2018-02-22 16:57:01 -08:00
Jared Hirsch
7a4fe4d13e Bug 1440524 - Export Screenshots 30.0.0 to Firefox (translations only); r=flod,ianbicking
MozReview-Commit-ID: K69QMG6bxlE

--HG--
extra : rebase_source : 1ce492435bcaf14d72748264c50d73b2a42483ca
2018-02-22 16:55:47 -08:00
Timothy Guan-tin Chien
a2a559db3e Bug 1234008 - Recompress some png images with zopflipng r=Dolske,Grisha,jryans
MozReview-Commit-ID: Cr2iMSB04uu

--HG--
extra : rebase_source : 49f69cca3a4f27af1060ed82283b5cc96f717229
2018-01-27 15:57:42 +08:00
Jared Hirsch
fc5f933414 Bug 1436218 - Export Screenshots 29.0.0 to Firefox (code excluding translations); r=ianbicking
MozReview-Commit-ID: 8ME4zCgdd89

--HG--
extra : rebase_source : 6e0cac59c97ebbdc4a982939bc1781198bb88056
2018-02-08 15:54:36 -08:00
Jared Hirsch
8283c4bcdb Bug 1436218 - Export Screenshots 29.0.0 to Firefox (translations only); r=ianbicking
MozReview-Commit-ID: 4RI8gnZezj3

--HG--
extra : rebase_source : cbeebe31ed53e16064a16ac390269277f1cfbebd
2018-02-06 14:39:26 -08:00
Andrew McCreight
5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Florian Quèze
2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Kris Maglione
918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou
9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian
af8879d1eb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Jared Hirsch
ef57bd79c4 Bug 1419148 - Export Screenshots 25.0.0 to Firefox (except translations); r=ianbicking,kmag
MozReview-Commit-ID: 2InUwTe8oPa

--HG--
extra : rebase_source : 4348f77adc29eea348829fe832a7f0656a6876d4
2017-11-20 11:06:02 -08:00
Jared Hirsch
34b448e6ea Bug 1419148 - Export Screenshots 25.0.0 to Firefox (translations only); r=ianbicking
MozReview-Commit-ID: 5vscnPIGDvN

--HG--
extra : rebase_source : f866f1734672eb00d722f82fd1d31230478042b1
2017-11-20 11:04:56 -08:00
Joel Maher
0f97b1bbce Bug 1394967 - Disable browser_screenshots_ui_check.js on windows debug for frequent failures. r=me, a=testonly 2017-11-27 11:14:16 -05:00
Ian Bicking
c521699239 Bug 1412091 - Export Screenshots 23.0.0 to Firefox (all except translations and vendor library update) r=kmag,_6a68
MozReview-Commit-ID: BtJ3vwqWTHA

--HG--
extra : rebase_source : ef285feca152584f7d19ef98285a3c3283e2de6a
2017-10-27 13:32:59 -05:00
Ian Bicking
19b44d8da4 Bug 1412091 - Export Screenshots 23.0.0 to Firefox (update raven to 3.18.1) r=_6a68
MozReview-Commit-ID: BbW0ZqMw3bu

--HG--
extra : rebase_source : fe2776d582d7496aee3892841d5bb4ffbf7bf942
2017-10-27 13:31:38 -05:00
Ian Bicking
d0ea839f61 Bug 1412091 - Export Screenshots 23.0.0 to Firefox (translations only) r=_6a68
MozReview-Commit-ID: DBw6vmmkzjn

--HG--
extra : rebase_source : 16ab9e8d8e3daa1f2df5b45455d38bb2c1d2ce82
2017-10-27 13:30:51 -05:00
Ian Bicking
a3fd3d1d76 Bug 1407732 - Update Screenshots version to 19.2.0; r=_6a68
MozReview-Commit-ID: HR7EF6z7g2F

--HG--
extra : rebase_source : 2ce839fde592db45f903661953e9d4a8603d6f86
2017-10-11 13:34:50 -05:00
Ian Bicking
1df475bb1f Bug 1406526 - Import Screenshots translations r=_6a68
This imports the translations from GitHub as of commit 76109c25cf

MozReview-Commit-ID: 5sGhJmNfRmC

--HG--
extra : rebase_source : 434a920e3c7869e7587c1f24efe59480ac9d48a7
2017-10-06 15:35:11 -05:00
Jared Hirsch
738284c9e1 Bug 1405166 - Update occurrences of system-disabled pref outside screenshots system addon; r=kmag
MozReview-Commit-ID: 24PV53VM6te

--HG--
extra : rebase_source : 4042e3de5bf2a3c08da81f5ed0d709e1b859ab1c
2017-10-03 16:26:41 -07:00
Jared Hirsch
75fe58bc36 Bug 1405166 - Remove system-disabled pref from Screenshots; r=kmag
MozReview-Commit-ID: KuDfW6EZMWZ

--HG--
extra : rebase_source : 63cf32067e97d556fa9ef37f0560efac0030e26e
2017-10-03 09:09:38 -07:00