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

717088 Коммитов

Автор SHA1 Сообщение Дата
Masayuki Nakano dd8f12dbc3 Bug 1647556 - part 9-2: Make `WSRunObject::InsertBreak()` stop using `FindNearestFragment()` r=m_kato
It removes some invisible leading and/or trailing white-spaces when it inserts
`<br>` element into the invisible white-space sequence.  It currently checks
whether the insertion point is in invisible leading and trailing white-spaces
or not with `FindNearestFragment()`, but we can do same thing with
comparing the insertion point with the result of
`TextFragmentData::GetInvisibleLeadingWhiteSpaceRange()` and
`TextFragmentData::GetInvisibleLeadingWhiteSpaceRange()`.  However, current
implementation does not make sense because:
- It checks trailing white-spaces with `!IsEndOfHardLine()` and
  `IsStartOfHardLine()`, but this means that it does ignores invisible
   white-spaces which are the only content in a line.
- It checks leading white-spaces with `!IsStartOfHardLine()` and
  `IsEndOfHardLine()`, so, this also ignores invisible white-spaces which
  are the only content in a line.
- The important thing of the logic is prevent that invisible leading and
  trailing white-spaces become visible with new `<br>` element, but this
  is done only for trailing white-spaces.

Differential Revision: https://phabricator.services.mozilla.com/D82283
2020-07-09 09:44:41 +00:00
Sebastian Streich d806bac0e0 Bug 1646768 - Add Telemetry for MCB-Download Blocking r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D80215
2020-07-09 09:58:52 +00:00
André Bargull 4d1d96c31a Bug 1534160 - Part 2: Cherry-pick patch for Android time zone detection. r=jwalden
Cherry-pick the commit from <https://github.com/unicode-org/icu/pull/605>.

Depends on D82545

Differential Revision: https://phabricator.services.mozilla.com/D82546
2020-07-09 09:52:26 +00:00
André Bargull dc07d1aa1e Bug 1534160 - Part 1: Re-run ICU updater to pick up latest changes to ICU 67 maintenance branch. r=jwalden
The change itself isn't important for us, because we don't use ICU's make-files,
but avoids confusion why additional changes were applied when running the update
script.

Differential Revision: https://phabricator.services.mozilla.com/D82545
2020-07-07 21:05:03 +00:00
pbz 82e43c13e5 Bug 1650794 - Extended SubDialogManager to support queuing dialogs. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D82406
2020-07-09 10:10:26 +00:00
pbz 650149a70d Bug 1650794 - Refactor subdialogs.js to reusable SubDialog.jsm. r=Gijs,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D82405
2020-07-09 10:10:18 +00:00
Mark Banner 7665b32b2b Bug 1650756 - When upgrading app-provided search engines, ensure the modern configuration is properly re-applied. r=daleharvey
Depends on D82583

Differential Revision: https://phabricator.services.mozilla.com/D82584
2020-07-09 10:19:03 +00:00
Mark Banner f92e442128 Bug 1650756 - Avoid translating any params from the search engine configuration to and from URLSearchParams an additional time. r=daleharvey
Currently we're converting the configuration url parameters to strings in makeEngineFromConfig via URLSearchParams. We then pass them through URLSearchParams again in _initEngineURLFromMetaData.

Depends on D82525

Differential Revision: https://phabricator.services.mozilla.com/D82583
2020-07-09 10:14:22 +00:00
Mark Banner e70637b6d9 Bug 1632448 - Remove now unused confirm and extensionID parameters for nsISearchService.addEngine, and rename it. r=daleharvey
Renaming to addOpenSearchEngine to make it more explicit about what it is actually doing.

Depends on D82524

Differential Revision: https://phabricator.services.mozilla.com/D82525
2020-07-09 09:56:25 +00:00
Mark Banner 6cd1a39735 Bug 1632448 - Remove AddSearchProvider implementation. r=baku,daleharvey
Depends on D82350

Differential Revision: https://phabricator.services.mozilla.com/D82524
2020-07-09 09:52:24 +00:00
Mark Banner d3b5d95706 Bug 1637744 - Merge getEngineParams into functions in SearchEngine. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D82350
2020-07-09 09:51:58 +00:00
Mark Banner 081c72b8b1 Bug 1637744 - Add more tests to cover various search engine parameter options. r=daleharvey
These cover some gaps in coverage for the existing getEngineParams.

Differential Revision: https://phabricator.services.mozilla.com/D82349
2020-07-09 09:50:29 +00:00
Mark Banner 009c9b0686 Bug 1637744 - Create a new function for adding search engines, and a separate function for policy engines. r=daleharvey
The main aim here is to move the call to getEngineParams that currently happens before addEngineWithDetails. This is moved into addEngineWithDetails, so that it is next to where the search engine is actually created. This gets ready for the next step which will be to merge getEngineParams with the SearchEngine initWithMetadata and associated calls.

The side effects are that we need a specific function for policy engines to use, and that we now have only tests using addEngineWithDetails.

Differential Revision: https://phabricator.services.mozilla.com/D82348
2020-07-09 09:23:10 +00:00
Andreea Pavel 4d223b739e Backed out 3 changesets (bug 1645234) for failing browser_webconsole_requestStorageAccess_errors.js on a CLOSED TREE
Backed out changeset ad1f8a4d64cf (bug 1645234)
Backed out changeset 6de9007aa306 (bug 1645234)
Backed out changeset 87d5d468c7f2 (bug 1645234)
2020-07-09 13:05:14 +03:00
Tooru Fujisawa be67ca2eb8 Bug 1651545 - Update jsparagus for bug 1642476. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D82874
2020-07-09 09:41:04 +00:00
Nicolas Chevobbe cf209b6c53 Bug 1644186 - Add server support for Error messages resources. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D81356
2020-07-09 08:55:49 +00:00
Mirko Brodesser abe1457b3b Bug 1649121: part 29) Rename and simplify arguments of `InsertContents`. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D82662
2020-07-09 05:44:18 +00:00
Mirko Brodesser 4560c59527 Bug 1649121: part 28) Add `InsertContents`. r=masayuki
Its arguments are renamed in the following review.

Differential Revision: https://phabricator.services.mozilla.com/D82661
2020-07-09 05:41:48 +00:00
Mirko Brodesser 637ad4a65b Bug 1649121: part 27) Add `MoveCaretOutsideOfLink`. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D82520
2020-07-08 12:14:16 +00:00
Mirko Brodesser dcff5a5f40 Bug 1649121: part 26) Move `CollectTopMostChildContentsCompletelyInRange`. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D82518
2020-07-08 12:15:06 +00:00
Mirko Brodesser 47b1f0e01f Bug 1649121: part 25) Factor detecting invisible `<br>` out. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D82517
2020-07-09 05:39:05 +00:00
Johann Hofmann 4d4f4b4de2 Bug 1645234 - Add a test for document.requestStorageAccess error messages. r=nchevobbe
Depends on D79788

Differential Revision: https://phabricator.services.mozilla.com/D80972
2020-07-09 08:55:05 +00:00
Johann Hofmann cb1b24c051 Bug 1645234 - Add learn more link to storage access API warnings. r=nchevobbe
Depends on D79597

Differential Revision: https://phabricator.services.mozilla.com/D79788
2020-07-09 08:54:58 +00:00
Johann Hofmann c33110dbf2 Bug 1645234 - Add more warnings to document.requestStorageAccess(). r=annevk,englehardt,baku
The only common failure case that's not being warned about now is when the user
rejected the prompt, which I think is expected behavior.

Differential Revision: https://phabricator.services.mozilla.com/D79597
2020-07-09 08:54:50 +00:00
Florin Strugariu f0e6aa38e1 Bug 1531358 - [meta] ensure windows 10 ux machines running performance are only running on mozilla-central/try as tier-2 r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D81669
2020-07-09 09:04:26 +00:00
Mark Banner 8fd10a1111 Bug 1649493 - Fix intermittent failure in test_remove_profile_engine.js - ensure we correctly wait for the cache to save. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D82228
2020-07-09 08:04:47 +00:00
Masayuki Nakano 7ffb8f8c90 Bug 1647556 - part 9-1: Make `WSRunObject::InsertBreak()` use `TextFragmentData::CreateWSFragmentForVisibleAndMiddleOfLine()` like previous patch r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D82282
2020-07-09 06:32:24 +00:00
Masayuki Nakano 3092ad9e61 Bug 1650972 - Fix wrong argument check of `EditorBase::AppendNodeToSelectionAsRange()` r=m_kato
This is just a mistake of my previous change.

Differential Revision: https://phabricator.services.mozilla.com/D82655
2020-07-09 06:46:19 +00:00
Razvan Maries 05fa077757 Backed out 5 changesets (bug 1650996, bug 1649974) for perma failures on Android 7.0. CLOSED TREE
Backed out changeset 8f8174ba409d (bug 1650996)
Backed out changeset 374598f9c37a (bug 1650996)
Backed out changeset 236757acc073 (bug 1650996)
Backed out changeset 89d5cabfa2df (bug 1649974)
Backed out changeset 6e475ddbd18c (bug 1649974)
2020-07-09 10:33:45 +03:00
Jan de Mooij c18a778773 Bug 1651037 part 8 - Support nursery-allocated objects in the transpiler. r=iain
Depends on D82673

Differential Revision: https://phabricator.services.mozilla.com/D82674
2020-07-08 18:38:10 +00:00
Jan de Mooij 506eea20ec Bug 1651037 part 7 - Copy the object list from snapshot to script after compilation. r=iain
Depends on D82672

Differential Revision: https://phabricator.services.mozilla.com/D82673
2020-07-08 17:42:18 +00:00
Jan de Mooij abab817ad6 Bug 1651037 part 6 - Make MGuardProto work with MNurseryObject. r=evilpie
Adds MGuardNullProto for the nullptr case.

Depends on D82671

Differential Revision: https://phabricator.services.mozilla.com/D82672
2020-07-08 11:01:13 +00:00
Jan de Mooij e81bd0d0ab Bug 1651037 part 5 - Change some MIR instructions to prepare for MNurseryObject use. r=iain,evilpie
WrappedFunction only needs the JSFunction* for natives. This way we can still
optimize scripted calls to nursery-allocated functions.

Depends on D82670

Differential Revision: https://phabricator.services.mozilla.com/D82671
2020-07-09 07:02:25 +00:00
Jan de Mooij db18f35257 Bug 1651037 part 4 - Add list of nursery objects to WarpSnapshot. r=iain
Depends on D82669

Differential Revision: https://phabricator.services.mozilla.com/D82670
2020-07-08 16:38:35 +00:00
Jan de Mooij 0cfbbdab33 Bug 1651037 part 3 - Add MNurseryObject. r=iain
Depends on D82668

Differential Revision: https://phabricator.services.mozilla.com/D82669
2020-07-08 16:23:33 +00:00
Jan de Mooij 3ba7af27c1 Bug 1651037 part 2 - Add list of nursery objects to IonScript. r=iain,jonco
At this point the list is always empty.

Depends on D82667

Differential Revision: https://phabricator.services.mozilla.com/D82668
2020-07-08 14:38:11 +00:00
Jan de Mooij 4a7d563ddd Bug 1651037 part 1 - Clean up IonScript initialization in CodeGenerator::link a bit. r=iain
Initialize the JitScript's IonScript at the end instead of hiding it somewhere
in the middle.

Differential Revision: https://phabricator.services.mozilla.com/D82667
2020-07-08 14:29:14 +00:00
James Teh ba7d805a62 Bug 1650590: A11y COM handler: Use CoTaskMemAlloc/Free for row/column header ids arrays when returned by IGeckoBackChannel::Refresh. r=MarcoZ
DynamicIA2Data can be built to be transmitted in two different ways:

1. As part of the payload included in the stream when an accessible is marshaled; or
2. As an out parameter returned by IGeckoBackChannel::Refresh().

DynamicIA2Data includes arrays for row/column header ids.
Normally, such arrays would be allocated by CoTaskMemAlloc and freed by CoTaskMemFree.
However, in the first case, the struct is actually marshaled by RPC encoding functions, not by COM itself.
This means we must use midl_user_allocate/free, lest we crash.
We previously used midl_user_allocate/free for the second case as well.
Unfortunately, it turns out that this too causes crashes.

To fix this, we now use different memory allocation functions depending on how the struct is transmitted.

This patch also cleans up the old DynamicIA2Data in the client before calling IGeckoBackChannel::Refresh.
Previously, we didn't do this, which would have resulted in a leak.

Differential Revision: https://phabricator.services.mozilla.com/D82823
2020-07-09 06:56:24 +00:00
Daisuke Akatsuka 6959f8e469 Bug 1625930: Add a test for count function of EventEmitter instance r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D82802
2020-07-08 23:20:09 +00:00
Daisuke Akatsuka 4e9744b43d Bug 1625930: Add test getAllResources of ResourceWatcher API. r=ochameau
Depends on D78242

Differential Revision: https://phabricator.services.mozilla.com/D82150
2020-07-08 22:58:41 +00:00
Daisuke Akatsuka 09ed9781f1 Bug 1625930: Add test ResourceWatcher for STYLESHEET type. r=ochameau
Depends on D78241

Differential Revision: https://phabricator.services.mozilla.com/D78242
2020-07-08 15:13:05 +00:00
Daisuke Akatsuka 80b6400e07 Bug 1625930: Apply ResourceWatcher to source map. r=ochameau
Depends on D78240

Differential Revision: https://phabricator.services.mozilla.com/D78241
2020-07-08 23:07:33 +00:00
Daisuke Akatsuka d1f58c00a9 Bug 1625930: Apply ResourceWatcher to StyleEditor. r=ochameau
Depends on D78239

Differential Revision: https://phabricator.services.mozilla.com/D78240
2020-07-09 04:37:54 +00:00
Daisuke Akatsuka 1498e73db8 Bug 1625930: Implement ResourceWatcher for stylesheet. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D78239
2020-07-08 15:13:12 +00:00
Daisuke Akatsuka 7ad61c2671 Bug 1625930: Fire StyleSheetApplicableStateChanged event explicitly if the stylesheet is getten from the cache. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D81305
2020-07-08 15:13:03 +00:00
Jean-Yves Avenard 090a977b95 Bug 1650277 - P3. Use a media taskqueue with the MediaManager. r=jib
Rename PostTask methods into Dispatch to be more in-line with the current naming convention as PostTask pretty much always referred to the MessageLoop's method.

Differential Revision: https://phabricator.services.mozilla.com/D82159
2020-07-09 06:12:10 +00:00
Jean-Yves Avenard 7920483bbe Bug 1650277 - P2. Ensure the CubebDeviceEnumerator is shutdown after the MTAThread. r=kinetik
On Windows the CubebDeviceEnumerator needs to run on an MTA thread; to achieve that goal we use the EnsureMTA utility.
EnsureMTA relies on a MTA thread to exist which will be destroyed when XPCOM shuts down ; as such we must shutdown the CubebDeviceEnumerator during the same shutdown phase.

ClearOnShutdown registrars are processed in LIFO order, so as the CubebDeviceEnumerator constructor uses EnsureMTA we are guaranteed that the CubebDeviceEnumerator clearOnShutdown will be processed before the EnsureMTA thread shutdown.
The CubebDeviceEnumerator needs to be shutdown before cubeb; which is also guaranteed as the cubeb instance is destroyed during the final XPCOM shutdown stage.

Fix GetSafety() thread-safety.

CubebDeviceEnumerator should be a static non-refcounted singleton on the stack really which would made the code much simpler, unfortunately its gtests rely on having the Shutdown method present to force re-scanning the devices and work with the mock cubeb.

Differential Revision: https://phabricator.services.mozilla.com/D82158
2020-07-09 06:11:57 +00:00
Jean-Yves Avenard f3f56245eb Bug 1650277 - P1. Let CubebDeviceEnumerator worry about MTA requirements. r=kinetik
Ths helps not having to worry about how to create the thread; which could be probablematic when running off a thread pool.

Differential Revision: https://phabricator.services.mozilla.com/D82142
2020-07-09 06:11:45 +00:00
Jean-Yves Avenard 8c4180fca5 Bug 1650996 - P3. Have RemoteDecoderManagerChild use a TaskQueue over a media threadpool. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D82503
2020-07-09 06:00:53 +00:00
Jean-Yves Avenard a3e2ecf7c4 Bug 1650996 - P2. Always initialise the RemoteDecoderChild manager thread. r=mjf
This allows to simplify the lifetime management off the RemoteDecoderModule's mManagerThread member.

Differential Revision: https://phabricator.services.mozilla.com/D82502
2020-07-09 05:57:22 +00:00