Commit Graph

57 Commits

Author SHA1 Message Date
Mike Conley
844a8b92ad Bug 1643027 - Turn the microphone and camera icons in the WebRTC indicator into global mute toggles. r=pbz,fluent-reviewers,flod
Depends on D86719

Differential Revision: https://phabricator.services.mozilla.com/D86619
2020-08-27 17:03:43 +00:00
Bogdan Tara
73e3a4abbb Backed out 6 changesets (bug 1643027, bug 1658353) for browser_parsable_css.js failures CLOSED TREE
Backed out changeset e50501b54674 (bug 1643027)
Backed out changeset aa5d33b0d0b5 (bug 1643027)
Backed out changeset 51c592eb4ebd (bug 1643027)
Backed out changeset fe37ed8ba008 (bug 1658353)
Backed out changeset acb933a440c7 (bug 1658353)
Backed out changeset 7aa764991e49 (bug 1658353)
2020-08-27 18:39:49 +03:00
Mike Conley
8f9b3e74f6 Bug 1643027 - Turn the microphone and camera icons in the WebRTC indicator into global mute toggles. r=pbz,fluent-reviewers,flod
Depends on D86719

Differential Revision: https://phabricator.services.mozilla.com/D86619
2020-08-26 21:31:29 +00:00
Mike Conley
7030e675f5 Bug 1657484 - Change default location of the WebRTC global sharing indicator. r=pbz
Per UX, the new default location for the indicator upon opening is the the top
of the content viewport of the most recently used browser window.

Differential Revision: https://phabricator.services.mozilla.com/D86080
2020-08-11 10:03:07 +00:00
Mike Conley
b0f27dc578 Bug 1655078 - Make the 'Stop Sharing' button in the WebRTC indicator stop all screen sharing streams. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D85414
2020-08-05 03:38:19 +00:00
Bogdan Tara
e743b40e47 Backed out changeset 33eb26623d7e (bug 1655078) for browser_stop_sharing_button.js failures CLOSED TREE 2020-08-05 01:00:42 +03:00
Mike Conley
aee9e6de85 Bug 1655078 - Make the 'Stop Sharing' button in the WebRTC indicator stop all screen sharing streams. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D85414
2020-08-04 20:50:19 +00:00
Mike Conley
68d3b6fb69 Bug 1654266 - Make sure the 'Stop Sharing' button in the WebRTC indicator only stops displays, and not mic/camera streams. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D84574
2020-07-24 15:14:17 +00:00
Mike Conley
d39711da49 Bug 1649032 - If the user manages to close the WebRTC indicator, close all of the active streams. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D82989
2020-07-17 01:22:10 +00:00
Bogdan Tara
17ab4cfa11 Backed out 2 changesets (bug 1649032) for leakcheck failures CLOSED TREE
Backed out changeset ef80a597db37 (bug 1649032)
Backed out changeset a8462c37bef1 (bug 1649032)
2020-07-16 00:37:06 +03:00
Mike Conley
9a062460bd Bug 1652466 - Add an about:config preference to hide the new global sharing indicator. r=pbz
This works by hiding the window instead of skipping opening it. This seems safer, since
there are parts of webrtcUI that expect to call functions on the window.

Differential Revision: https://phabricator.services.mozilla.com/D83348
2020-07-15 10:40:04 +00:00
Mike Conley
c702848ffa Bug 1649032 - If the user manages to close the WebRTC indicator, close all of the active streams. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D82989
2020-07-15 10:22:12 +00:00
Mike Conley
df9d7d3d5a Bug 1650243 - Don't accidentally restore the WebRTC global sharing indicator if it is minimized when changing streams. r=pbz
window.sizeToContent causes a minimized window to be restored, so we skip calling that if the
indicator is minimized. We call it instead once the indicator is restored.

Differential Revision: https://phabricator.services.mozilla.com/D82620
2020-07-08 09:34:39 +00:00
Mike Conley
080caf098d Bug 1645466 - Prevent the WebRTC indicator from being resized manually on Linux GTK. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D80019
2020-06-17 17:04:51 +00:00
Mike Conley
35927f76f2 Bug 1645481 - Open the WebRTC indicator on the same display as the most recent browser window. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D79544
2020-06-16 13:19:16 +00:00
Mike Conley
e052c6ab51 Bug 1644905 - Make the display sharing container a group, and set aria-labelledby when updating the displayed label. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D79357
2020-06-16 11:20:57 +00:00
Mike Conley
4c141c447c Bug 1643503 - Offset the initial vertical position of the WebRTC indicator by 80px. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D79343
2020-06-12 18:59:59 +00:00
Narcis Beleuzu
d61fb48e85 Backed out 4 changesets (bug 1643503) for bc failures on browser_parsable_css.js . CLOSED TREE
Backed out changeset a890be633ec3 (bug 1643503)
Backed out changeset 1f8dcaafb864 (bug 1643503)
Backed out changeset b28d0c018553 (bug 1643503)
Backed out changeset 1bcaedf06fb9 (bug 1643503)
2020-06-12 21:56:16 +03:00
Mike Conley
93df24710e Bug 1643503 - Offset the initial vertical position of the WebRTC indicator by 80px. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D79343
2020-06-12 15:39:01 +00:00
Mike Conley
3f869ebd2a Bug 1639337 - Factor out the macOS status bar WebRTC indicator into a reusable class. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D76388
2020-05-26 18:00:36 +00:00
Mike Conley
563c1b3ca3 Bug 1636207 - Create a new WebRTC global indicator. r=fluent-reviewers,flod,johannh
Differential Revision: https://phabricator.services.mozilla.com/D74333
2020-05-18 18:57:40 +00:00
devRD
be92aeb6cc Bug 1618477 - The permissions prompt is not displayed by clicking on the control sharing panel. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D66381
2020-03-16 09:22:29 +00:00
Victor Porof
a3641f184a Bug 1561435 - Format browser/base/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36041
2019-07-05 09:48:57 +02:00
Boris Zbarsky
95de682140 Bug 1557793 part 2. Stop using [array] in nsIStringBundle. r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D34196
2019-06-11 15:51:51 +00:00
Kris Maglione
856fa07b17 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
2019-01-17 10:18:31 -08:00
Mark Banner
462116b7f9 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

Differential Revision: https://phabricator.services.mozilla.com/D4439
2018-08-31 05:59:17 +00:00
Andrew McCreight
272cee1e65 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
2018-02-06 09:36:57 -08:00
Kris Maglione
0bb74efdf1 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
2018-01-29 15:20:18 -08:00
Cosmin Sabou
f09d6d985d 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
fd67f090b2 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
2018-01-29 15:20:18 -08:00
Brindusan Cristian
483ba301cb 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
683a97d172 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
2018-01-29 15:20:18 -08:00
Munro Mengjue Chiang
830aaeb752 Bug 1365852 - immediately return in updateIndicatorState() if webrtcIndicator hasn't finished loading. r=florian
MozReview-Commit-ID: D6MZn6khaJO
2017-06-13 16:50:19 +08:00
Jared Wein
242ab87626 Bug 1326511 - Enable brace-style and no-multi-spaces eslint rules for toolkit. r=MattN
MozReview-Commit-ID: FuVu8skcqOe
2016-12-30 21:47:25 -05:00
Jared Wein
e3149c378f Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 7E7LPorrEje
2016-12-29 18:34:54 -05:00
Wes Kocher
2d7553dcfd Backed out 3 changesets (bug 1325464) for xpcshell failures a=backout
Backed out changeset 562ddc32cc21 (bug 1325464)
Backed out changeset cd10db6087dd (bug 1325464)
Backed out changeset 4079437c4648 (bug 1325464)
2016-12-29 14:05:44 -08:00
Jared Wein
34e228f767 Bug 1325464 - Enable object-shorthand rule and run 'mach eslint --fix' with the rule enabled. r=MattN
MozReview-Commit-ID: 8WoGr8i6oCR
2016-12-29 15:20:47 -05:00
Florian Quèze
085e4e81a9 Bug 1320375 - Remove webrtcUI.showSharingDoorhanger's obsolete aType parameter, r=johannh. 2016-11-28 12:29:31 +01:00
Carsten "Tomcat" Book
af94fe4f00 Backed out changeset 77b01f2bda7f (bug 1320375) 2016-11-28 15:56:41 +01:00
Florian Quèze
f149c6a7fc Bug 1320375 - Remove webrtcUI.showSharingDoorhanger's obsolete aType parameter, r=johannh. 2016-11-28 12:29:31 +01:00
Pushpankar
77a14e357c Bug 1286854 - Replace ownerDocument.defaultView with ownerGlobal in browser/. r=dao 2016-07-16 10:20:04 +02:00
Jonathan Kew
4587f7c19c Bug 1253446 - patch 1 - Convert from device to CSS pixels when positioning the webrtc indicator. r=emk 2016-03-04 16:12:40 +00:00
Carsten "Tomcat" Book
036e6d2fa3 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
Carsten "Tomcat" Book
12369728f5 Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)
2015-10-07 12:13:45 +02:00
Shu-yu Guo
474f49adb7 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Gijs Kruitbosch
82b0f0d1d5 Bug 1052776 - fix role=alert usage and ensure alert events fire, r=MattN 2015-09-30 15:38:00 -04:00
Shu-yu Guo
37989840cd Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Mike de Boer
9fbebea5ad Bug 1142066: add strings for screen sharing type Browser, aka tab-sharing for the WebRTC UI indicators. r=florian 2015-03-12 17:02:28 +01:00
Mike de Boer
1d1cab6edb Bug 1139907: show WebRTC screen sharing notification icon in Hello conversation window and globally when tab sharing is active. r=jesup,florian 2015-03-11 16:34:31 +01:00
Shu-yu Guo
6cfc2eb110 Bug 1001090 - Part 4: Fix errors in chrome code. (r=zombie,gavin,fitzgen,dcamp,bgrins,fabrice,gwagner,margaret,mrbkap,mak,njn,vicamo) 2014-09-15 16:30:46 -07:00