Граф коммитов

346 Коммитов

Автор SHA1 Сообщение Дата
Bryce Seager van Dyk 12c7838399 Bug 1642465 - Add EncryptedMedia actors to handle EME messages. r=Gijs
This patch also removes the code that is replaced by the new actors.

Differential Revision: https://phabricator.services.mozilla.com/D77861
2020-06-29 21:56:25 +00:00
Drew Willcoxon 8cf8a6212d Bug 1646086 - Improve UrlbarProviderSearchTips's impact on ts_paint. r=mak
ts_paint depends on the first MozAfterPaint in the content window, not in the
browser as I had thought. After MozAfterPaint, it pings the parent process and
waits for a response (see `TalosPowers.loadPromise`), and then it ends. It will
wait up to 500ms for the response before timing out. Source:
https://dxr.mozilla.org/mozilla-central/source/testing/talos/talos/startup_test/tspaint_test.html

At first I modified UrlbarProviderSearchTips to wait on
`browser-delayed-startup-finished`, but the jsm kept appearing in ts_paint
profiles, and that's how I found out the above. So that's not sufficient.

There's already a promise in browser.js for waiting on the first paint in the
first content window, but it's "private." I added a public getter for it and
changed the name so it's clearer that it's related to the first content window,
not the browser window.

I also added a 500ms timeout just like the worst case in ts_paint.

Both checks (paint and the timeout) are done for a particular browser window
only the first time UrlbarProviderSearchTips sees it.

Finally, UrlbarProviderSearchTips can avoid importing BrowserWindowTracker
during startup by having browser.js pass the window to its `onLocationChange`. I
saw the BrowserWindowTracker.jsm import in some profiles while working on this.

With these changes, UrlbarProviderSearchTips no longer appears in ts_paint
profiles when I run it locally -- except when it is imported by
UrlbarProvidersManager, which ultimately happens due to setting the placeholder
text in the urlbar input. But even that doesn't appear in every profile.

I've also included the reordering of checks from a previous version of this
patch. That's still worth doing in general even if it's no longer relevant to
ts_paint.

Differential Revision: https://phabricator.services.mozilla.com/D80799
2020-06-29 21:28:07 +00:00
Dave Townsend 2d4a0f50de Bug 1642731: Turn excessive calls to document.l10n.formatValue to a single document.l10n.formatValues call. r=Gijs
Rather than sending the strings down to the content process and back up instead
have the content process just send the media type which when prefixed with
`media-` gives us the fluent ID for the string. Ideally this would allow us to
just set that as the `data-l10n-id` for the items but since this tree is
generated by a custom `nsITreeView` implementation that isn't an option so this
still caches the strings on load.

A single formatValues call will be more performant.

Differential Revision: https://phabricator.services.mozilla.com/D77897
2020-06-26 19:17:17 +00:00
Neil Deakin 9843200d33 Bug 1645633, setup RPM pages on the DOMWindowCreated event instead of using the 'xx-document-global-created' observer notification, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D79611
2020-06-17 15:04:39 +00:00
Neil Deakin 58ca41961b Bug 1645541, use outerWindowId from the windowGlobal instead of using the Browser:Init message, Also makes the BrowserTab actor specific to the main browser, r=mconley,remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D79609
2020-06-17 15:01:28 +00:00
Emilio Cobos Álvarez 60605d3019 Bug 1645789 - Also fix the case when we're resetting the styles and the document has no default style. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D79701
2020-06-15 16:10:41 +00:00
Mike Conley 0e4c101ea6 Bug 1642803 - Cancel notification silencing once the display share is over. r=pbz
Depends on D78120

Differential Revision: https://phabricator.services.mozilla.com/D78346
2020-06-09 23:37:37 +00:00
Mike Conley 4d269fae1d Bug 1642804 - Make sure to show notification silencing option in private browsing WebRTC screen sharing panel. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D78120
2020-06-09 23:37:24 +00:00
Razvan Maries 9f0ce65335 Backed out 2 changesets (bug 1642804, bug 1642803) for perma failures on browser_devices_get_user_media_in_xorigin_frame.js. CLOSED TREE
Backed out changeset 48f9a72a27a0 (bug 1642803)
Backed out changeset 53ec379c8e0e (bug 1642804)
2020-06-09 18:57:29 +03:00
Mike Conley af9ad9dfd0 Bug 1642803 - Cancel notification silencing once the display share is over. r=pbz
Depends on D78120

Differential Revision: https://phabricator.services.mozilla.com/D78346
2020-06-05 11:03:29 +00:00
Mike Conley ce7a7c818e Bug 1642804 - Make sure to show notification silencing option in private browsing WebRTC screen sharing panel. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D78120
2020-06-09 10:33:30 +00:00
Alphan Chen 4210fb7d00 Bug 1620341 - Add didDestroy() in DOMFullscreenParent.jsm to avoid the window stays in fullscreen problem r=Gijs,smaug
Differential Revision: https://phabricator.services.mozilla.com/D75915
2020-06-08 15:24:54 +00:00
Neil Deakin 239cbc0daf Bug 1640490, cache the article data in the parent process then retrieve it in the reader mode process when entering reader mode, r=Gijs
This allows the correct article to be displayed even when the reader mode ends up using a different process than the original page,

Differential Revision: https://phabricator.services.mozilla.com/D78487
2020-06-06 20:41:02 +00:00
Emma Malysz ed9faa91db Bug 1634046: lazy load invalid form, date/time picker, and autoscroll panels and popups by placing in templates. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D75971
2020-06-03 15:44:03 +00:00
Dana Keeler 0618ab7fe8 Bug 1641082 - remove old certificate viewer implementation r=kjacobs,bbeurdouche,fluent-reviewers,johannh
Differential Revision: https://phabricator.services.mozilla.com/D77145
2020-06-02 15:48:33 +00:00
Dale Harvey 7ac7aeb879 Bug 1627544 - Update about:protection to use new Region.jsm r=ewright
Differential Revision: https://phabricator.services.mozilla.com/D76948
2020-05-28 16:32:18 +00:00
Erica Wright 929e460619 Bug 1639616 - Turn Monitor cache back on. r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D76495
2020-05-25 10:46:19 +00:00
prathiksha b4dd37fef1 Bug 1624969 - Update monitor card in the protections dashboard. r=ewright,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D75970
2020-05-25 08:26:57 +00:00
Gijs Kruitbosch 6fa5c7eb3e Bug 1635106 - fix spellchecker lifetime handling vs. the context menu, r=nika
This changes both the spellchecker parent code that interfaces with the
InlineSpellCheckerParent actor, and the child code interfacing with the
ContextMenuChild actor, to ensure they get notified when either actor
goes away.

It maintains the "uninit" messages to clear out spellcheck data when the
context menu goes away (while the window / actors remain intact).

It also adds some belts-and-suspenders type checks that allow us to
recover if we ever get in a bad state again, instead of stubbornly
throwing exceptions and breaking the UI for users.

Differential Revision: https://phabricator.services.mozilla.com/D75228
2020-05-22 08:35:57 +00:00
Mike Conley f9808d0cfe Bug 1639923 - Move new WebRTC UI strings from preview into the locales folder. r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D76397
2020-05-21 21:22:23 +00:00
Csoregi Natalia cf7c236c65 Backed out changeset d75769547bb8 (bug 1635106) for failures on browser_contextmenu_input.js. CLOSED TREE 2020-05-21 01:50:22 +03:00
Gijs Kruitbosch 461e96206a Bug 1635106 - fix spellchecker lifetime handling vs. the context menu, r=nika
This changes both the spellchecker parent code that interfaces with the
InlineSpellCheckerParent actor, and the child code interfacing with the
ContextMenuChild actor, to ensure they get notified when either actor
goes away.

It maintains the "uninit" messages to clear out spellcheck data when the
context menu goes away (while the window / actors remain intact).

It also adds some belts-and-suspenders type checks that allow us to
recover if we ever get in a bad state again, instead of stubbornly
throwing exceptions and breaking the UI for users.

Differential Revision: https://phabricator.services.mozilla.com/D75228
2020-05-20 21:20:10 +00:00
pbz ab0ae62c5f Bug 1562600 - WebRTCParent: Get document URI from WindowGlobalParent instead of child message. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D76121
2020-05-20 16:25:06 +00:00
Mike Conley a316bd1675 Bug 1635257 - Add a checkbox to allow users to suppress notifications from the browser when sharing the screen. r=johannh,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D74244
2020-05-16 00:58:48 +00:00
Mike Conley eb81614100 Bug 1637336 - Add a preference that uses an alternative WebRTC screen sharing permission panel configuration. r=johannh,fluent-reviewers,Pike
This is the same preference that will power the notification suppression
option in bug 1635257, hence the preference name.

Differential Revision: https://phabricator.services.mozilla.com/D74941
2020-05-16 00:57:54 +00:00
Noemi Erli 573977550b Backed out 4 changesets (bug 1635257, bug 1637336) fr causing failures in browser_all_files_referenced.js CLOSED TREE
Backed out changeset 732ef8965a6e (bug 1635257)
Backed out changeset e3b350425e08 (bug 1635257)
Backed out changeset 2052da1ed54c (bug 1635257)
Backed out changeset 01ea90534f02 (bug 1637336)
2020-05-16 03:21:32 +03:00
Neil Deakin b0b8bbe697 Bug 1614748, convert about:newinstall to JSWindowActor-based remote page manager, r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D71024
2020-05-15 19:41:56 +00:00
Mike Conley 716c233a84 Bug 1635257 - Add a checkbox to allow users to suppress notifications from the browser when sharing the screen. r=johannh,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D74244
2020-05-15 18:02:17 +00:00
Mike Conley 3c1475b99e Bug 1637336 - Add a preference that uses an alternative WebRTC screen sharing permission panel configuration. r=johannh,fluent-reviewers,Pike
This is the same preference that will power the notification suppression
option in bug 1635257, hence the preference name.

Differential Revision: https://phabricator.services.mozilla.com/D74941
2020-05-15 16:02:59 +00:00
pbz 225f10d76a Bug 1631362 - Bind prompts to JSWindowActor lifetime instead of closing them on pagehide. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D73882
2020-05-14 12:21:49 +00:00
Neil Deakin b8f7ac9956 Bug 1591469, move reader mode to use JSWindowActor instead of message managers, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D71452
2020-05-13 19:22:20 +00:00
Gijs Kruitbosch e83010ea13 Bug 1196151 - use browsing contexts for urifixupinfo's consumer property, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D74559
2020-05-13 14:54:47 +00:00
Mike Conley 66a6e86753 Bug 1634703 - Send the list of shared nsIMediaDevice devices up to the parent from WebRTCChild.jsm. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D73480
2020-05-12 14:49:59 +00:00
Mike Conley e08905a04a Bug 1634703 - Return nsIMediaDevice active devices list from mediaCaptureWindowState. r=jib,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D73479
2020-05-12 14:49:46 +00:00
Harry Twyford 10d99a6ca5 Bug 1626897 - Part 3 - Add support for tail suggestions to SearchSuggestionController's consumers. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D74119
2020-05-12 17:01:14 +00:00
Bogdan Tara be25a1cf76 Backed out changeset 3a50d857d097 (bug 1591469) for newtab failures complaining about AboutReaderParent CLOSED TREE 2020-05-12 06:13:10 +03:00
Neil Deakin f9054b8cff Bug 1591469, move reader mode to use JSWindowActor instead of message managers, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D71452
2020-05-12 01:06:51 +00:00
Bogdan Tara 8c5c4f1dd7 Backed out 7 changesets (bug 1634703) for testDeviceRecordingEventAudioAndVideo failures CLOSED TREE
Backed out changeset b982f5d74610 (bug 1634703)
Backed out changeset 59229853930e (bug 1634703)
Backed out changeset e017380f5539 (bug 1634703)
Backed out changeset 47a3a96b969b (bug 1634703)
Backed out changeset b4af76cfbdaf (bug 1634703)
Backed out changeset 7ef57434b09d (bug 1634703)
Backed out changeset 9df87d346b0f (bug 1634703)
2020-05-11 23:04:54 +03:00
Mike Conley 3c136db2d3 Bug 1634703 - Send the list of shared nsIMediaDevice devices up to the parent from WebRTCChild.jsm. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D73480
2020-05-08 22:30:56 +00:00
Mike Conley f77df842d7 Bug 1634703 - Return nsIMediaDevice active devices list from mediaCaptureWindowState. r=jib,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D73479
2020-05-11 17:34:10 +00:00
prathiksha a4ed2b48f2 Bug 1627337 - Update lockwise card display and copy. r=ewright,fluent-reviewers,flod
Depends on D72693

Differential Revision: https://phabricator.services.mozilla.com/D72694
2020-05-07 09:23:41 +00:00
prathiksha 9ed228ef9c Bug 1627337 - Remove the connected devices label from the lockwise card. r=ewright,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D72693
2020-05-07 09:15:17 +00:00
Emilio Cobos Álvarez 761e9dfe4c Bug 1635094 - Cleanup the ReferrerInfo code. r=ckerschb
The cast in InitWithNode is wrong. AsElement() asserts instead of
checking the flag, so we always pass an element (and if we didn't we'd
have type confusion problems). I audited the callers and we're fine.

Anyhow, always require an element, and add two convenience constructors
for C++ code.

Differential Revision: https://phabricator.services.mozilla.com/D73636
2020-05-04 18:50:20 +00:00
Cosmin Sabou 71a40eae48 Backed out 2 changesets (bug 1635094) for build bustages on nsMacShellService.cpp. CLOSED TREE
Backed out changeset 0a2b0c6ea19a (bug 1635094)
Backed out changeset ead4f26f76ee (bug 1635094)
2020-05-04 20:04:06 +03:00
Emilio Cobos Álvarez 6dde680742 Bug 1635094 - Cleanup the ReferrerInfo code. r=ckerschb
The cast in InitWithNode is wrong. AsElement() asserts instead of
checking the flag, so we always pass an element (and if we didn't we'd
have type confusion problems). I audited the callers and we're fine.

Anyhow, always require an element, and add two convenience constructors
for C++ code.

Differential Revision: https://phabricator.services.mozilla.com/D73636
2020-05-04 16:26:51 +00:00
jayati 20a03ae802 Bug 1633770 - Remove unnecessary loop in ContentSearchUIController._updateDefaultEngineIcon.r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D73091
2020-05-04 10:49:15 +00:00
Emilio Cobos Álvarez 164acdc0b9 Bug 1634218 - Remove the zoom actors. r=nika
After the recent simplifications to the zoom code, they only take care
of forwarding the enlarge / decrease zoom messages.

We can do that via PBrowser instead, and get rid of the actors. We can
also remove ZoomChangeUsingMouseWheel. Zooming with the mouse wheel will
end up in a *ZoomChange event anyways, and the only consumer already
listened for them.

Differential Revision: https://phabricator.services.mozilla.com/D73175
2020-04-30 16:35:35 +00:00
Neil Deakin 6b57ac9c48 Bug 1614749, convert about:tabcrashed to JSWindowActor-based remote page manager, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D71026
2020-04-30 00:50:10 +00:00
Neil Deakin f22197fbf1 Bug 1614747, convert about:plugins to JSWindowActor-based remote page manager, r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D71025
2020-04-30 00:14:56 +00:00
Neil Deakin 653fff4e36 Bug 1614744, convert about:privatebrowsing to JSWindowActor-based remote page manager, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D71023
2020-04-29 23:19:15 +00:00