Commit graph

81 commits

Author SHA1 Message Date
Michał Sobkiewicz
347e2e933b Bug 1007344 - Ignore inactive windows when moving alerts. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D66605

--HG--
extra : moz-landing-system : lando
2020-03-15 22:30:03 +00:00
Jared Wein
119b3dc08a Bug 1571567 - Fix no-fallthrough errors in /toolkit. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D40746

--HG--
extra : moz-landing-system : lando
2019-08-08 16:18:24 +00:00
Bogdan Tara
844afcfb06 Backed out 10 changesets (bug 1571567) complementary backout after es lint failure on the patch CLOSED TREE
Backed out changeset ce83fa75ae32 (bug 1571567)
Backed out changeset 7aa97ba7cce9 (bug 1571567)
Backed out changeset 777d79076e99 (bug 1571567)
Backed out changeset fbdf6b75a484 (bug 1571567)
Backed out changeset e2ed4620f232 (bug 1571567)
Backed out changeset 2c67015f12c6 (bug 1571567)
Backed out changeset 7ec086bb5bd5 (bug 1571567)
Backed out changeset 42df735c8556 (bug 1571567)
Backed out changeset 7d5fc57b2809 (bug 1571567)
Backed out changeset 606bafb8211c (bug 1571567)
2019-08-08 18:13:54 +03:00
Jared Wein
30f7f34419 Bug 1571567 - Fix no-fallthrough errors in /toolkit. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D40746

--HG--
extra : moz-landing-system : lando
2019-08-08 01:38:50 +00:00
Victor Porof
4a06c925ac Bug 1561435 - Format toolkit/components/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : b5be5b4f4b47c256e28a29f665dc754f6407ee7f
2019-07-05 11:14:05 +02:00
Boris Zbarsky
9de72a3ac6 Bug 1557793 part 2. Stop using [array] in nsIStringBundle. r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D34196

--HG--
extra : moz-landing-system : lando
2019-06-11 15:51:51 +00:00
ui.manish
3e955992e7 Bug 1429016 - Remove expiring WEB_NOTIFICATION_* telemetry probes r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D18877

--HG--
extra : moz-landing-system : lando
2019-02-23 09:56:08 +00:00
Andreea Pavel
b998f1d978 Backed out changeset a2e4d687840d (bug 1429016) for build bustages at Notification.cpp on a CLOSED TREE 2019-02-13 03:33:48 +02:00
ui.manish
f128ab6073 Bug 1429016- Remove or extend expiring WEB_NOTIFICATION_* telemetry probes r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D18877

--HG--
extra : moz-landing-system : lando
2019-02-12 23:53:10 +00:00
Kris Maglione
e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Kris Maglione
6adf9223ce Bug 1484496: Part 5b - Convert toolkit/ nsISimpleEnumerator users to use JS iteration. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3730

--HG--
extra : rebase_source : 935f166ec2c6581ba6f3fffe912404e81c8dc3d6
extra : histedit_source : ba701801de5205dcce6cfdccabe7b26aa7c7859c
2018-08-18 19:27:50 -07: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
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 Wein
052f2a5f79 Bug 1230241 - Do not disturb language is awkward in about:preferences. r=evanxd
MozReview-Commit-ID: 8FMy3bTUykU

--HG--
extra : rebase_source : 25e03331b41809c4b992e351e8b7020cbc2375bf
2017-10-16 11:31:01 -04:00
Jim Porter
3517459260 Bug 1352069 - Introduce a pref that allows for disabling cosmetic animations r=jaws
This rolls browser.tabs.animate, browser.fullscreen.animate, and
alerts.disableSlidingEffect into a single pref; if any of these are disabled,
we'll disable the new pref too (toolkit.cosmeticAnimations.enabled). Most
future animations will also be subject to this pref.

MozReview-Commit-ID: 77pLMtERDna

--HG--
extra : rebase_source : 8939e453c2277caa4a90123ae09bb542aaa421ed
2017-04-11 13:47:31 -05:00
Florian Quèze
85611a7b6d Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws.
--HG--
extra : rebase_source : a22344ee1569f58f1f0a01017bfe0d46a6a14602
2017-01-17 11:50:25 +01:00
William Chen
47ed3011e6 Bug 862395 - Part 2: Update XUL web notifications to persist if require interaction flag is set. r=jaws
--HG--
extra : rebase_source : 550d70090cec603353653a422b7cd8e53e12b39c
extra : histedit_source : a9e1541f2d96a7c9081dc7173fb5372fa7f3010c
2016-10-12 16:17:13 -07:00
Jared Wein
d3e296107e Bug 1294621 - Enable the no-lonely-if rule for eslint. r=gijs
MozReview-Commit-ID: 8izEqc8IyCu
2016-08-12 11:50:35 -04:00
Jared Wein
7bbd695af2 Bug 1259108 - Increase timeout of notifications from 12s to 20s to match parity with Chromium. r=MattN
MozReview-Commit-ID: 31RjSWuszuC

--HG--
extra : rebase_source : ecfb892c705b64c4be575b31d88782bd6787bade
2016-03-23 12:54:57 -04:00
Kit Cambridge
82b46485fb Bug 1206560 - Show the site favicon in XUL notifications. r=jaws
MozReview-Commit-ID: FMVYO1DCFDm

--HG--
extra : amend_source : 7cf2261502d89a82de27d067ae9c5d4c47b25f60
extra : histedit_source : 3eee97f8c7a8fce9a0986b107ea374768bd44075
2016-02-27 13:47:22 -08:00
Jared Wein
a982a98c40 Bug 1227711 - Add a box-shadow to the XUL alerts. ui-r=shorlander r=MattN
--HG--
extra : rebase_source : f9caae3660dea17cfacb607608914fb5ab6900cb
2015-12-02 22:21:20 -05:00
Matthew Noorenberghe
6d5a7ae738 Bug 1225336 - Add telemetry about web notification display/messages. r=wchen,kitcambridge p=vladan
--HG--
extra : commitid : 7uiWZY4QGqE
2015-12-01 22:40:17 -08:00
Jared Wein
2ef4da49fb Bug 1218789 - Close button and gear button are misaligned in notifications. r=MattN
--HG--
extra : rebase_source : 875dc313e8a93b5d604ebe5d458efcc044d02cac
2015-11-18 10:20:20 -05:00
Jared Wein
3aa05f548a Bug 1213421 - Follow-up, set the bodyText even when text is not being truncated. r=MattN 2015-11-14 10:28:51 -05:00
Jared Wein
fd3e052054 Bug 1213421 - Truncate long body and title text in notifications. r=MattN
--HG--
extra : rebase_source : bb92c1846bbc15347cd6e5fe1b43919b11b2b467
2015-11-13 15:56:47 -05:00
Jared Wein
4858f6c224 Bug 1219458 - Remove the notification animation until we have better transparency support. r=MattN 2015-10-28 18:59:00 -04:00
Jared Wein
73aa35e82b Bug 1216161 - XUL notifications on Linux can't be closed. r=MattN 2015-10-22 15:50:47 -04:00
Kit Cambridge
1e96d53537 Bug 1217621 - Show settings action for XUL notifications. r=jaws
--HG--
extra : commitid : 1MtGEuPZNu4
extra : rebase_source : c9cb987df2c9f868d08d5f45603e7fc59e3547e8
extra : amend_source : 68d394e13cdf7288538526ed09ae56de98607d7f
2015-10-23 15:53:15 -06:00
Jared Wein
beab9ec77c Bug 1214029 - Use double-quotes for strings in alert.js. r=MattN
--HG--
extra : rebase_source : 696b2a0c9c4033f2c4e6577cc30c4371818ba43e
2015-10-20 15:46:26 -04:00
Jared Wein
962e3194c3 Bug 1205172 - Do Not Disturb Button for Push Notifications on Windows. r=MattN
--HG--
extra : rebase_source : 85c868e4ba1eac3eaa3f21c8129308c02b66bf5e
2015-10-20 15:26:00 -04:00
Jared Wein
42419dbc74 Bug 1209602 - XUL: Implement disabling notifications for a site. r=MattN
--HG--
extra : rebase_source : 43ef8eaa19e6de5bce20a391dc248b1271a3e8d4
2015-10-15 22:58:56 -04:00
Phil Ringnalda
ddeeb376bd Back out changeset bb7e9c6a66c6 (bug 1209602) for crashing 2015-10-15 22:31:42 -07:00
Jared Wein
74567c8e04 Bug 1209602 - XUL: Implement disabling notifications for a site. r=MattN 2015-10-15 22:58:56 -04:00
Jared Wein
9f2bd66799 Backout bug 1209602 for busting OSX on a CLOSED TREE. r=me 2015-10-15 23:19:10 -04:00
Jared Wein
49b796aa96 Bug 1209602 - XUL: Implement disabling notifications for a site. r=MattN 2015-10-15 22:58:56 -04:00
Jared Wein
0124735fc7 Bug 1201397 - New layout of XUL Notifications. r=MattN 2015-10-15 22:58:56 -04:00
Wes Kocher
399a23b6c1 Merge inbound to m-c a=merge 2015-10-07 10:29:41 -07:00
Carsten "Tomcat" Book
08997000eb Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Kit Cambridge
529b10c68f Bug 1202933, Part 1 - Show the origin for XUL notifications. r=MattN,wchen
--HG--
extra : commitid : KWwQzH1zUEU
extra : rebase_source : 499d130bfc4c7a5f576beffaf38bf95fa0c047fe
2015-10-05 19:45:04 -07:00
Carsten "Tomcat" Book
e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Shu-yu Guo
d06b6030f6 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Gijs Kruitbosch
7734b9745a Bug 1052776 - fix role=alert usage and ensure alert events fire, r=MattN
--HG--
extra : commitid : 7SWr1dbbvir
extra : rebase_source : f52bbac6f164a1d0b5d40cbacc9fa29648ace855
2015-09-30 15:38:00 -04:00
Matthew Noorenberghe
13a4f5584f Bug 1208685 - Dedupe alert.css and cleanup alert.js heading. r=bgrins
--HG--
rename : toolkit/themes/linux/global/alerts/alert.css => toolkit/themes/shared/alert-common.css
extra : commitid : BFCPtEgeF91
extra : rebase_source : f49e1a8db0c8d67a75ed8e808fd27f46fe5f2778
2015-09-25 17:36:08 -07:00
Phil Ringnalda
77b145afc8 Back out 2 changesets (bug 1202933) for Mulet timeouts in test_alerts.html
CLOSED TREE

Backed out changeset fbcc1bb170e9 (bug 1202933)
Backed out changeset 1763e1484065 (bug 1202933)
2015-10-05 18:41:00 -07:00
Kit Cambridge
e088390533 Bug 1202933, Part 1 - Show the origin for XUL notifications. r=MattN,wchen
--HG--
extra : commitid : ApOzbuWjL8M
extra : rebase_source : 32c31421bc318dd78d8fadfc9e608a2622020e75
2015-10-05 11:49:22 -07:00
Michael Weisz
5a0267a026 Bug 935434 - Make XUL alertNotifcations use dir/bidi parameter by setting the according css direction attribute. Set lang attribute for labels. r=jaws 2015-03-18 14:34:55 +01:00