Bug: Permission are being removed when the Global Sharing Overlay window is being closed
Status: VERIFIED
Priority: P1
Resolution: FIXED
Created: 2020-10-21 16:03:19+00:00
Resolved: 2020-10-30 20:52:47+00:00

**Note**
* All permissions are being removed when the Global Sharing Overlay window (Firefox - Sharing Indicator) is being closed.

**Affected versions**
* Nigtly v84.0a1
* Beta v83.0b2

**Affected platforms**
* Windows 7 and 10

**Steps to reproduce**
1. Host or join a meeting and share the Firefox window.
2. Close the Sharing Indicator window from the taskbar.

**Expected result**
* The permissions are not being removed. The call and sharing remain ongoing.

**Actual result**
* The microphone, camera and screen sharing permissions are being removed.

**Regression range**
* mozregression results:

    2020-10-21T18:49:50.709000: INFO : Narrowed integration regression window from [a35461d1, c00b0b97] (3 builds) to [f6127ce5, c00b0b97] (2 builds) (~1 steps left)
    2020-10-21T18:49:50.717000: DEBUG : Starting merge handling...
    2020-10-21T18:49:50.717000: DEBUG : Using url: https://hg.mozilla.org/mozilla-central/json-pushes?changeset=c00b0b97ea6558d17a40a8750a6453e7d92e5136&full=1
    2020-10-21T18:49:50.718000: DEBUG : redo: attempt 1/3
    2020-10-21T18:49:50.718000: DEBUG : redo: retry: calling _default_get with args: ('https://hg.mozilla.org/mozilla-central/json-pushes?changeset=c00b0b97ea6558d17a40a8750a6453e7d92e5136&full=1',), kwargs: {}, attempt #1
    2020-10-21T18:49:50.720000: DEBUG : urllib3.connectionpool: Resetting dropped connection: hg.mozilla.org
    2020-10-21T18:49:51.890000: DEBUG : urllib3.connectionpool: https://hg.mozilla.org:443 "GET /mozilla-central/json-pushes?changeset=c00b0b97ea6558d17a40a8750a6453e7d92e5136&full=1 HTTP/1.1" 200 None
    2020-10-21T18:49:51.951000: DEBUG : Found commit message:
    Bug 1636423 - Enable SSE on Nightly. r=Honza

* then the bisection continued and I got:

    2020-10-21T18:53:02.507000: INFO : Narrowed integration regression window from [a3bf7a21, b045b030] (3 builds) to [a3bf7a21, 400275fe] (2 builds) (~1 steps left)
    2020-10-21T18:53:02.520000: DEBUG : Starting merge handling...
    2020-10-21T18:53:02.520000: DEBUG : Using url: https://hg.mozilla.org/integration/autoland/json-pushes?changeset=400275fe8a1d99c74b9afc674aeb4ed307aeb7f4&full=1
    2020-10-21T18:53:02.520000: DEBUG : redo: attempt 1/3
    2020-10-21T18:53:02.520000: DEBUG : redo: retry: calling _default_get with args: ('https://hg.mozilla.org/integration/autoland/json-pushes?changeset=400275fe8a1d99c74b9afc674aeb4ed307aeb7f4&full=1',), kwargs: {}, attempt #1
    2020-10-21T18:53:02.522000: DEBUG : urllib3.connectionpool: Resetting dropped connection: hg.mozilla.org
    2020-10-21T18:53:03.914000: DEBUG : urllib3.connectionpool: https://hg.mozilla.org:443 "GET /integration/autoland/json-pushes?changeset=400275fe8a1d99c74b9afc674aeb4ed307aeb7f4&full=1 HTTP/1.1" 200 None
    2020-10-21T18:53:03.958000: DEBUG : Found commit message:
    Bug 1649032 - Add a test that ensures that we stop all streams if the WebRTC indicator is closed. r=pbz
    Differential Revision: https://phabricator.services.mozilla.com/D82990
    2020-10-21T18:53:03.958000: DEBUG : Did not find a branch, checking all integration branches
    2020-10-21T18:53:03.960000: INFO : The bisection is done.
    2020-10-21T18:53:03.961000: INFO : Stopped


**Additional notes**
* This issue does not occur on the MacOS platform because the Global Sharing Indicator window CANNOT be closed.