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

758094 Коммитов

Автор SHA1 Сообщение Дата
Masayuki Nakano 95c41d54c3 Bug 1540037 - part 19: Make `IsEmpty()` be a virtual method of `EditorBase` and implement `nsIEditor::GetDocumentIsEmpty()` in `EditorBase` r=m_kato
Currently, `EditorBase::GetDocumentIsEmpty()` is implemented by `TextEditor`,
and it refers only `IsEmpty()` which is implemented both by `TextEditor` and
`HTMLEditor`.  So, `IsEmpty()` should be a virtual method of `EditorBase`,
then, `EditorBase` can implement `GetDocumentIsEmpty()`.

Depends on D115786

Differential Revision: https://phabricator.services.mozilla.com/D115787
2021-05-25 04:53:01 +00:00
Masayuki Nakano ae69b73075 Bug 1540037 - part 18: Move `ReplaceTextAsAction()` and `ReplaceSelectionAsSubAction()` to `EditorBase` r=m_kato
They are used by setting text value of `TextEditor` or replacing a misspelled
word with a new word in both `TextEditor` and `HTMLEditor`.  Therefore,
they should be in the `EditorBase` rather than `TextEditor`.

Note that the path of the former case may be in a hot path.  Therefore, we need
to keep redirecting to `TextEditor` for keeping the performance only in the
case.

Depends on D115785

Differential Revision: https://phabricator.services.mozilla.com/D115786
2021-05-25 04:26:14 +00:00
Masayuki Nakano de91059947 Bug 1540037 - part 17: Move `TextEditor::OnInputText()` into `EditorBase` r=m_kato
This method is semi-public method, meaning that this is commonly used by
public methods which handle various user input and that causes inputting
text, both in `TextEditor` and `HTMLEditor`.

Therefore, for making `HTMLEditor` stop inheriting `TextEditor` class in the
future, we should move it into `EditorBase`.

Depends on D115784

Differential Revision: https://phabricator.services.mozilla.com/D115785
2021-05-25 04:12:14 +00:00
Emilio Cobos Álvarez f62f9d4fa2 Bug 1712590 - Don't request ImageKey::DUMMY in setup_compositor_surfaces_yuv. r=gfx-reviewers,bradwerth
This avoids a bunch of warning-spam (and some hashmap lookups).

Differential Revision: https://phabricator.services.mozilla.com/D115822
2021-05-25 02:47:47 +00:00
Masayuki Nakano 1a7abaeafa Bug 1540037 - part 16: Move composition event handlers from `TextEditor` to `EditorBase` r=m_kato
IME is available in both `TextEditor` and `HTMLEditor`, and the handling
code is almost same (they partially do different things with checking
`IsHTMLEditor()`).  Therefore, we should move them to `EditorBase` for
making `HTMLEditor` possible to inherit only `EditorBase` in the future.

Differential Revision: https://phabricator.services.mozilla.com/D115784
2021-05-25 02:06:32 +00:00
Hiroyuki Ikezoe 6b494767d9 Bug 1699890 - Forcibly create a display item for backgroud-color animations even if it's transparent at the moment. r=boris,miko
Otherwise we keep restyling for the animations on the main thread and trying
to create display items for them.

Differential Revision: https://phabricator.services.mozilla.com/D115441
2021-05-25 01:58:19 +00:00
Hiroyuki Ikezoe 9a5d9feeba Bug 1699890 - Restrict background-color animations on canvas frame or on <body> element not to run on the compositor in KeyframeEffect::IsMatchForCompositor. r=boris
So that now EffectCompositor::HasAnimationsForCompositor doesn't return true
for such cases, thus we will not accidentally try to generate
nsDisplayBackgroundColor display item for such animations (bug 1699890#c21)
and we will not generate nsChangeHint_RepaintFrame (bug 1701547) either.

Differential Revision: https://phabricator.services.mozilla.com/D115774
2021-05-25 01:58:18 +00:00
Kris Wright 4c1f92ff6c Bug 1692068 - Increase crashtest chunking on TSan r=decoder
TSan is prone to issues with slowdown and resource exhaustion. Increasing crashtest chunking appears to reduce the rate of restarts and intermittents related to timeouts.

Differential Revision: https://phabricator.services.mozilla.com/D110372
2021-05-25 01:15:49 +00:00
Kris Wright 5e37146c9f Bug 1692068 - Disable broken crashtests on tsan. r=necko-reviewers,decoder,dragana
These tests either cause frequent or permanent failures on TSan.

Differential Revision: https://phabricator.services.mozilla.com/D110371
2021-05-25 01:15:49 +00:00
Kris Wright e55840ca73 Bug 1692068 - Enable crashtest on tsan. r=decoder
Differential Revision: https://phabricator.services.mozilla.com/D110370
2021-05-25 01:15:49 +00:00
Dorel Luca 63834bb02b Backed out changeset 8e6ae945c88a (bug 1704000) for Reftest failures on Android. CLOSED TREE 2021-05-25 01:02:32 +03:00
sotaro 1beb643350 Bug 1704000 - Request rendering for RenderCompositorOGLSWGL::MaybeReadback() r=gfx-reviewers,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D115778
2021-05-24 21:47:30 +00:00
Mike Hommey d4ae277433 Bug 1712031 - Adjust the type of fallbackIterations to match that of IterationCount(). r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D115564
2021-05-24 21:40:27 +00:00
Toshihito Kikuchi 0b6b4d9629 Bug 1711610 - Should not trigger the memory pressure event if the available commit space is not low. r=gsvelto
After bug 1586236, we use the memory resource notification object to detect a low
memory situation on Windows, which is signaled when the available physical memory
is low.  If the available physical memory is low, however, it's possible that there
is still commit space enough for the application to run.  In such a situation, we
don't want to make aggressive efforts to reduce memory usage.

This patch makes sure we send the memory pressure event (both New and Ongoing) only
when the available commit space is lower than the threshold value defined by the pref
"browser.low_commit_space_threshold_mb".  Its default value is set to 200MB
based on our telemetry data indicating ~60% of OOM crashes with <100MB, ~75% with <300MB.

To use the pref in `nsAvailableMemoryWatcher`, this patch moves the call to
`AvailableMemoryTracker::Init()` to `XRE_mainRun()`.  It was in `NS_InitXPCOM`
because the old initialization code hooked APIs and needed to be done while
the process has only one thread (bug 741540).  The current `AvailableMemoryTracker`
does not use hooks, so it doesn't have to be initialized that early.

Differential Revision: https://phabricator.services.mozilla.com/D115605
2021-05-24 21:29:46 +00:00
sotaro 82b27117d3 Bug 1704000 - Update reftest.list r=jmaher,gfx-reviewers,bradwerth
Update reftest.list for enabling reftest on Android emulator.

Differential Revision: https://phabricator.services.mozilla.com/D115780
2021-05-24 21:07:40 +00:00
Dorel Luca d139ef646e Backed out changeset 32ad092ecb38 (bug 1711564) for MDA failures in dom/media/webrtc/tests/mochitests/test_getUserMedia_trackEnded.html. CLOSED TREE 2021-05-25 00:31:59 +03:00
Mike Hommey 2072d3a612 Bug 1711834 - Let the compiler generate the Matrix4x4Typed copy assignment operator. r=mattwoodrow
This avoids GCC complaining about the case where doing `m = m` would
memcpy from an address onto itself.

Differential Revision: https://phabricator.services.mozilla.com/D115460
2021-05-24 20:58:11 +00:00
sotaro 3033ee4b0e Bug 1704000 - Enable reftests on Android emulator for SW-WR r=jmaher,gfx-reviewers,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D115779
2021-05-24 20:57:26 +00:00
Joel Maher 3ad9f06697 Bug 1710923 - migrate windows 7x32 debug tests to windows 10x32. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D115017
2021-05-24 20:06:43 +00:00
Ed Lee 3c8062040a Bug 1711858 - Avoid "Fire starts here" from getting hidden by noodles r=pdahiya
Remove explicit section-left children widths to allow the parent to flex with a static width section-main for initial screen. Clean up some breakpoint sizing with percent/viewport widths.

Differential Revision: https://phabricator.services.mozilla.com/D115546
2021-05-24 19:01:16 +00:00
Olli Pettay 9138dbca37 Bug 1711564, MediaStreamTrack should pass owner global to the DOMEventTargetHelper, r=jib
Differential Revision: https://phabricator.services.mozilla.com/D115427
2021-05-24 18:27:21 +00:00
Dorel Luca 08f063f4c8 Backed out changeset 2c95330ad7c7 (bug 1711437) for Devtools failures in devtools/client/inspector/markup/test/browser_markup_shadowdom.js. CLOSED TREE 2021-05-24 23:01:46 +03:00
Mike Kaply e528cec2a2 Bug 1692159 - Disable saved password preference if disabled by policy. r=mixedpuppy,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D115655
2021-05-24 17:30:33 +00:00
Emilio Cobos Álvarez 510cae01ca Bug 1711437 - Don't EnsureUniqueInner from the cssRules getter. r=layout-reviewers,jfkthame
Instead, fix up the various content data structures when the stylesheet
is mutated. This makes reading a stylesheet not disable style sharing.

Differential Revision: https://phabricator.services.mozilla.com/D115203
2021-05-24 17:18:44 +00:00
Morgan Reschenberg 7bc169515a Bug 1710748: Return button menus when form controls are queried from rotor r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D115429
2021-05-24 17:02:46 +00:00
Markus Stange 4cb5ee5a2d Bug 1712358 - Call NotifyWait() when the native event loop goes idle. This fixes unintended BHR hang reports when we are in a nested native event loop, such as when a menu is open. r=florian
The 'BHR-detected hang' markers in these profiles show the difference:
Before: https://share.firefox.dev/34anZE5
After: https://share.firefox.dev/3udb8vq

Differential Revision: https://phabricator.services.mozilla.com/D115764
2021-05-24 17:02:44 +00:00
Morgan Reschenberg 288a4006cf Bug 1710742: Modify VO checkbox search key to work with quick nav r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D115430
2021-05-24 17:02:31 +00:00
Bryce Seager van Dyk a4dbbb7a9c Bug 1706164 - Make MediaKeys interact with EncryptedMediaChild to check output protection status. r=alwu
This changes the MediaKeys to actually service output protection status queries
by sending those queries to the EncryptedMediaChild actor and handling responses
from the actor. These interactions are done via the observer service.

Differential Revision: https://phabricator.services.mozilla.com/D115418
2021-05-24 16:50:20 +00:00
Bryce Seager van Dyk d9f34a3187 Bug 1706164 - Use webrtc screen and window sharing data in EncryptedMediaChild to determine if media may be captured. r=alwu
This expands EncryptedMediaChild to be able to query and track the information
now shared by webrtcUI around screen and window sharing. The actor will use this
information to report to observers if capture is possible or not.

For now we use a coarse approach where we only track if the screen or any window
is shared, but in future I plan to have a more granular tracking of windows.

Differential Revision: https://phabricator.services.mozilla.com/D115417
2021-05-24 16:50:19 +00:00
Bryce Seager van Dyk 16f81a9237 Bug 1706164 - Share screen and window sharing status from webrtcUI via sharedData. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D115416
2021-05-24 16:50:19 +00:00
Bryce Seager van Dyk acbeaeeb24 Bug 1706164 - Plumb QueryOutputProtectionStatus requests from the CDM to MediaKeys. r=alwu
This patch plumbs the QueryOutputProtectionStatus call from the CDM up to the
MediaKeys. This is plumbing is done to get the request to an endpoint of Gecko
C++ code, and future patches will do further plumbing in order to complete the
query.

After the first query is complete, we cache the result in a CDM's
ChromiumCDMParent and update the value only when notified of changes from the
MediaKeys. This has the benefit of that checks after the first don't need to
touch the main thread. This avoids adding more main thread work, and means we
can still complete checks in a timely fashion even if the main thread is running
hot.

We cache in the parent rather than the child so that the parent can make
decisions on how to handle requests even if the CDM machinery is not yet fully
initialized. In future it may make sense to move the caching to the child, but
I'd prefer to do this only after other refactoring of the machinery which I
consider out of scope for this bug.

Future patches will ensure listeners are in place such that the cached data is
updated when updates are received further up the stack.

Differential Revision: https://phabricator.services.mozilla.com/D115415
2021-05-24 16:50:18 +00:00
Gijs Kruitbosch 2d2e51253d Bug 1700976 - do not prompt for externally-opened web- or extension-handled 'external' protocols, r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D115478
2021-05-24 16:02:50 +00:00
Alexandre Poirot fa827a1cbe Bug 1709792 - [devtools] Support target switching in har automation. r=bomsy
* Stop memoizing web console front
* track navigations via DOCUMENT_EVENT's dom-complete
* await for HarAutomation async initialization from toolbox codebase

These changes help fix browser_harautomation_simple.js.
But this isn't enough as will-navigate can easily be missed.

Differential Revision: https://phabricator.services.mozilla.com/D114464
2021-05-24 15:37:33 +00:00
Alexandre Poirot 3c37b9918b Bug 1709792 - [devtools] Remove har's toolbox overlay. r=bomsy
This introduces uncessary complexity and makes it uterly complex to wait
for HarAutomation's async initialization.
Its init isn't async yet.

Differential Revision: https://phabricator.services.mozilla.com/D114837
2021-05-24 15:37:32 +00:00
Alexandre Poirot 438cc8620d Bug 1709792 - [devtools] Pass around commands in har automation. r=bomsy
Make this codebase fully embrace commands and stop being target/toolbox oriented.

Differential Revision: https://phabricator.services.mozilla.com/D114836
2021-05-24 15:37:32 +00:00
Michael Cooper 17bed3c2b3 Bug 1711218 - Don't undo user pref changes when Normandy experiments end r=Gijs
When a user changes a preference involved in a Normandy experiment, we no
longer immediately end the experiment. This caused a problem because Normandy
didn't check for user changes when resetting prefereces at the end of an
experiment. As a result it would reset all preferences back to their original
values on the specified branch, even if that would mean changing a preference
it knows the user had modified.

This change causes Normandy to never reset the user branch of an experiment
preference that the user has changed. This is true even if the user changes the
preference away from the experimental value and then back to it.

Differential Revision: https://phabricator.services.mozilla.com/D115713
2021-05-24 15:36:16 +00:00
Narcis Beleuzu b41573863c Bug 1711117 - Disable browser_bookmark_add_tags.js on Linux for frequent failures. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D115759
2021-05-24 15:25:39 +00:00
Alexandre Poirot a13bc1e7d2 Bug 1712567 - [devtools] Cover console persist feature with cross process navigation. r=nchevobbe
About browser_jsterm_autocomplete_getters_cache, we weren't correctly waiting
for popup to close because of the reload. Instead we probably worked around intermittents
by closing the popup explicitly before the reload.
But that creates other issue, where the reload may close the popup *after* we do Ctrl+Space.
(this patch doesn't trigger any issue with this test, but better fix that)

Differential Revision: https://phabricator.services.mozilla.com/D112231
2021-05-24 15:19:22 +00:00
Markus Stange 14d49253c8 Bug 1710474 - Don't roll up native context menus in response to wheel events. r=mac-reviewers,spohl,bradwerth
I didn't add this check originally because the thinking was that macOS wouldn't dispatch
these events to us anyway as long as a menu is open.
However, our menu opening is asynchronous. So we can still get wheel events between the
mousedown that asks to open the menu, and the delayed perform which then ends up opening
the menu for real. We don't want to cancel opening when we get these straggler events.

Differential Revision: https://phabricator.services.mozilla.com/D115763
2021-05-24 15:14:04 +00:00
Andi-Bogdan Postelnicu 0194d37673 Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio
Updated with rustfmt 1.4.36-stable (7de6968 2021-02-07)

Differential Revision: https://phabricator.services.mozilla.com/D115805
2021-05-24 15:08:48 +00:00
Andi-Bogdan Postelnicu 1cf28e7475 Bug 1519636 - Reformat recent changes to the Google coding style. r=emilio
Updated with clang-format version 12.0.0 (taskcluster-KEgO7qdgQ8uaewA6NkRnRA)

Differential Revision: https://phabricator.services.mozilla.com/D115804
2021-05-24 15:08:47 +00:00
Eden Chuang 0447732333 Bug 1584007 - check ClientSource existence r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D85362
2021-05-24 13:55:08 +00:00
Eden Chuang e1283fcd46 Bug 1584007 - FutureClientSourceParent should keep ClientManagerService alive r=asuth
The strong reference will be dropped when FutureClientSourceParent is removed,
and we guarantee that all FutureClientSourceParents will either be removed or
replaced with a ClientSourceParent (or at least this is a guarantee that's
supposed to be true).

Differential Revision: https://phabricator.services.mozilla.com/D68041
2021-05-24 13:55:07 +00:00
Eden Chuang 3e3456e73e Bug 1584007 - let ClientChannelHelperParent manage FutureClientSourceParent lifetime r=dom-workers-and-storage-reviewers,mattwoodrow,asuth
ClientChannelHelperParent is the thing creating the ClientInfos which aren't
backed by existing ClientSources, so it may make sense for CCHP to tell the
ClientManagerService (CMS) to "expect" or "forget" a "future"
ClientSource(Parent).

When such a ClientInfo is created, CCHP notifies the CMS that a future
ClientSource may be created. This notification has to be observed before any
ClientHandles try to query CMS to a ClientSourceParent, which is the case
because the notification as well as ClientHandleParent constructors occur over
PBackground, and the notification sending method is called first.

CMS is told to forget the future ClientSource whenever a redirect occurs that
would result in the creation of a new ClientSource (i.e. a new ClientInfo). It's
also possible that the ClientInfo's LoadInfo's channel is cancelled. To account
for this, CHCP stores the most recent ClientInfo it's created and tells CMS
to _possibly_ forget the associated future ClientSource in its destructor. It's
possible that the channel completed its load, in which case this notification
is a no-op. This also relies on CHCP being destroyed after the reserved
ClientSource has a chance to both be created and register its
ClientSourceParent.

Differential Revision: https://phabricator.services.mozilla.com/D66529
2021-05-24 13:55:07 +00:00
Eden Chuang 9ca5730156 Bug 1584007 - allow ClientManager to register "future" ClientSources r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D66520
2021-05-24 13:55:06 +00:00
Eden Chuang 2ed195d384 Bug 1584007 - let ClientHandleParents wait on FutureClientSourceParents r=dom-workers-and-storage-reviewers,mattwoodrow,asuth
Differential Revision: https://phabricator.services.mozilla.com/D66154
2021-05-24 13:55:06 +00:00
Eden Chuang 883943e462 Bug 1584007 - let ClientManagerService store FutureClientSourceParent r=dom-workers-and-storage-reviewers,mattwoodrow,asuth
The changes only make it possible for ClientManagerService to store
FutureClientSourceParents, but it will not actually store them until
following changesets.

Differential Revision: https://phabricator.services.mozilla.com/D66145
2021-05-24 13:55:06 +00:00
Eden Chuang e48c6ff8ce Bug 1584007 - initial implementation of FutureClientSourceParent r=dom-workers-and-storage-reviewers,mattwoodrow,asuth
Also implements SourceTableEntry and nsIDHasher to switch ClientManagerService's
nsDataHashTable to a mozilla::HashMap<nsID, SourceTableEntry> in following
changesets.

Differential Revision: https://phabricator.services.mozilla.com/D66144
2021-05-24 13:55:05 +00:00
Michelle Goossens f5a803b567 Bug 1711500 - Remove checks for gProton and gProtonDoorhangers smart pref getters from tests r=Gijs,robwu
Differential Revision: https://phabricator.services.mozilla.com/D115748
2021-05-24 13:46:39 +00:00
ffxbld bf49b309c8 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D115803
2021-05-24 13:18:18 +00:00