Commit Graph

666710 Commits

Author SHA1 Message Date
tanhengyeow
7595c5da4e Bug 1574826 - WebSocket Inspector Test: Basic functionality. r=Honza
Setup base structure common to all WS inspector tests.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 10:47:56 +00:00
Emilio Cobos Álvarez
8a8e0391b0 Bug 1571517 - Don't bail out when serializing a range starting at the end of an element. r=mbrodesser
We have a range that starts at the end of a cell, and ends somewhere else.

We were bailing out recursively from the beginning, causing the serialization to
be the empty string rather than the actually selected text.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 11:20:16 +00:00
Brindusan Cristian
60126cdd06 Backed out 2 changesets (bug 1573605) for bc failures at browser_trackingUI_state.js. CLOSED TREE
Backed out changeset 2bd2687949b5 (bug 1573605)
Backed out changeset 63d640d3d8b8 (bug 1573605)
2019-08-20 14:51:50 +03:00
Olli Pettay
1950b63b62 Bug 1556579, try to make browser_html_options_ui_in_tab.js less racy, r=rpl
The test starts to fail more often with Fission session history (which is still using sync IPC).
The change should guarantee that there is time to send and receive options-loaded message.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 10:06:48 +00:00
Narcis Beleuzu
b8158bd25d Bug 1572560 - Disable browser_destroy_callbacks.js on MacOSX. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D42616

--HG--
extra : moz-landing-system : lando
2019-08-20 10:41:19 +00:00
Cosmin Sabou
f0e2c16f12 Bug 1571583 - Disable leaking tests for frequent failures. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D42588

--HG--
extra : moz-landing-system : lando
2019-08-20 10:43:15 +00:00
Nihanth Subramanya
5c54443fcd Bug 1573605 - More thoroughly test category item sections for various states. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D42237

--HG--
extra : moz-landing-system : lando
2019-08-16 14:21:20 +00:00
Nihanth Subramanya
45e0197f18 Bug 1573605 - Show undetected protections category items in a "Not Found" section, update UI to spec. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D42113

--HG--
extra : moz-landing-system : lando
2019-08-16 09:39:14 +00:00
Cosmin Sabou
cc2fe556cd Bug 1570436 - Add .ini file after being deleted by wpt-sync. r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D42545

--HG--
extra : moz-landing-system : lando
2019-08-20 10:30:37 +00:00
André Bargull
7790de7839 Bug 1572985: Sort "relevantExtensionKeys" to ensure the resolved locale's Unicode extension subtag is canonical. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D41516

--HG--
extra : moz-landing-system : lando
2019-08-19 19:10:41 +00:00
Jon Coppeard
4259ff474f Bug 1574694 - Update memory info objects following changes to malloc accounting r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D42490

--HG--
extra : moz-landing-system : lando
2019-08-20 09:57:06 +00:00
André Bargull
9694d385a0 Bug 1533328 - Part 8: Add comments explaining when <ctime> and ICU can return a different default time zone. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D41376

--HG--
extra : moz-landing-system : lando
2019-08-20 09:09:19 +00:00
André Bargull
df1430cb05 Bug 1533328 - Part 7: Remove separate 'localTZA_' field from DateTimeInfo. r=jorendorff
This field used to match "LocalTZA" from the ECMAScript specification when "LocalTZA"
was still a constant value. But in the current specification "LocalTZA" was changed to
a function to compute the local time zone adjustment at a given time. To avoid
confusion between `localTZA_` and "LocalTZA" from the specification, remove `localTZA_`
and instead only expose the `DateTimeInfo::localTZA()` function in contexts where the
old "LocalTZA" definition is still used (non-Intl or system ICU builds).

`localTZA_` was also used as a cache key for `DateObject` slots, replace the usage there
with `DateTimeInfo::utcToLocalStandardOffsetSeconds()` to make clear that the cache key
isn't tied to any spec calls to "LocalTZA".

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

--HG--
extra : moz-landing-system : lando
2019-08-20 09:08:56 +00:00
André Bargull
976ebfe8b5 Bug 1533328 - Part 6: Remove 'Adjustment' from DateTimeInfo methods and fields. r=jorendorff
Give these functions and fields a more general name to make clear they aren't tied
to the `localTZA_` field.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 09:08:39 +00:00
André Bargull
6184767bfe Bug 1533328 - Part 5: Remove delay of ICU time zone updates. r=jorendorff
Part 1 ensures `DateTimeInfo::updateTimeZoneAdjustment()` is no longer called during
start-up, which enables us to resync ICU's time zone status right away. Furthermore
this change won't lead to a performance regression, because all callers to
`DateTimeInfo::updateTimeZoneAdjustment()` either also require an up-to-date ICU time
zone state (`DTI::{getDSTOffsetMilliseconds,getOffsetMilliseconds,timeZoneDisplayName}`)
or trigger an ICU time zone update anyway (`DTI::localTZA()` when called in
`DateObject::fillLocalTimeSlots()`).

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

--HG--
extra : moz-landing-system : lando
2019-08-20 09:08:16 +00:00
André Bargull
119b53687b Bug 1533328 - Part 4: Only call ResetTimeZone resp. tzset when the time zone was actually changed. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D37251

--HG--
extra : moz-landing-system : lando
2019-08-20 09:07:53 +00:00
André Bargull
fd325a124b Bug 1533328 - Part 3: Switch 'reset' and 'update' method names in js::DateTimeInfo. r=jorendorff
That way `js::ResetTimeZoneInternal` is calling `js::DateTimeInfo::resetTimeZoneAdjustment`,
which aligns the use of 'reset' in the function names. And the method which actually checks
for updates is then called `js::DateTimeInfo::updateTimeZoneAdjustment`.

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

--HG--
extra : moz-landing-system : lando
2019-08-20 09:07:36 +00:00
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
André Bargull
7a584c3965 Bug 1573814: Use undefined for the initial slot values of Intl objects. r=jwalden
Now that the private slot accessors already handle `undefined`, we might as
well keep the initial value instead of manually setting the slots to nullptr.

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

--HG--
extra : histedit_source : 3b9c630abdb7ef2fdb0188f6f715606be8f82984
2019-08-14 15:29:34 +03:00
Brindusan Cristian
26497dddc4 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-08-20 12:44:20 +03:00
Coroiu Cristina
a44846599b Merge mozilla-central to inbound a=merge 2019-08-20 06:58:02 +03:00
Oana Pop Rus
b45bb1bc89 Backed out 9 changesets (bug 1574296, bug 1561705) for devtools failures in browser_dbg-breaking-from-console.js
Backed out changeset 97fc86ccdbce (bug 1561705)
Backed out changeset 41b6d03a870c (bug 1574296)
Backed out changeset f9d136ac0e61 (bug 1561705)
Backed out changeset 40a1794e0c0e (bug 1561705)
Backed out changeset dad7319f1f6c (bug 1561705)
Backed out changeset 7c7d41b7baca (bug 1561705)
Backed out changeset cbe56a9fce52 (bug 1561705)
Backed out changeset 080ff558e41a (bug 1561705)
Backed out changeset ac3da20c6879 (bug 1561705)

--HG--
rename : testing/specialpowers/content/SpecialPowersChild.jsm => testing/specialpowers/content/SpecialPowersAPI.jsm
rename : testing/specialpowers/content/SpecialPowersParent.jsm => testing/specialpowers/content/SpecialPowersAPIParent.jsm
2019-08-20 06:48:20 +03:00
Coroiu Cristina
98eafcceca Bug 1561705 - Fix ESlint failure 2019-08-20 05:22:54 +03: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
Markus Stange
529ee470f1 Bug 1573343 - Destroy mFullWindowRenderTarget in a different place. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D42415

--HG--
extra : moz-landing-system : lando
2019-08-19 22:41:27 +00:00
Markus Stange
d417bf03ed Bug 1573343 - Use std::any_of to compute hasContentPaint. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D41681

--HG--
extra : moz-landing-system : lando
2019-08-19 22:41:07 +00:00
Markus Stange
66fc92f4e1 Bug 1573343 - Stop using LayoutDevice units in BasicCompositor. r=mattwoodrow
ScreenPixels would be a more appropriate unit. But inside BasicCompositor everything
is in the same coordinate space anyway so we're not getting much benefit from the
units. This patch eliminates a lot of .ToUnknown*() calls.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 22:40:55 +00:00
Markus Stange
cc120aa3b7 Bug 1573343 - Make the aInvalidRegion parameter of EndRemoteDrawing a const reference rather than a regular reference. r=mattwoodrow
There's no point in mutating it, and nobody does.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 22:40:39 +00:00
Markus Stange
9fd442a1aa Bug 1573343 - Fix two comments in BasicCompositor. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D41678

--HG--
extra : moz-landing-system : lando
2019-08-19 22:40:17 +00:00
Markus Stange
a5236f2abb Bug 1573343 - Remove an unnecessary null check and turn an emptiness check into an assertion. r=mattwoodrow
The null is unnecessary because mDrawTarget is already null-checked above:
If mTarget is non-null, then mDrawTarget = mTarget so mDrawTarget is non-null.
If mTarget is null, then we would enter a branch that had another null check
for mDrawTarget.

As for the assertion: When rendering to an external target (reftests),
LayerManagerComposite always sets the invalid region to the entire window, so it
should never be empty here.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 22:40:05 +00:00
Markus Stange
4491f22f3b Bug 1573343 - Add mDrawTargetBounds to clarify the position of mDrawTarget in window space. r=mattwoodrow
There was an interesting "ExpandToEnclose(IntPoint(0, 0))" call in
CreateRenderTargetForWindow that snuck in some surprising behavior that this
change makes a bit more visible.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 22:39:45 +00:00
Markus Stange
8b68a014ae Bug 1573343 - Pass a precise clear region to CreateRenderTargetForWindow. r=mattwoodrow
In the past, BeginFrame would clip mDrawTarget to the invalid region and then have
CreateRenderTargetForWindow clear a rectangle. So it was effectively clearing a
region, but only if BeginFrame's region clip happened to be set on the correct
DrawTarget. In the case where a back buffer was used, this was not the case:
The clip would be on mDrawTarget but the clear would happen on the back buffer
draw target. So we were clearing more than necessary.

Now we limit clearing to the invalid region even if a back buffer is used.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 22:39:26 +00:00
Markus Stange
a829cf1409 Bug 1573343 - Apply the translation in CreateRenderTargetForWindow instead of in BeginFrame. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D41674

--HG--
extra : moz-landing-system : lando
2019-08-19 22:39:12 +00:00
Markus Stange
19c25b1d89 Bug 1573343 - Move draw target clearing out of GetBackBufferDrawTarget. r=mattwoodrow
On Windows, where the DrawTarget is rewrapped in a Cairo/pixman DrawTarget,
this will now cause Cairo/pixman to be used for the clear.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 22:39:00 +00:00
Markus Stange
2dbe70d234 Bug 1573343 - Reset the transform in a better place. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D41672

--HG--
extra : moz-landing-system : lando
2019-08-19 22:38:35 +00:00
Markus Stange
f182a073c1 Bug 1573343 - Always create the back buffer sized to the widget's client size. r=mattwoodrow
This should be equivalent to what we had before but clearer.
Before this patch, we would reallocate the back buffer if
 - the back buffer was larger than the client size (meaning the window had shrunk) or
 - the invalid region didn't fit in the back buffer.
Whenever the window is resized, we have a frame where the invalid region covers
the entire window, and thus size would be equal clientSize in that frame.
So effectively, the back buffer size was always kept in sync with the client size.

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

--HG--
extra : moz-landing-system : lando
2019-08-19 22:38:28 +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