Commit Graph

181 Commits

Author SHA1 Message Date
Luca Greco
6b913e86c8 Bug 1459613 - Show extension name in PermissionUI / webrtcUI doorhangers and menus items. r=johannh
MozReview-Commit-ID: 2NbbsWkxDHm
2018-05-16 19:32:42 +02:00
Andrea Marchesini
ff35c9433a Bug 1454889 - Remove createObjectURL()'s MediaStream overload, r=valentin 2018-04-24 16:19:51 +02:00
Johann Hofmann
9ff3826f2f Bug 1456899 - Consider the page URI when checking WebRTC permissions in webrtcUI.jsm. r=nhnt11
While we already do a permission check in native webrtc code, the one
in webrtcUI is needed to provide extra protection against permission spam
by checking if there's a temporarily denied permission on the tab.

Since we introduced custom default permission values it is necessary to
also pass the URI to make sure we catch exceptions added by the user.

MozReview-Commit-ID: C8r6ymbKE3a
2018-05-08 15:31:49 +02:00
Narcis Beleuzu
8fd26b0fe8 Backed out changeset 0c5a4939300c (bug 1454889) for causing frequent Leaks (Bug 1378025). a=backout 2018-05-07 12:06:25 +03:00
Andrea Marchesini
d173a7f829 Bug 1454889 - Remove createObjectURL()'s MediaStream overload, r=valentin 2018-04-24 16:19:51 +02:00
Boris Zbarsky
1eb7f3f9c3 Bug 1444143 part 10. Remove unnecessary QIs to Ci.nsIFrameLoader in JS. r=mystor
nsFrameLoader is on WebIDL bindings, so those QIs are no-ops anyway, unless the given object is no a frameloader to start with.

MozReview-Commit-ID: IPiW70H5NPc
2018-03-21 22:43:17 -04:00
Prathiksha
872d37cca3 Bug 1435160 - Format notification popup description message in a helper function. r=johannh
MozReview-Commit-ID: Bwy2WrbXjUf
2018-02-28 02:01:55 +05:30
Florian Quèze
f1a55f73f8 Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01: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
Mark Banner
141e18e4e7 Bug 1434449 - Removed some unused code in jsm files in browser/base and browser/modules. r=florian
MozReview-Commit-ID: 9VhKxnpdzCD
2018-01-30 22:09:02 +00: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
Kris Maglione
5ff866b8be Bug 1433708: Part 1 - Fix WebRTC innerHTML sanitization. r=mconley
MozReview-Commit-ID: JOkIXajO13O
2018-01-26 10:57:47 -08:00
Johann Hofmann
ed86084f85 Bug 1345077 - Part 2 - Add telemetry on permission requests from third party origins, handling user input and insecure contexts. r=florian,liuche
MozReview-Commit-ID: 4ARIxa6gwCg
2018-01-10 21:07:59 +01:00
Prathiksha
36b3466343 Bug 1369482 - Make hostnames in permission prompts much more prominent. r=johannh
MozReview-Commit-ID: 89m2QVzj8DG
2017-12-14 21:00:28 +05:30
Johann Hofmann
311fa5ab19 Bug 1366357 - Use origin instead of documentURI for WebRTC permission requests. r=florian
MozReview-Commit-ID: IkccA65Ma3a
2017-06-13 12:10:39 +02:00
Brindusan Cristian
26e63c1657 Backed out changeset c6d592ebf8cd (bug 1366357) for browser-chrome failure in browser_displayURI.js on Windows 7 debug non-e10s a=backout r=backout on a CLOSED TREE 2017-12-05 23:50:31 +02:00
Johann Hofmann
5f54ad3fdf Bug 1366357 - Use origin instead of documentURI for WebRTC permission requests. r=florian
MozReview-Commit-ID: IkccA65Ma3a
2017-06-13 12:10:39 +02:00
Mark Banner
5ab2bd1b7a Bug 1421376 - Change various instances of manually calling getService to use Services.jsm in browser/. r=mossop
MozReview-Commit-ID: FW3X2fkOwK2
2017-11-28 19:21:33 +00:00
Dan Banner
5af4450327 Bug 1408777 - Automatically fix instances of missing semicolons in the tree. r=Standard8
MozReview-Commit-ID: Jm8BRgt6mIv
2017-10-15 20:50:39 +01:00
Jonathan Kingston
125e5b8347 Bug 1272304 - Add disabled state to screen sharing permission r=florian
MozReview-Commit-ID: LsZmQD5fWzW
2017-08-12 18:54:24 +01:00
Munro Mengjue Chiang
1780052874 Bug 1374640 - always prompt for screen sharing. r=florian,jib
MozReview-Commit-ID: FJvuf2XVZXJ
2017-06-29 15:50:30 -07:00
Frederik Braun
96b2642639 Bug 1351608 - Disable warnings for existing violations to no-unsanitize rule r=Standard8.
MozReview-Commit-ID: 7cTNL5jMtRw
2017-07-03 20:07:02 +01:00
Munro Mengjue Chiang
0fe745657a Bug 861716 - catch exception thrown from gIndicatorWindow.updateIndicatorState(). r=florian
MozReview-Commit-ID: IUe0iSAOa7h
2017-06-08 16:05:34 +08:00
Florian Quèze
ff53eb9a63 Bug 1353542 - massive script-generated patch converting Task.async and Task.spawn calls, and generators clearly identifiable as tasks, rs=Mossop. 2017-05-12 14:42:39 +02:00
Kris Maglione
e50f27bd6b Bug 1358921: Lazily load webrtcUI.jsm when first needed. r=florian
MozReview-Commit-ID: LRtpyBaRCMA
2017-05-02 19:50:20 -07:00
Florian Queze
ddf0cda8da Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Florian Queze
d3c36892fa Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst
4cd95d4a02 Backed out changeset 18d45aa984d6 (bug 1355161) 2017-04-14 23:39:23 +02:00
Sebastian Hengst
42670ceca0 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Florian Queze
9b4f73599f Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Florian Queze
35cd8ba883 Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
Johann Hofmann
c2327832cd Bug 1348257 - Hide the "always remember" checkbox for webrtc prompts in PBM. r=Nihanth
It's important to not remember any user choices made in private mode
(except the ones we specifically mention in the private browsing landing
page). The original idea was to change the checkbox behavior to store
the permission for session duration if in PBM, but this would actually be
inconsistent with the other permission prompts which hide it completely.

MozReview-Commit-ID: 8ioVmE4XefE
2017-03-20 19:49:59 +01:00
Carsten "Tomcat" Book
92b3168c96 merge mozilla-inbound to mozilla-central a=merge 2017-03-16 15:35:50 +01:00
Florian Quèze
9fcb83b1c8 Bug 1325049 - Fix the global webrtc sharing indicator to work with multiple content processes, r=felipe. 2017-03-15 22:47:06 +01:00
Nihanth Subramanya
d2e3642992 Bug 1339848 - Simplify the string used to indicate that permanent access to the screen cannot be granted. r=florian
MozReview-Commit-ID: I5CqUq6QNl7
2017-03-13 19:33:41 +05:30
Nihanth Subramanya
c97b009562 Bug 1345079 - Allowing screensharing with no screen selected should not block the camera. r=johannh
MozReview-Commit-ID: JKYaDGyL5t
2017-03-14 01:19:14 +05:30
Johann Hofmann
e446de3bd1 Bug 1331579 - Explicitly update the identity block on re-requesting expired permissions. r=Paolo
MozReview-Commit-ID: CxvHSp1NjFg
2017-01-23 11:44:03 +01:00
Florian Quèze
91f7a2ef3a Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
Munro Mengjue Chiang
cd781bb72d Bug 1332608 - Fix JavaScript error in webrtcUI.jsm: nsIMessageListenerManager.removeMessageListener: Not enough arguments; r=florian
MozReview-Commit-ID: LHzfrUpFGVy
2017-01-23 15:22:30 +08:00
Nihanth Subramanya
356329a03a Bug 1323420 - Add a pref to control the close button on web permission prompts. r=past
MozReview-Commit-ID: JHEY478q3C
2017-01-16 18:08:07 +05:30
Florian Quèze
7ab9e9a65a Bug 1329976 - make the microphone prompt select the same device by default all the time by clearing the leftover value from previous prompts, r=johannh. 2017-01-20 12:50:14 +01:00
Munro Mengjue Chiang
2c08e712f8 Bug 1270572 - allow un-prompted gUM access if the page has a live track connected to the same device; r=florian,gcp,smaug
MozReview-Commit-ID: EvATqR4NNTH
2017-01-19 12:24:59 +08:00
Phil Ringnalda
f9ce9768cb Merge m-i to m-c, a=merge 2017-01-16 13:18:17 -08:00
Paolo Amadini
b496866263 Bug 1319112 - Adjust strings for the WebRTC permission notifications. r=florian
MozReview-Commit-ID: 98jRli5Cqxy
2017-01-16 14:31:23 +01:00
Johann Hofmann
ac774acafd Bug 1206232 - Add temporary permission states to SitePermissions.jsm. r=jdm,Paolo
MozReview-Commit-ID: zQVeEHhIax
2016-09-22 23:09:30 +02:00
Florian Quèze
45647c4570 Bug 1329182 - remove trailing newURI null parameters in browser/, r=jaws. 2017-01-09 20:27:25 +01:00