Commit Graph

666437 Commits

Author SHA1 Message Date
André Bargull
052b93329d Bug 1533328 - Part 2: Move ICU time zone state into js::DateTimeInfo. r=jorendorff
This ensures the ICU time zone state is only resync'ed when an actual time zone
change was detected. Without this change the following script will resync the
ICU time zone state in each call to Intl.DateTimeFormat:
```
// js::DateTimeInfo is here in its initial state where no time zone info has
// been retrieved yet.

for (var i = 0; i < 10; ++i) {
  // Creating a new Realm triggers a time zone check. Because no time zone
  // info is yet available, a forced reset of the ICU time zone state is
  // requested.
  newGlobal();

  // The ICU time zone state was just resetted above, so this call will again
  // fetch the current system time zone.
  new Intl.DateTimeFormat();
}
```

Differential Revision: https://phabricator.services.mozilla.com/D37248

--HG--
extra : moz-landing-system : lando
2019-08-20 09:07:29 +00:00
André Bargull
c8cbf8045e Bug 1533328 - Part 1: Avoid calling system time functions during start-up to avoid main-thread I/O. r=jorendorff
- Changes `DateTimeInfo::internalUpdateTimeZoneAdjustment` to set a flag to
  request an update instead of directly calling the system time functions.
- DateTimeInfo functions which require a valid time zone have been modified to
  call the new `acquireLockWithValidTimeZone` helper.

Differential Revision: https://phabricator.services.mozilla.com/D37247

--HG--
extra : moz-landing-system : lando
2019-08-20 09:07:27 +00:00
preyunk
7003b8f5da Bug 1560284 - Long study names (over 100 chars) and string values are not fully displayed on about:studies r=mythmon
Differential Revision: https://phabricator.services.mozilla.com/D41746

--HG--
extra : moz-landing-system : lando
2019-08-13 16:59:37 +00:00
André Bargull
a7b67b5d56 Bug 1402379 - Part 4: Remove no longer needed #ifdef in Intl code. r=jwalden
Depends on D41770

Differential Revision: https://phabricator.services.mozilla.com/D41771

--HG--
extra : moz-landing-system : lando
2019-08-19 18:42:25 +00:00
André Bargull
d741382cd1 Bug 1402379 - Part 3: Remove ICUStubs.h file. r=jwalden
Depends on D41769

Differential Revision: https://phabricator.services.mozilla.com/D41770

--HG--
extra : moz-landing-system : lando
2019-08-19 18:39:04 +00:00
André Bargull
c8b6bf7f43 Bug 1402379 - Part 2: Don't build Intl sources when ENABLE_INTL_API is not set. r=jwalden
Depends on D41767

Differential Revision: https://phabricator.services.mozilla.com/D41769

--HG--
extra : moz-landing-system : lando
2019-08-19 18:37:50 +00:00
André Bargull
b24e1821b8 Bug 1402379 - Part 1: Remove unused and unmaintainted jshint directives. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D41767

--HG--
extra : moz-landing-system : lando
2019-08-19 18:35:00 +00:00
Jon Coppeard
03599eef81 Bug 1564012 - Add fuzz test for cross compartment pointers from debugger frame generator info to scripts r=jimb?
Differential Revision: https://phabricator.services.mozilla.com/D40601

--HG--
extra : moz-landing-system : lando
2019-08-19 19:51:13 +00:00
Tarek Ziadé
2097876b46 Bug 1572404 - [mozprofile] install addon with browser_specific_settings r=whimboo
webextensions now uses "browser_specific_settings" instead of "applications" in
the manifest file. This patch make mozprofile look for both places.

Differential Revision: https://phabricator.services.mozilla.com/D42457

--HG--
extra : moz-landing-system : lando
2019-08-20 09:16:54 +00:00
Mirko Brodesser
d465357990 Bug 1574912: part 4) Split nsPlainTextSerializer::MaybeReplaceNbspsForOutput out of nsPlainTextSerializer::Output method. r=hsivonen
In order to clarify what `Output` does.

Differential Revision: https://phabricator.services.mozilla.com/D42522

--HG--
extra : moz-landing-system : lando
2019-08-20 08:03:52 +00:00
Mirko Brodesser
0c4fd744e7 Bug 1574912: part 3) Remove unread mStartedOutput member. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D42521

--HG--
extra : moz-landing-system : lando
2019-08-20 08:03:43 +00:00
Mirko Brodesser
231ce6e93d Bug 1574912: part 2) Rename nsPlainTextSerializer::IsInPre, IsHTMLBlock and IsElementBlock. r=hsivonen
In order to clarify their purpose.

Differential Revision: https://phabricator.services.mozilla.com/D42520

--HG--
extra : moz-landing-system : lando
2019-08-20 08:05:21 +00:00
Mirko Brodesser
c7bcfd69de Bug 1574912: part 1) Slightly simplify nsPlainTextSerializer::AddToLine. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D42519

--HG--
extra : moz-landing-system : lando
2019-08-20 08:03:20 +00:00
Julian Descottes
79e6048315 Bug 1539979 - Force devtools to use a chrome frame in intermittent mochitests r=ochameau
Depends on D40995

I get a 10% failure rate on try for those two tests, but I haven't managed to get
a single failure locally so I couldn't identify the root cause yet. I would like
to fix them in a follow up.

Differential Revision: https://phabricator.services.mozilla.com/D40997

--HG--
extra : moz-landing-system : lando
2019-08-20 07:34:57 +00:00
Julian Descottes
7a59b5f5de Bug 1539979 - Add delay in various DevTools mochitests after switching hosts r=ochameau
Depends on D40994

Switching hosts (especially going from docked to window) seems more async than before.
I would like to work on fixing those in a follow up.

Differential Revision: https://phabricator.services.mozilla.com/D40995

--HG--
extra : moz-landing-system : lando
2019-08-20 07:28:41 +00:00
Julian Descottes
9d6c0680c0 Bug 1539979 - Fix eyedropper tests for DevTools in content frame r=ochameau
Depends on D40993

I don't fully understand the failures in this test on Linux.
The only way I could get it to pass for now was to force a window focus when the test runs in a window host.
Other OSes are fine, but without this, Linux is permafailing this.

I don't have a good linux env right now, so I would like to proceed with this and
fix it in a follow up.

Differential Revision: https://phabricator.services.mozilla.com/D40994

--HG--
extra : moz-landing-system : lando
2019-08-20 07:43:59 +00:00
Julian Descottes
b8fb3476e7 Bug 1539979 - Fix browser_inspector_search-filter_context-menu.js when running in content frame r=nchevobbe
Depends on D40992

In general, using `click()` seems less reliable when using a frame with type=content. I am not entirely sure why since the context menu is supposed to be created in the top window anyway

Differential Revision: https://phabricator.services.mozilla.com/D40993

--HG--
extra : moz-landing-system : lando
2019-08-20 06:23:56 +00:00
Julian Descottes
8365fb1ac2 Bug 1539979 - Fix browser_toolbox_toolbar_overflow.js when running in content frame r=nchevobbe
Depends on D40991

This test had some suspicious calls to async methods without await. Properly waiting on them avoids frequent intermittents when running in a content frame.

Differential Revision: https://phabricator.services.mozilla.com/D40992

--HG--
extra : moz-landing-system : lando
2019-08-20 06:22:38 +00:00
Julian Descottes
8415e17411 Bug 1539979 - Fix browser_toolbox_window_title_changes for DevTools in content frame r=nchevobbe
Depends on D40990

Differential Revision: https://phabricator.services.mozilla.com/D40991

--HG--
extra : moz-landing-system : lando
2019-08-20 06:21:50 +00:00
Julian Descottes
33776481fd Bug 1539979 - Fix HTML Tooltip test for content frames r=gl
Depends on D40989

I though I fixed this a few months ago, but there are still timing issues with the current test when using a frame with type=content.

Differential Revision: https://phabricator.services.mozilla.com/D40990

--HG--
extra : moz-landing-system : lando
2019-08-20 06:21:22 +00:00
Julian Descottes
af9f2466e7 Bug 1539979 - Attach SwatchBasedEditor shortcuts to tooltip window r=gl
Depends on D40988

This is not explicitly needed in this queue but I noticed this issue
while working on eyedropper test issues.

The top window might change when switching from docked to window hosts
so we should rather attach shortcut events to the regular window.

Differential Revision: https://phabricator.services.mozilla.com/D40989

--HG--
extra : moz-landing-system : lando
2019-08-20 06:17:00 +00:00
Julian Descottes
9e623bb5f5 Bug 1539979 - Use a frame with type=content for DevTools frames r=ochameau
This introduces a preference to load the DevTools toolbox
in a frame with type=content instead of type=chrome.
Having a preference will allow to keep the previous behavior in a
few intermittent tests, while we collect feedback on Nightly.

Differential Revision: https://phabricator.services.mozilla.com/D40988

--HG--
extra : moz-landing-system : lando
2019-08-20 05:55:54 +00:00
Frédéric Wang
9374c0be36 Bug 1574391 - Move old MathML reftests into layout/reftests/mathml. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D42276

--HG--
rename : layout/reftests/bugs/345563-sub.xhtml => layout/reftests/mathml/345563-sub.xhtml
rename : layout/reftests/bugs/345563-sup.xhtml => layout/reftests/mathml/345563-sup.xhtml
rename : layout/reftests/bugs/347348-1-ref.xhtml => layout/reftests/mathml/347348-1-ref.xhtml
rename : layout/reftests/bugs/347348-1.xhtml => layout/reftests/mathml/347348-1.xhtml
rename : layout/reftests/bugs/347496-1-ref.xhtml => layout/reftests/mathml/347496-1-ref.xhtml
rename : layout/reftests/bugs/347496-1.xhtml => layout/reftests/mathml/347496-1.xhtml
rename : layout/reftests/bugs/355548-1-ref.xml => layout/reftests/mathml/355548-1-ref.xml
rename : layout/reftests/bugs/355548-1.xml => layout/reftests/mathml/355548-1.xml
rename : layout/reftests/bugs/355548-2-ref.xml => layout/reftests/mathml/355548-2-ref.xml
rename : layout/reftests/bugs/355548-2.xml => layout/reftests/mathml/355548-2.xml
rename : layout/reftests/bugs/355548-3-ref.xml => layout/reftests/mathml/355548-3-ref.xml
rename : layout/reftests/bugs/355548-3.xml => layout/reftests/mathml/355548-3.xml
rename : layout/reftests/bugs/355548-4-ref.xml => layout/reftests/mathml/355548-4-ref.xml
rename : layout/reftests/bugs/355548-4.xml => layout/reftests/mathml/355548-4.xml
rename : layout/reftests/bugs/355548-5-ref.xml => layout/reftests/mathml/355548-5-ref.xml
rename : layout/reftests/bugs/355548-5.xml => layout/reftests/mathml/355548-5.xml
rename : layout/reftests/bugs/370692-1-ref.xhtml => layout/reftests/mathml/370692-1-ref.xhtml
rename : layout/reftests/bugs/370692-1.xhtml => layout/reftests/mathml/370692-1.xhtml
rename : layout/reftests/bugs/373533-1.xhtml => layout/reftests/mathml/373533-1.xhtml
rename : layout/reftests/bugs/373533-2.xhtml => layout/reftests/mathml/373533-2.xhtml
rename : layout/reftests/bugs/373533-3.xhtml => layout/reftests/mathml/373533-3.xhtml
rename : layout/reftests/bugs/393760-1-ref.xml => layout/reftests/mathml/393760-1-ref.xml
rename : layout/reftests/bugs/393760-1.xml => layout/reftests/mathml/393760-1.xml
rename : layout/reftests/bugs/393760-2-ref.xml => layout/reftests/mathml/393760-2-ref.xml
rename : layout/reftests/bugs/393760-2.xml => layout/reftests/mathml/393760-2.xml
rename : layout/reftests/bugs/414123-ref.xhtml => layout/reftests/mathml/414123-ref.xhtml
rename : layout/reftests/bugs/414123.xhtml => layout/reftests/mathml/414123.xhtml
extra : moz-landing-system : lando
2019-08-20 04:13:25 +00:00
yulia
723a427a35 Bug 1573780 - add targetFront to deprecated debugger client; r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D42497

--HG--
extra : moz-landing-system : lando
2019-08-19 15:10:36 +00:00
Nicolas Chevobbe
4707300839 Bug 1572414 - Fix hasNativeConsoleAPI when dealing with Sandboxes. r=yulia.
When the console parent actor is a ContentProcessTargetActor, we don't have
a reference to a `nsIDOMWindow`, but only to a Sandbox.
The code in `hasNativeConsoleAPI` would then silently fail when trying to
access `window.wrappedJSObject`, and keep `isNative` as `false`.
For now, we work around this by always returning true if we don't have
access to a `nsIDOMWindow`.

Differential Revision: https://phabricator.services.mozilla.com/D42506

--HG--
extra : moz-landing-system : lando
2019-08-20 08:29:07 +00:00
Paul Zuehlcke
df1ed9b01a Bug 1574483 - Updated Policies.jsm to use PermissionManager principal methods. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D42523

--HG--
extra : moz-landing-system : lando
2019-08-19 16:28:26 +00:00
Nicolas Silva
bd9e647162 Bug 1562091 - Partial backout of bug 1521027. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D42468

--HG--
extra : moz-landing-system : lando
2019-08-19 11:16:27 +00:00
Nicolas Silva
043a970708 Bug 1562091 - Add a reftest. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D42467

--HG--
extra : moz-landing-system : lando
2019-08-19 11:16:34 +00:00
Itiel
5efe209a73 Bug 1574847 - Fix the checkmark position on the main devtools options menu dropdown for RTL users r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D42518

--HG--
extra : moz-landing-system : lando
2019-08-20 08:12:22 +00:00
Henri Sivonen
017b63b057 Bug 1574892 - Make a reused TextDecoder apply the original BOM policy. r=annevk
Differential Revision: https://phabricator.services.mozilla.com/D42492

--HG--
extra : moz-landing-system : lando
2019-08-20 07:54:02 +00:00
Nicolas Chevobbe
2133561d3b Bug 1574763 - Localize the WarningGroup badge title. r=jdescottes.
Sadly the badge title wasn't localized at all, so we add a new
l10n string and use it in the component.

Differential Revision: https://phabricator.services.mozilla.com/D42517

--HG--
extra : moz-landing-system : lando
2019-08-20 05:52:40 +00:00
Tim Nguyen
cd45ead7b7 Bug 1572701 - Move login-item metadata after form action buttons in edit mode. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D42583

--HG--
extra : moz-landing-system : lando
2019-08-20 05:14:08 +00:00
Henri Sivonen
d4606e602c Bug 1574855 - Point to TextDecoder and TextEncoder in the doc comment for nsIScriptableUConv. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D42463

--HG--
extra : moz-landing-system : lando
2019-08-19 23:37:25 +00:00
Jason Laster
bc574b123c Bug 1574040 - Generalize the Debugger's worker redux management. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D42238

--HG--
rename : devtools/client/debugger/src/utils/workers.js => devtools/client/debugger/src/utils/threads.js
extra : moz-landing-system : lando
2019-08-20 04:41:41 +00:00
Boris Chiou
03853a6e87 Bug 1574957 - Clamp negative values for font-size-adjust animations. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D42586

--HG--
extra : moz-landing-system : lando
2019-08-20 01:30:43 +00:00
Robert Helmer
7b2e615378 Bug 1571472 - remove expectation of GreD and decrement XCurProcD omni jar file stats r=mconley
Corroborator.jsm no longer causes file I/O on early startup before user input is possible.

Depends on D41693

Differential Revision: https://phabricator.services.mozilla.com/D42585

--HG--
extra : moz-landing-system : lando
2019-08-20 00:52:25 +00:00
Robert Helmer
b56ad07c90 Bug 1571472 - use idle dispatch to start up corroborator r=bdanforth
Differential Revision: https://phabricator.services.mozilla.com/D41693

--HG--
extra : moz-landing-system : lando
2019-08-20 00:48:41 +00:00
Robert Helmer
0b0731ec85 Bug 1571472 - use async I/O for checking corrupt omni jar r=bdanforth
Differential Revision: https://phabricator.services.mozilla.com/D41692

--HG--
extra : moz-landing-system : lando
2019-08-20 00:48:10 +00:00
Robert Helmer
7058e3ddca Bug 1571472 - remove checks for corrupt system add-ons r=bdanforth
Per https://bugzilla.mozilla.org/show_bug.cgi?id=1515173#c24 we aren't going to sign these and they will instead move into omni.ja

Differential Revision: https://phabricator.services.mozilla.com/D41691

--HG--
extra : moz-landing-system : lando
2019-08-20 00:47:58 +00:00
Gerald Squelart
46f5e181ee Bug 1574821 - TestBaseProfiler generates more labels and markers - r=gregtatum
The main goal of these bugs is to move markers to a new storage, so I'm adding
lots of markers to TestBaseProfiler.
Also adding labels, easier to read unsymbolicated profiles, and gives a bit more
coverage too.
And adding a separate "fibonacci canceller" thread, which is needed on some
slower platforms (e.g., Linux 64 ASAN times out otherwise); as a bonus, this
tests AUTO_BASE_PROFILER_REGISTER_THREAD.

Differential Revision: https://phabricator.services.mozilla.com/D42448

--HG--
extra : moz-landing-system : lando
2019-08-20 03:29:53 +00:00
harry
4f4a15a1d5 Bug 1528593 - Rename UrlbarInput::value getter to untrimmedValue and textValue to value. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D42190

--HG--
extra : moz-landing-system : lando
2019-08-19 19:15:47 +00:00
Dzmitry Malyshau
9875e48074 Bug 1575008 - Update parking_lot dependency to 0.9.0 r=aosmond
Updating parking_lot would allow us to avoid dependency duplication when WebGPU tree is vendored.

Differential Revision: https://phabricator.services.mozilla.com/D42557

--HG--
rename : third_party/rust/parking_lot_core/src/thread_parker/wasm.rs => third_party/rust/parking_lot_core/src/thread_parker/wasm_atomic.rs
extra : moz-landing-system : lando
2019-08-19 21:28:51 +00:00
Masayuki Nakano
eeb6d0434a Bug 1572685 - part 13: Get rid of HTMLEditRules::mReturnInEmptyLIKillsList r=m_kato
`HTMLEditRules::mReturnInEmptyLIKillsList` stores value of
`editor.html.typing.returnInEmptyListItemClosesList` at construction, and it's
set to true unless the pref value is `"false"`.  However, this pref isn't
registered in anywhere (all.js, firefox.js, etc) nor used in comm-central
and BlueGriffon.

Even if I search the pref in the web, I don't see any information so that
this hidden pref must not be used anybody.  Therefore, this patch just removes
this member.

Differential Revision: https://phabricator.services.mozilla.com/D42262

--HG--
extra : moz-landing-system : lando
2019-08-20 01:53:35 +00:00
Masayuki Nakano
47e3467fa6 Bug 1572685 - part 12: Move HTMLEditRules::mListenerEnabled to EditSubActionData r=m_kato
This patch includes a logic change.  `HTMLEditRules::mListenerEnabled` is used
for storing 2 state.  One is that whether `HTMLEditRules` can handle the legacy
listener methods (they came from `nsIEditActionListener`) with `mHTMLEditor` or
not.  The other is that whether current edit sub-action handler temporarily
disables the listeners for performance or not.

For the former, we can check same result with `HTMLEditRules::mInitialized`
and `HTMLEditRules::mHTMLEditor`.

However, the latter, current design is obviously wrong.  Currently,
`HTMLEditRules::mListenerEnabled` is set only to `false` temporarily from
`WillInsertText()`, but the state will be affected to other edit sub-actions
which are nested by mutation event listeners.  So, currently,
`HTMLEditRules::mDocChangeRange` may not contain modified range caused by
nested edit sub-actions.

For solving this bug, this patch moves it into `EditSubActionData` rather
than `HTMLEditor` and `TopLevelEditSubActionData`.

Differential Revision: https://phabricator.services.mozilla.com/D42107

--HG--
extra : moz-landing-system : lando
2019-08-20 01:53:02 +00:00
Masayuki Nakano
d741d7dbe7 Bug 1572685 - part 11: Move HTMLEditRules::JoinOffset to EditorBase::EditSubActionData r=m_kato
The members of `HTMLEditRules` which are used only while `WillDoAction()` and
`DidDoAction()` are called should be moved to specific stack only struct
`EditorBase::EditSubActionData`.

Differential Revision: https://phabricator.services.mozilla.com/D42106

--HG--
extra : moz-landing-system : lando
2019-08-20 01:52:50 +00:00
Masayuki Nakano
f3a6c9590b Bug 1572685 - part 10: Get rid of HTMLEditRules::mUtilRange r=m_kato
`HTMLEditRules::mUtilRange` is used only for the argument of
`HTMLEditRules::UpdateDocChangeRange()`.  However, it does not need to be
a range instance since it compares its start and
`TopLevelEditSubAction::mChangedRange->StartRef()`, and its end and
`TopLevelEditSubAction::mChangedRange->EndRef()`.  Therefore, with rewriting
it as taking 2 `EditorRawDOMPoint`s, we don't need `mUtilRange`.

Differential Revision: https://phabricator.services.mozilla.com/D42105

--HG--
extra : moz-landing-system : lando
2019-08-20 01:52:23 +00:00
Masayuki Nakano
0cc09df825 Bug 1572685 - part 9: Move HTMLEditRules::mDocChangeRange to TopLevelEditSubActionData r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D42104

--HG--
extra : moz-landing-system : lando
2019-08-20 01:51:59 +00:00
Masayuki Nakano
a2367ac28f Bug 1572685 - part 8: Move HTMLEditRules::mCachedStyles to TopLevelEditSubAction r=m_kato
This patch makes `StyleCache` not inherit `ItemProp` because `MOZ_COUNT_CTOR`
and `MOZ_COUNT_DTOR` do not work well with `AutoTArray` and there is no reason
to do that since nobody treat `StyleCache` instance with `ItemProp` pointer.

Differential Revision: https://phabricator.services.mozilla.com/D42103

--HG--
extra : moz-landing-system : lando
2019-08-20 01:51:36 +00:00
Masayuki Nakano
d696ee098d Bug 1572685 - part 7: Move HTMLEditRules::mRangeItem to TopLevelEditSubActionData r=m_kato
For avoiding allocation cost of `RangeItem`, it should be stored by `HTMLEditor`
and reused by all `TopLevelEditSubActionData` instances for the editor instance.

Differential Revision: https://phabricator.services.mozilla.com/D42102

--HG--
extra : moz-landing-system : lando
2019-08-20 01:51:19 +00:00
Masayuki Nakano
5f2af66e4b Bug 1572685 - part 6: Move HTMLEditRules::mNewBlock to TopLevelEditSubActionData r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D42101

--HG--
extra : moz-landing-system : lando
2019-08-20 01:50:56 +00:00