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

87237 Коммитов

Автор SHA1 Сообщение Дата
Andreas Farre d2c1ccbf9e Bug 1582716 - Remove nsDocShell::GetIsOnlyToplevelInTabGroup. r=nika
We can remove isOnlyToplevelInTabGroup entirely since we have
BrowsingContext/BrowsingContextGroup exposed through
chrome-webidl. Checking if a browsing context is the only top level
(auxilliary or otherwise) is only a matter of checking that there
isn't a parent, and that the size of the browsing context group is 1.

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

--HG--
extra : moz-landing-system : lando
2019-09-24 14:29:18 +00:00
shindli 2791eb6f31 Backed out changeset db132849d960 (bug 1582716) for causing linting failures in /builds/worker/checkouts/gecko/toolkit/modules/E10SUtils.jsm CLOSED TREE 2019-09-24 17:09:06 +03:00
Andreas Farre b9c17edc95 Bug 1582716 - Remove nsDocShell::GetIsOnlyToplevelInTabGroup. r=nika
We can remove isOnlyToplevelInTabGroup entirely since we have
BrowsingContext/BrowsingContextGroup exposed through
chrome-webidl. Checking if a browsing context is the only top level
(auxilliary or otherwise) is only a matter of checking that there
isn't a parent, and that the size of the browsing context group is 1.

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

--HG--
extra : moz-landing-system : lando
2019-09-24 13:22:47 +00:00
Andreas Farre 3977fe175d Bug 1575051 - Remove nsIDocShellTreeItem.findItemWithName. r=kmag
This also allows us to remove TabGroup::FindItemWithName, which is a
big step towards removing TabGroup entirely.

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

--HG--
extra : moz-landing-system : lando
2019-09-24 13:16:26 +00:00
Brindusan Cristian 52d6534a82 Backed out changeset 0ebd1612a4ae (bug 1575051) for gv-junit crashes and bc failures on browser_browsingContext-02.js. CLOSED TREE 2019-09-24 15:08:41 +03:00
Andreas Farre 3238beb123 Bug 1575051 - Remove nsIDocShellTreeItem.findWithName. r=kmag
This also allows us to remove TabGroup::FindItemWithName, which is a
big step towards removing TabGroup entirely.

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

--HG--
extra : moz-landing-system : lando
2019-09-24 10:58:47 +00:00
shindli bfa22f415b Backed out 9 changesets (bug 1580659) for causing linting failure in /builds/worker/checkouts/gecko/dom/plugins/base/nsNPAPIPluginInstance.cpp CLOSED TREE
Backed out changeset b8c46aaec410 (bug 1580659)
Backed out changeset fd31977767d5 (bug 1580659)
Backed out changeset 8b9f61694270 (bug 1580659)
Backed out changeset 276827f54c71 (bug 1580659)
Backed out changeset ecb2bf9fb452 (bug 1580659)
Backed out changeset b712f15af619 (bug 1580659)
Backed out changeset c25bfc8b31b1 (bug 1580659)
Backed out changeset 20cfcd96a40e (bug 1580659)
Backed out changeset e92ff4ac7f43 (bug 1580659)
2019-09-24 09:50:42 +03:00
Alastor Wu ded1136dc6 Bug 1580659 - part8 : trimming public methods of AudioChannelAgent. r=chunmin
To hide some functions from `AudioChannelAgent` to avoid an access from `AudioChannelAgentCallback` (eg. media element, audio destination node...), and only allow `AudioChannelService` to use those functions.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 20:36:12 +00:00
alwu 3aa62361f8 Bug 1580659 - part7 : make AudioChannelAgent's 'WindowVolumeChanged()' consistent with other 'WindowXXXChanged()'. r=Ehsan
Now other `WindowXXXChanged()` would receive the change directly from their input parameter, we should make `WindowVolumeChanged()` consistent with them, instead of asking `AudioChannelService` again.

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

--HG--
extra : moz-landing-system : lando
2019-09-17 18:59:27 +00:00
Alastor Wu b3e82e167d Bug 1580659 - part6 : remove input config parameter from 'NotifyStartedPlaying()'. r=Ehsan
After applying patch4, now we would pull the change from `AudioChannelService` everytime after starting the agent, so we don't need to rely on letting `NotifyStartedPlaying()` to modify the config and use it to update our state.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 00:03:14 +00:00
Alastor Wu eaf6b8ef6e Bug 1580659 - part5 : stop audio capturing explicitly. r=chunmin,karlt
As we start audio capturing explicitly, we should also take responsibility to stop audio capturing when we don't need it.

We were hiding too many details on `AudioChannelAgent` before, which allow us hard to know who and where we handle audio capturing.

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

--HG--
extra : moz-landing-system : lando
2019-09-21 02:21:58 +00:00
Alastor Wu 17d1e17425 Bug 1580659 - part4 : pulling the intial update after starting AudioChannelAgent. r=chunmin
Instead of calling those callback functions seperately, we could provide a function to pull those changes at once after starting the agent.

In addition, `WindowXXXChanged` are callback functions of `nsIAudioChannelAgentCallback`, so they should only be called by `AudioChannelAgent`, to indicate receiving the change from `AudioChannelService`. We should not call them directly.

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

--HG--
extra : moz-landing-system : lando
2019-09-23 17:44:21 +00:00
Alastor Wu fc77b7c3ab Bug 1580659 - part3.5 : suspend nsNPAPIPluginInstance should not affect its muted state. r=karlt
The suspend state and muted state are two different things, so changing the suspended state should not affect on the muted state.

As nsAPI doesn't provide suspending API, both muting and suspending are actually sharing the same implementation, which is to mute/unmute nsAPI.

Although we have used two separate variables to store muted and suspended state, in order to make them independent, we still don't want to unexpectedly unmute nsAPI when resuming from suspended state.

Therefore, before unmuting nsAPI, we should consider both states.

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

--HG--
extra : moz-landing-system : lando
2019-09-23 22:22:15 +00:00
Alastor Wu f74da16941 Bug 1580659 - part3 : call 'WindowAudioCaptureChanged()' explicitly. r=chunmin,karlt
Previously `AudioChannelService` called `WindowAudioCaptureChanged()` implicitly whenever we added the agent to the service [1], which made the audio capturing callback happen before finishing registration.

There are two drawbacks,
(1) it's hard to be aware of that the audio capturing callback would be called before finishing `AudioChannelAgent::NotifyStartedPlaying()` [2], which causes unclear call flow.

(2) If someone checks `AudioChannelAgent::IsPlayingStarted()` [3] inside audio capturing callback, then we would find that the `mIsRegToService` is false even if we have registered the agent to `AudioChannelService` because `mIsRegToService` is updated in the last line in the `AudioChannelAgent::NotifyStartedPlaying()`, but the audio capturing callback could be executed before that.

[1] https://searchfox.org/mozilla-central/rev/a777ff11b6d700a698c61e5bd17e73b044304494/dom/audiochannel/AudioChannelService.cpp#723
[2] https://searchfox.org/mozilla-central/rev/a777ff11b6d700a698c61e5bd17e73b044304494/dom/audiochannel/AudioChannelAgent.cpp#144
[3] https://searchfox.org/mozilla-central/rev/a777ff11b6d700a698c61e5bd17e73b044304494/dom/audiochannel/AudioChannelAgent.cpp#285

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

--HG--
extra : moz-landing-system : lando
2019-09-18 21:59:32 +00:00
Alastor Wu 9f046cf28c Bug 1580659 - part2 : remove redundant checking. r=chunmin
We have already had the same checking in `AudioCaptureStreamChange()`, so we can remove the checking in `AudioCaptureStreamChangeIfNeeded()`.

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

--HG--
extra : moz-landing-system : lando
2019-09-17 23:04:12 +00:00
alwu 8c34182874 Bug 1580659 - part1 : use AudioChannelAgent directly. r=chunmin
`nsIAudioChannelAgent` was created a common interface for a usage of in both js and C++ before, now we have no any JS code would use `nsIAudioChannelAgent`, it's only used in C++ code.

Therefore, in a coming refactoring (bug1580662), we will remove `nsIAudioChannelAgent` and use `AudioChannelAgent` as the only interface. Here we can make these classes start to reference `AudioChannelAgent`, instead of `nsIAudioChannelAgent`.

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

--HG--
extra : moz-landing-system : lando
2019-09-16 19:44:37 +00:00
Emilio Cobos Álvarez 45f30e1d19 Bug 1575138 - Don't bother scheduling a reconstruct on <slot>s that have no fallback. r=smaug
So basically what's going on is that we remove all children from the popup here:

  https://searchfox.org/mozilla-central/rev/153feabebc2d13bb4c29ef8adf104ec1ebd246ae/browser/base/content/browser-places.js#687

This makes us schedule a reconstruct of the slot, in case it has fallback
content:

  https://searchfox.org/mozilla-central/rev/153feabebc2d13bb4c29ef8adf104ec1ebd246ae/dom/base/ShadowRoot.cpp#616

Then we insert frames for the items. They get inserted right away, because we
don't support lazy frame construction for XUL:

  https://searchfox.org/mozilla-central/rev/153feabebc2d13bb4c29ef8adf104ec1ebd246ae/layout/base/nsCSSFrameConstructor.cpp#6507

If this was normal HTML content, the insertion would've been lazy, and no
reconstruct would've happened.

The right fix is to support lazy frame construction for XUL. Now that there's
very little XBL it should be possible. This fixes it but it's a kind-of stop-gap
solution.

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

--HG--
extra : moz-landing-system : lando
2019-09-24 00:03:39 +00:00
Boris Zbarsky 6be46fda93 Bug 1582538. Fix mixin exposure set computation when interfaces that include it have no explicit exposure sets. r=saschanaz
We can remove this once [PrimaryGlobal] goes away, but for now we need to not
have this issue, which actually bit me when converting NavigatorLanguage to a
mixin.

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

--HG--
extra : moz-landing-system : lando
2019-09-24 02:32:14 +00:00
Geoff Brown b0e5901c93 Bug 1582884 - Enable some crashtests on Android; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D46784

--HG--
extra : moz-landing-system : lando
2019-09-24 01:12:09 +00:00
Geoff Brown dcb380399e Bug 1582785 - Enable some xpcshell tests on Android; r=geckoview-reviewers,agi
Most of these tests have been disabled for a long time; they run well
in the current test environment.

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

--HG--
extra : moz-landing-system : lando
2019-09-23 22:43:55 +00:00
Boris Chiou 470629b5d3 Bug 1567330 - Add offset shorthand. r=emilio,birtles
Also, update the serialization by the shorter perference because this is
a new feature and using older syntax doesn't make sense.

Besides, use `cssOffset` for web animation IDL attribute name.

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

--HG--
extra : moz-landing-system : lando
2019-09-23 19:56:33 +00:00
Boris Zbarsky 89dd3cf285 Bug 1582857. Fix security checks around this-unwrapping. r=peterv,bholley
Differential Revision: https://phabricator.services.mozilla.com/D46692

--HG--
extra : moz-landing-system : lando
2019-09-24 01:02:25 +00:00
Edgar Chen 520d780d4c Bug 1582744 - Enable browser_use_counters.js test on Fission; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D46678

--HG--
extra : moz-landing-system : lando
2019-09-23 14:25:34 +00:00
Agi Sferro ffdab47977 Bug 1583378 - Remove unneded warning in do_QueryActor. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D46870

--HG--
extra : moz-landing-system : lando
2019-09-23 22:32:37 +00:00
Boris Zbarsky 37bab0bd83 Bug 1582196 part 4. Get rid of NS_ERROR_RANGE_ERR. r=peterv
The two remaining consumers don't seem to depend on actually using this
specific nsresult in any way.

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

--HG--
extra : moz-landing-system : lando
2019-09-23 19:14:33 +00:00
Boris Zbarsky 33acac0a74 Bug 1582196 part 3. Stop using NS_ERROR_RANGE_ERR and NS_ERROR_TYPE_ERR in payments code. r=edenchuang
The changes to the return type of MerchantValidationEvent::init are because
Result doesn't allow having an ErrorResult (or any other type without a copy
constructor) as its error type.  Plus we would have had the impedance mismatch
between Result<Ok, nsresult> (which is what URL resolution on the document
returns) and Result<Ok, ErrorResult> anyway.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 23:53:14 +00:00
Boris Zbarsky e2d4045ce1 Bug 1582196 part 2. Stop using NS_ERROR_RANGE_ERR in SVGTransform. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D46460

--HG--
extra : moz-landing-system : lando
2019-09-19 13:13:58 +00:00
Boris Zbarsky ccc114b512 Bug 1582196 part 1. Stop using NS_ERROR_RANGE_ERR in createImageBitmap. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D46459

--HG--
extra : moz-landing-system : lando
2019-09-19 15:35:07 +00:00
Emilio Cobos Álvarez 678c18063d Bug 1583203 - Annotate nsINode::OwnerDoc() as MOZ_NONNULL_RETURN. r=smaug
People keep adding useless null-checks and it was not clear what the consensus
was from bug 1441165, but this should be unobjectionable I guess.

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

--HG--
extra : moz-landing-system : lando
2019-09-23 18:12:19 +00:00
Henri Sivonen b5140cd3ca Bug 1583169 - Enable test_bug871161.html in Fission. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D46770

--HG--
extra : moz-landing-system : lando
2019-09-23 12:05:02 +00:00
Emilio Cobos Álvarez 4c429b8f4e Bug 1582585 - Factor out a bit of the logic in AutoScrollController.jsm. r=botond
No behavior change intended.

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

--HG--
extra : moz-landing-system : lando
2019-09-23 15:39:48 +00:00
Andreea Pavel 7d9c945b30 Backed out 3 changesets (bug 1583203) build bustages on a CLOSED TREE
Backed out changeset ca89485fedf8 (bug 1583203)
Backed out changeset 8bc17415ff25 (bug 1583203)
Backed out changeset 3e3eebe862e5 (bug 1583203)
2019-09-23 18:16:49 +03:00
Emilio Cobos Álvarez b4f89cf524 Bug 1583203 - followup: Remove another silly null-check.
CLOSED TREE

MANUAL PUSH: red
2019-09-23 17:00:47 +02:00
Emilio Cobos Álvarez d40510e58a Bug 1583203 - followup: Remove some silly null-checks.
CLOSED TREE

MANUAL PUSH: red
2019-09-23 16:49:44 +02:00
Emilio Cobos Álvarez 1a26094a08 Bug 1583203 - Annotate nsINode::OwnerDoc() as MOZ_NONNULL_RETURN. r=smaug
People keep adding useless null-checks and it was not clear what the consensus
was from bug 1441165, but this should be unobjectionable I guess.

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

--HG--
extra : moz-landing-system : lando
2019-09-23 14:23:17 +00:00
Boris Zbarsky 013f0714ce Bug 1581278 part 5. Stop incorrectly rejecting promises in EME. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D46387

--HG--
extra : moz-landing-system : lando
2019-09-20 14:20:48 +00:00
Boris Zbarsky b544880d43 Bug 1581278 part 4. Stop incorrectly rejecting promises in MediaCapabilities. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D46385

--HG--
extra : moz-landing-system : lando
2019-09-19 02:03:07 +00:00
Boris Zbarsky 2e33a36d6f Bug 1581278 part 3. Stop incorrectly rejecting promises in storage manager. r=janv
Differential Revision: https://phabricator.services.mozilla.com/D46384

--HG--
extra : moz-landing-system : lando
2019-09-19 18:18:28 +00:00
Boris Zbarsky e44e36a681 Bug 1581278 part 2. Add convenience methods for rejecting promises with various types of spec exceptions. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D46383

--HG--
extra : moz-landing-system : lando
2019-09-19 13:02:39 +00:00
Boris Zbarsky 6bfd85094a Bug 1581278 part 1. Implement ErrorResult overload of DetailedPromise::MaybeReject. r=bholley
Differential Revision: https://phabricator.services.mozilla.com/D46382

--HG--
extra : moz-landing-system : lando
2019-09-19 20:46:15 +00:00
Boris Zbarsky 417c6749c3 Bug 1581276. Require a message arg to ThrowDOMException. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D46250

--HG--
extra : moz-landing-system : lando
2019-09-20 02:17:01 +00:00
Boris Zbarsky d0ce4c7209 Bug 1581315 part 3. Add MOZ_MUST_RETURN_FROM_CALLER_IF_THIS_IS_ARG to more ErrorResult methods. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D46107

--HG--
extra : moz-landing-system : lando
2019-09-20 02:19:18 +00:00
Boris Zbarsky dbed44ddf4 Bug 1581315 part 2. Fix incorrect behavior of PannerNode::SetRolloffFactor. r=karlt
Our implementation modified the state, in addition to throwing the exception.
And the tests not only didn't test for this, but wouldn't have reached that
code anyway, due to the harness giving up as soon as anything failed.

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

--HG--
extra : moz-landing-system : lando
2019-09-17 22:15:54 +00:00
Boris Zbarsky fa0ce4b209 Bug 1581315 part 1. Adjust MOZ_MUST_RETURN_FROM_CALLER to only apply to method calls on arguments. r=nika
It doesn't really make sense to enforce this behavior for calls on stack
variables (which presumably we then want to do something with) and doesn't
necessarily make sense to enforce it for member variables either.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 02:17:01 +00:00
Boris Zbarsky f5134660d1 Bug 1581173 part 2. Fix MutationObserver to throw the right exceptions. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45933

--HG--
extra : moz-landing-system : lando
2019-09-23 13:53:42 +00:00
Boris Zbarsky e26682d684 Bug 1581173 part 1. Add a way to more easily throw TypeErrors and RangeErrors with custom message strings via ErrorResult. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45932

--HG--
extra : moz-landing-system : lando
2019-09-20 02:19:18 +00:00
Emilio Cobos Álvarez 9263e08c77 Bug 1583052 - Fix a check which really wants composed doc semantics, not uncomposed. r=smaug
I don't know why it'd want uncomposed doc semantics.

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

--HG--
extra : moz-landing-system : lando
2019-09-23 13:14:51 +00:00
Emilio Cobos Álvarez 8076d7fb37 Bug 1583052 - Don't null-check OwnerDoc() in HTMLMediaElement.cpp. r=smaug
It can never return null.

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

--HG--
extra : moz-landing-system : lando
2019-09-23 13:09:52 +00:00
Emilio Cobos Álvarez 9dd253929b Bug 1583052 - Remove an optimization introduced in bug 1555946 which is not sound. r=smaug
Tasks dispatched from RunInStableState() can be cancelled if there's a load in
between, so this is not sound.

See nsSyncSection::IsCancelled().

This is the only patch in this bug that is worth uplifting IMO.

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

--HG--
extra : moz-landing-system : lando
2019-09-23 13:08:53 +00:00
Mirko Brodesser 8a338e58ac Bug 1581523: part 6) Move wrap-related methods to `nsPlainTextSerializer::Settings`. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D46136

--HG--
extra : moz-landing-system : lando
2019-09-23 11:44:13 +00:00
Mirko Brodesser 05a54f0575 Bug 1581523: part 5) Move `nsPlainTextSerializer::mWrapColumn` to `nsPlainTextSerializer::Settings`. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D46135

--HG--
extra : moz-landing-system : lando
2019-09-23 12:59:27 +00:00
Mirko Brodesser a962446e79 Bug 1581523: part 4) Don't set `mWrapColumn` depending on `<body>`'s style. r=jorgk
Instead, rely on the proper initialization of `mWrapColumn` via
`nsPlainTextSerializer::Init`.

This will allow to move `mWrapColumn` to `nsPlainTextSerializer::Settings::mWrapColumn`,
simplifying reasoning about it.

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

--HG--
extra : moz-landing-system : lando
2019-09-23 11:43:59 +00:00
Mirko Brodesser 8aac98dbcc Bug 1581523: part 3) Assert `nsTextEditorState::PrepareEditor` sets only non-negative wrap-columns. r=jorgk
Differential Revision: https://phabricator.services.mozilla.com/D46128

--HG--
extra : moz-landing-system : lando
2019-09-23 11:43:57 +00:00
Mirko Brodesser f2404d79a1 Bug 1581523: part 2) Remove outdated comment in `HTMLTextAreaElement`. r=jorgk
Differential Revision: https://phabricator.services.mozilla.com/D46127

--HG--
extra : moz-landing-system : lando
2019-09-23 11:43:55 +00:00
Mirko Brodesser 404c0dae7b Bug 1581523: part 1) Remove hack for Thunderbird which parses `nsPlainTextSerializer::mWrapColumn` from `<body>`'s style. r=hsivonen,jorgk
`TextEditor::SetWrapWidth` already sets `nsIDocumentEncoder`'s wrap
column which is propagated to `nsPlainTextSerializer`. So this should be
a safe change.

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

--HG--
extra : moz-landing-system : lando
2019-09-23 11:43:53 +00:00
Emilio Cobos Álvarez 2e05768081 Bug 1578379 - Make pageshow / pagehide during frame loader swaps not mess with document visibility. r=bzbarsky
Also while doing it:

 * Ensure activity observers get notified after visibility is computed already.
This is how we notify all other activity observers already, and we are
double-notifying in the case we actually get a page show _and_ a visibility
change, but this is a pre-existing problem.

 * Remove special-cases for InFrameSwap() from MediaRecorder. Now that pagehide
doesn't mess up with our visibility state the regular check just works. I
ensured I didn't regress bug 1444541.

 * Had to fix a UITour test that relied on the visibility changing back and
forth for the detached tab. It seems there's no real place in UITour that
listens to that event so we should be good.

 * Added tests, verifying that they both fail without the patch.

After this we can remove nsDocShell::InFrameSwap(), as the only caller is the
assertion, but I wanted to keep it regardless, at least for now, until this
patch has been in for a bit.

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

--HG--
extra : moz-landing-system : lando
2019-09-23 10:16:44 +00:00
Bogdan Tara 8675cadd18 Backed out changeset d984fd004e7e (bug 1578379) for ES lint failure on browser_tab_replace_while_loading.js CLOSED TREE 2019-09-23 13:00:56 +03:00
Emilio Cobos Álvarez 10fa3b178f Bug 1578379 - Make pageshow / pagehide during frame loader swaps not mess with document visibility. r=bzbarsky
Also while doing it:

 * Ensure activity observers get notified after visibility is computed already.
This is how we notify all other activity observers already, and we are
double-notifying in the case we actually get a page show _and_ a visibility
change, but this is a pre-existing problem.

 * Remove special-cases for InFrameSwap() from MediaRecorder. Now that pagehide
doesn't mess up with our visibility state the regular check just works. I
ensured I didn't regress bug 1444541.

 * Had to fix a UITour test that relied on the visibility changing back and
forth for the detached tab. It seems there's no real place in UITour that
listens to that event so we should be good.

 * Added tests, verifying that they both fail without the patch.

After this we can remove nsDocShell::InFrameSwap(), as the only caller is the
assertion, but I wanted to keep it regardless, at least for now, until this
patch has been in for a bit.

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

--HG--
extra : moz-landing-system : lando
2019-09-23 09:36:59 +00:00
Makoto Kato c4b9c2fa0e Bug 1552041 - Part 1. Set CAUSE_UNKNOWN_CHROME if caller is chrome script or native. r=masayuki
Actually, CAUSE_UNKNOWN_CHROME is set when caller is chrome process. I would
like to change that this value is called from chrome or native.

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

--HG--
extra : moz-landing-system : lando
2019-09-23 07:22:03 +00:00
Daniel Varga 153feabebc Bug 1544147 - disable test_process_error.xul for frequent failures on linux64-qr. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D46599

--HG--
extra : moz-landing-system : lando
2019-09-20 17:06:40 +00:00
Edgar Chen 1e6c6bcf5f Bug 1578671 - Wrap DestroyElementMaps call in a script blocker; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D46588

--HG--
extra : moz-landing-system : lando
2019-09-22 22:41:50 +00:00
Jean-Yves Avenard 7cdc8e0a68 Bug 1575744 - P7. Promisify SendCrossProcessRedirect to avoid needing PHttpChannel to get a response. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D46163

--HG--
extra : moz-landing-system : lando
2019-09-21 11:14:49 +00:00
Jean-Yves Avenard 912b0df630 Bug 1575744 - P4. Add MozPromise::FromDomPromise. r=bholley
Similar to MozPromise::FromGeckoResult.

Allows to create a MozPromise that will be resolved/rejected when the JS promise does the same.
It would be nice to be able to chain the two promise types, but it would be an additional effort.
MozPromise::FromDomPromise is limited to primitive types only and the reject value type must be nsresult.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 04:09:46 +00:00
longsonr ff387da653 Bug 1578098 - move DOM classes to DOM namespace and eliminate using namespace mozilla r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D44318

--HG--
extra : moz-landing-system : lando
2019-09-21 14:38:56 +00:00
arthur.iakab 4e3e955ddc Merge mozilla-central to autoland 2019-09-21 17:01:07 +03:00
arthur.iakab a595388e84 Backed out changeset 5ed078313a10 (bug 1563063)for causing browser-chrome failures on browser_test_feature_preferencereads.js a=backout 2019-09-21 16:36:09 +03:00
Emilio Cobos Álvarez 49baadd637 Bug 1582814 - Let the CSS use counter prefs be independent. r=boris
* Let layout.css.use-counters.enabled be independent from the unimplemented
   property counters.

 * Always count in the style system (that is, always create
   Document::mStyleUseCounters), so that the warning from bug 1582374 works
   irrespective of these prefs.

 * Add a pref check to the SVGElement code path so that the prefs properly
   reflect whether the histograms end up being recorded or not.

 * Make the pref checks consistent (check both when reporting telemetry, not
   earlier).

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

--HG--
extra : moz-landing-system : lando
2019-09-21 12:18:39 +00:00
arthur.iakab b6a627c094 Merge inbound to mozilla-central. a=merge
--HG--
extra : amend_source : 39c72a7f01f9afa5abf7587d732d1e63969cc9da
2019-09-21 13:00:40 +03:00
Andreea Pavel 3e284ad20a Bug 1578337 - disable test browser_storage_permission on all platforms r=egao
Differential Revision: https://phabricator.services.mozilla.com/D45477

--HG--
extra : moz-landing-system : lando
2019-09-21 07:08:39 +00:00
Dorel Luca f5e74811ca Merge mozilla-central to mozilla-inbound 2019-09-21 00:58:45 +03:00
arthur.iakab 13fb63fa87 Merge mozilla-central to autoland 2019-09-21 13:06:36 +03:00
Thomas Nguyen cf867199bc Bug 1560570- FeaturePolicy should be considered when permissions.query() is called r=baku,johannh
Differential Revision: https://phabricator.services.mozilla.com/D44210

--HG--
extra : moz-landing-system : lando
2019-09-21 08:38:26 +00:00
Kris Maglione 685d91c901 Bug 1553804: Part 6 - Fix chrome mochitests which open chrome windows with content openers. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D45828

MANUAL PUSH: Cannot update reopened Phabricator revisions.

--HG--
extra : source : 86b3d469b4ff9f22e5757f83450b956a4c769785
extra : histedit_source : 2bf945343632b15eb79cf6b2ddd3ce097ddf70de%2Caec93d9f11bc1c802b63793cd5818530b64e9b4b
2019-09-20 10:18:15 -07:00
Kris Maglione 99714a4e22 Bug 1553804: Part 4 - Make some evil tests less evil/failing. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D45329

--HG--
extra : source : acff4a6636719d9302d1a893e1f3ca392c8f99e5
extra : histedit_source : c727f4637a48f89ecb29233dba0a4aba0ed9ffd9%2Cfd70bbd8400e8aba9a4dc57956bfc9f1320e20db
2019-09-20 04:43:48 +00:00
Andreea Pavel e18057a961 Merge mozilla-inbound to mozilla-central. a=merge 2019-09-20 12:48:30 +03:00
Daniel Varga f0411a344a Backed out 6 changesets (bug 1553804) for browser-chrome failure at browser/base/content/test/general/browser_fullscreen-window-open.js. On a CLOSED TREE
Backed out changeset 86b3d469b4ff (bug 1553804)
Backed out changeset 301e0d883a5f (bug 1553804)
Backed out changeset acff4a663671 (bug 1553804)
Backed out changeset 1574aecf3177 (bug 1553804)
Backed out changeset 3acf056e792e (bug 1553804)
Backed out changeset 1ed250faeb2e (bug 1553804)
2019-09-20 10:09:54 +03:00
Edgar Chen a159f19187 Bug 1578355 - Part 3: Add the ability to consume transient user activation; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45353

--HG--
extra : moz-landing-system : lando
2019-09-20 11:10:13 +00:00
Edgar Chen 6fd87e8695 Bug 1578355 - Part 2: Introduce UserActivation::State; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45344

--HG--
extra : moz-landing-system : lando
2019-09-20 11:10:13 +00:00
Edgar Chen 5bc0854d2b Bug 1578355 - Part 1: Move user-activation code from EventStateManager to UserActivation; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45168

--HG--
extra : moz-landing-system : lando
2019-09-20 20:51:25 +00:00
Nathan Froyd 970d3a1d9b Bug 1582812 - fix some dom/media/ header cargo-culting; r=mccr8
Both of these files obviously use things from the newly-included
headers, but they were not including them prior to this point.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 20:19:32 +00:00
Kris Maglione ee31fee500 Bug 1582523: Part 2 - Update tests which rely on OOP frames blocking load. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D46504

MANUAL PUSH: Still cannot update reopened Phabricator revisions.

--HG--
extra : source : 2e8fcb1718611e8ce81e7c83fb480d664000c2cc
extra : histedit_source : 29005a64bf92828ed472f378d36feff98d3d3a9f
2019-09-19 11:50:45 -07:00
Kris Maglione 847fce5501 Bug 1582523: Part 1 - Actually block document load event during OOP frame loads. r=nika
This fixes both our failure to register load blockers for remote frames and
our failure to keep the load event blocked during frameloader rebuilding on
remoteness change.

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

--HG--
extra : source : dff7756afe8ede1e03d775ec4999d4807d82c1da
extra : histedit_source : b02eae2b652683ef17be3e0ff6a908b4bec311f5%2Cc62c8e5e4ca066f8f526a81a9aae0feeb84326a5
2019-09-19 11:45:36 -07:00
Masayuki Nakano 80e547ca49 Bug 1582010 - Make `IMEContentObserver` always recompute selection range after sending text change notification r=m_kato
`IMEContentObserver` sends selection change notification only when it receives
a DOM `Selection` change notification received.  However, selection range in
plaintext offset may be changed when changing previous content of caret is
changed.  In this case, currently we notify IME of only text change and
that causes IME keep caching selection offsets in previous content.  This
causes IME queries character rect out of bounds.  Therefore, even if
`IMEContentObserver` hasn't received DOM `Selection` change notification,
it should recompute selection range and if it's changed, it should notify
IME of selection change too.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 08:54:04 +00:00
Andreea Pavel e7cf747b38 Bug 1580771 - Set test_main.html to always fail on fission r=neha
Differential Revision: https://phabricator.services.mozilla.com/D46278

--HG--
extra : moz-landing-system : lando
2019-09-19 13:26:22 +00:00
Andreea Pavel 5b9c485d55 Backed out 2 changesets (bug 1582523) for build bustages at ContentChild.cpp on a CLOSED TREE
Backed out changeset 72ca7d054061 (bug 1582523)
Backed out changeset a6c10aa450ba (bug 1582523)
2019-09-20 08:45:25 +03:00
Kris Maglione afef6a355c Bug 1582523: Part 2 - Update tests which rely on OOP frames blocking load. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D46504

--HG--
extra : moz-landing-system : lando
2019-09-19 20:57:51 +00:00
Kris Maglione 0eb9756243 Bug 1582523: Part 1 - Actually block document load event during OOP frame loads. r=nika
This fixes both our failure to register load blockers for remote frames and
our failure to keep the load event blocked during frameloader rebuilding on
remoteness change.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 05:22:05 +00:00
Kris Maglione 136131d397 Bug 1553804: Part 6 - Fix chrome mochitests which open chrome windows with content openers. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D45828

--HG--
extra : moz-landing-system : lando
2019-09-20 04:44:02 +00:00
Kris Maglione b79b2c3aa0 Bug 1553804: Part 4 - Make some evil tests less evil/failing. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D45329

--HG--
extra : moz-landing-system : lando
2019-09-20 04:43:48 +00:00
Emilio Cobos Álvarez 71d2de346d Bug 1582119 - Enable CSS use counters in use counter test. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D46557

--HG--
extra : moz-landing-system : lando
2019-09-20 04:55:20 +00:00
Hiroyuki Ikezoe 42cf2e1cb4 Bug 1581974 - Change DOMIntersectionObserver::Update to use the BrowsingContext parent chain. r=jwatt
Using the BrowsingUsing parent chain is able to avoid 1) obtaining a wrong
root in cross-process documents and also avoid 2) not being able to obtain
the proper root in same-origin documents in the case where there is a
cross-process document in between the top level document and the same-origin
documents.

dom/base/test/test_intersectionobservers.html is a test of case 1).
testing/web-platform/tests/intersection-observer/same-origin-grand-child-iframe.sub.html
is a test case of case 2).

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

--HG--
extra : moz-landing-system : lando
2019-09-20 04:59:56 +00:00
Bogdan Tara bee28f01d7 Backed out 8 changesets (bug 1575744) for HttpChannelParent related assertion failures
Backed out changeset af61675dd488 (bug 1575744)
Backed out changeset bf794b9373c8 (bug 1575744)
Backed out changeset 39ffb74d2e12 (bug 1575744)
Backed out changeset c1547b3df672 (bug 1575744)
Backed out changeset 382ee8672027 (bug 1575744)
Backed out changeset 5abb38484f11 (bug 1575744)
Backed out changeset d5244c1bbfe8 (bug 1575744)
Backed out changeset c74b81debf73 (bug 1575744)

--HG--
rename : netwerk/base/nsIProcessSwitchRequestor.idl => netwerk/base/nsICrossProcessSwitchChannel.idl
2019-09-20 06:58:44 +03:00
Bryce Seager van Dyk 566e4b6e4e Bug 1582518 - Replace IntervalSet.Length usages with IsEmpty where appropriate. r=dminor
This replaces the instances where Length was being called on an interval set
to determine if it was empty or not empty. IsEmpty makes the intention in these
cases more immediately obvious, and avoids the need to think about ints as
bools in cases like `if(!mySet.Length())`.

Depends on D46638

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

--HG--
extra : moz-landing-system : lando
2019-09-20 19:41:53 +00:00
Bryce Seager van Dyk 9eba60583a Bug 1582518 - Restyle some of media's Intervals.h. r=dminor
Restyle include guard + includes to conform to new style rules.

Depends on D46637

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

--HG--
extra : moz-landing-system : lando
2019-09-20 19:11:28 +00:00
Bryce Seager van Dyk 5d523a8b06 Bug 1582518 - Add an IsEmpty() method to media's IntervalSet. r=dminor
This is a quality of life improvement:
- More concise than checking if Length() == 0.
- More readable then if(mySet.Length()) (in my opinion).
- We already have checks that test if IntervalSets are empty by looking at their
  length, so there is a use case for this.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 19:11:16 +00:00
Olli Pettay a1f7c1bbdf Bug 1563063 - Cross-process idle handling, r=farre
This is to get initial feedback/review.
PIdleScheduler.ipdl has the documentation about the basic architecture.
(v15)

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

--HG--
extra : moz-landing-system : lando
2019-09-20 19:31:58 +00:00
Bryce Seager van Dyk 7176d97169 Bug 1576990 - Stop the WMF decoder estimating durations on 0 duration samples. r=dminor
Set a trivial duration (1us) on 0 duration samples before feeding them to the
WMF MFT decoder to prevent it from estimating the duration for such samples.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 18:39:43 +00:00
Bryce Seager van Dyk 8547f05b52 Bug 1576990 - Set durations on frames for the WMF decoder. r=dminor
This is a back out of changeset c52127007a01, i.e. reverts bug 1560440. That bug
was itself reverting a prior bug where we started setting the duration.

There are two scenarios involved, each with their own issues:
- We don't set the duration when feeding the decoder (what we're doing prior to
  this change). In this case the decoder will estimate durations for all
  samples. This works in many cases, but leads to issues with files that have
  non-uniform durations - as seen in bug 1576990 (this bug).
- We do set the duration when feeding the decoder (what will happen after this
  change). In this case the decoder will not estimate durations, except it still
  seems to do so when fed 0 duration samples. Since our demuxing pipeline can
  create 0 duration samples, this leads to issues with such files (as seen in
  bug 1560440).

This patch fixes the former of the above, and the next patch in the chain will
address the latter.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 18:39:33 +00:00
Agi Sferro 731917effd Bug 1570115 - Allow Actors to implement WebBrowserChrome. r=kmag,snorp
Differential Revision: https://phabricator.services.mozilla.com/D44052

--HG--
extra : moz-landing-system : lando
2019-09-20 18:15:18 +00:00
Agi Sferro 3a3968887a Bug 1570115 - Add do_QueryActor to query JS-implemented interfaces. r=kmag
This allows querying an actor for interfaces implemented in JS.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 18:01:07 +00:00
Alexander Surkov 9b73536b9c Bug 1555497 - allow shadow DOM in content process for XUL elements to make possible running chrome UI in content process needed for wpt tests r=emilio
* wpt runs chrome priv for a subset of tests (mostly things testing toolkit chrome stuff), but it's still in the content process
* we only ever hit this case if the test is explicitly loaded as chrome. originally added for a couple osx tests at https://bugzilla.mozilla.org/show_bug.cgi?id=1465457. then expanded for all xul tests at https://bugzilla.mozilla.org/show_bug.cgi?id=1557371
* so what we used to do here is run xul/xbl in the content process (not chrome priv)
* the change here is that with our chrome Custom Elements we need to run with chrome priv for https://searchfox.org/mozilla-central/rev/4218cb868d8deed13e902718ba2595d85e12b86b/toolkit/components/processsingleton/CustomElementsListener.jsm#16 to load the elements
* so we made it explicit. the alternative at the time was to change wpt harness to load these tests in parent process, but it was too complex for what we needed (discussed with dbaron)
* this parentprocess check was meant kind of as an optimization so that we wouldn't have to check priv on random pages. but (a) that's short circuited anyway by the xul elem check and (b) this is only called when attachShadow is called on a non-html element so not in any kind of hot path

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

--HG--
extra : moz-landing-system : lando
2019-09-19 11:19:22 +00:00
Valentin Gosu 49c2d05267 Bug 1580750 - Fix test_bug466080 for fission r=JuniorHsu
Differential Revision: https://phabricator.services.mozilla.com/D46211

--HG--
extra : moz-landing-system : lando
2019-09-20 14:37:59 +00:00
Boris Zbarsky 5bc8266c20 Bug 1582567. Stop emitting 'virtual' in codegen if we're already emitting 'override'. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D46527

--HG--
extra : moz-landing-system : lando
2019-09-20 11:05:57 +00:00
Boris Zbarsky f570c09b42 Bug 1582506. Remove some pointless null-checks in SVG code. r=longsonr
Assuming our caller didn't mess up passing the reference (and code inspection
suggests callers did not thus mess up), we should not have null when we take a
pointer to the reference.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 06:02:10 +00:00
Daniel Varga bc19cdb06d Backed out 3 changesets (bug 1578355) for build bustage at build/src/dom/base/nsSyncLoadService.h:48:21. On a CLOSED TREE
Backed out changeset d50ad759f129 (bug 1578355)
Backed out changeset 339ab54ca471 (bug 1578355)
Backed out changeset 284299dac42c (bug 1578355)
2019-09-20 14:05:12 +03:00
Edgar Chen 288ff16a76 Bug 1578355 - Part 3: Add the ability to consume transient user activation; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45353

--HG--
extra : moz-landing-system : lando
2019-09-20 10:31:59 +00:00
Edgar Chen d2f9c11eb5 Bug 1578355 - Part 2: Introduce UserActivation::State; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45344

--HG--
extra : moz-landing-system : lando
2019-09-20 10:31:57 +00:00
Edgar Chen 5b6fe53148 Bug 1578355 - Part 1: Move user-activation code from EventStateManager to UserActivation; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45168

--HG--
extra : moz-landing-system : lando
2019-09-20 10:31:55 +00:00
Alex Chronopoulos 37976e189f Bug 1572281 - Enhance CubebDeviceEnumerator to accept listeners and signal notifications when an audio device changes. r=pehrsons
CubebDeviceEnumerator already knows when an audio device changes. It is enhanced to allow listeners/observers registration and to create notifications when that happens. Also, it is hooked to the existing notification path.

On a minor note, it has been revisited the way the enumerator is touched in MediaEngineWebRTC class.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 10:13:51 +00:00
Alex Chronopoulos 192023066e Bug 1572281 - In DeviceChangeCallback class separate the observer from the subject functionality. r=pehrsons
DeviceChangeCallback class implements the observer pattern. However, the role of the observer and the subject is integrated into the same class which makes use of virtual methods to allow a separation of the roles. This makes code reading difficult. Also, it does not allow from a class to inherit only the observer role or the subject role. This patch breaks the DeviceChangeCallback class into two classes according to the observer or subject functionality.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 10:11:31 +00:00
Jon Coppeard ad4df9ae33 Bug 1581574 - Remove Heap<T> write barrier and rely on existing read barrier to make incremental marking work r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D46133

--HG--
extra : moz-landing-system : lando
2019-09-20 10:09:19 +00:00
Jon Coppeard 3fd1d3324c Bug 1582124 - Break Document cycles when they are destroyed r=smaug
This patch nulls out a Document's promises when it is destroyed to break cycles going through them and ensure Documents are cleaned up sooner.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 13:41:44 +00:00
Eden Chuang d6b2ea7588 Bug 1582125 - disable failed tests for fission r=perry
Disable failed tests for fission

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

--HG--
extra : moz-landing-system : lando
2019-09-18 22:35:22 +00:00
Bogdan Tara 7e0aba7d00 Backed out changeset b0c0887e223c (bug 1563063) for browser_test_feature_preferencereads and browser_test_profile_multi_frame_page_info failures CLOSED TREE 2019-09-19 23:18:06 +03:00
Nico Grunbaum 11d7e7febf Bug 1581023 - Expand DataChannel logging capabilities - r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D45800

--HG--
extra : moz-landing-system : lando
2019-09-19 14:50:57 +00:00
Bryce Seager van Dyk ee7fee057b Bug 1578143 - Prevent TrackBuffersManager attempting to access buffered ranges if none exist when evicting data. r=jya
It appears possible for data eviction to take place despite the manager not
currently having any buffered ranges. This shouldn't happen, but if it can if
the buffers have become full with 0 duration data. This patch attempts to
mitigate that case by removing all coded frames. This prevents a bad access on
the buffered ranges and should clear up space in the buffers to append more
data.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 15:38:40 +00:00
Jean-Yves Avenard 99df1db827 Bug 1575744 - P7. Promisify SendCrossProcessRedirect to avoid needing PHttpChannel to get a response. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D46163

--HG--
extra : moz-landing-system : lando
2019-09-18 13:14:30 +00:00
Jean-Yves Avenard bafae6af97 Bug 1575744 - P4. Add MozPromise::FromDomPromise. r=bholley
Similar to MozPromise::FromGeckoResult.

Allows to create a MozPromise that will be resolved/rejected when the JS promise does the same.
It would be nice to be able to chain the two promise types, but it would be an additional effort.
MozPromise::FromDomPromise is limited to primitive types only and the reject value type must be nsresult.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 02:21:12 +00:00
Emilio Cobos Álvarez 6c211da0ae Bug 1582374 - Add a warning when we find usage of the CSS zoom property. r=smaug,flod
Now that we count them, I think we should do this.

This property is pretty painful for various reasons:

 * It's a pretty awkward non-standard property.
 * Has a pretty short name, so people use it instead of the standard
   alternatives.
 * We cannot really even implement it easily anyhow, without breaking a whole
   bunch of stuff, because pages do things like:

```
myelement {
  zoom: 0.5;
  -moz-transform: scale(0.5);
  transform-origin: 0 0;
}
```

For now this is only recorded when CSS use counters are enabled (Nightly for
now), but I want to change it once bug 1578661 is in central.

The hope is that this warning slightly raises awareness of this property not
being standard. You get a CSS parsing error in the console, but those are
usually too noisy and disabled by default.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 01:31:35 +00:00
Emilio Cobos Álvarez e0fd226116 Bug 1582373 - Cleanup Document::SetReadyStateInternal. r=smaug
Just use conventions properly. As much as I dislike it.

I wanted to do it because I wanted to add a console message on load for a few
situations (bug 1582374), but I found a better place to put it.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 01:06:58 +00:00
Nicolas B. Pierron 58585aac29 Bug 1579876 - Add telemetry to estimate the benefit of a streaming parser for JS. data-review=mlopatka r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D45551

--HG--
extra : moz-landing-system : lando
2019-09-19 12:42:51 +00:00
Olli Pettay bcf140f437 Bug 1563063 - Cross-process idle handling, r=farre
This is to get initial feedback/review.
PIdleScheduler.ipdl has the documentation about the basic architecture.
(v15)

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

--HG--
extra : moz-landing-system : lando
2019-09-18 23:53:42 +00:00
Botond Ballo a61744ca91 Bug 1564195 - Group the results of APZInputBridge::ReceiveInputEvent() into a struct. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D46376

--HG--
extra : moz-landing-system : lando
2019-09-19 02:45:21 +00:00
Tom Ritter c2e992ed6e Bug 1570681 - Enforce eval restrictions in system contexts and the parent process r=ckerschb
We log to MOZ_LOG, report an error to the console, send telemetry, and in debug builds - crash

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

--HG--
extra : moz-landing-system : lando
2019-09-19 02:32:41 +00:00
Tom Ritter 9621f537b0 Bug 1570681 - Move Eval testing logic from nsContentSecurityManager to nsContentSecurityUtils r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D45484

--HG--
extra : moz-landing-system : lando
2019-09-18 19:36:31 +00:00
Alastor Wu 8b942bbf6a Bug 1575995 - part5 : add gTests r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D43317

--HG--
extra : moz-landing-system : lando
2019-09-13 00:13:24 +00:00
Adam Gashlin 5dbbd97138 Bug 1561546 Part 1 - Change scrollbar pref early. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D46363

--HG--
extra : moz-landing-system : lando
2019-09-18 21:28:06 +00:00
Zibi Braniecki a34942f78e Bug 1581692 - Remove unused .properties from dom. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com//D46193

Depends on D46192

--HG--
extra : histedit_source : 410f53956f4ffda07c6e39a81ba1591d37379bff
2019-09-18 19:38:40 +03:00
Adam Gashlin 285b3bed6a Bug 1582306 - Set tabfocus pref for test. r=masayuki
This avoids relying on the accessibility.tabfocus
pref having been set by a previous test.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 21:20:32 +00:00
Alastor Wu 503abe869c Bug 1575995 - part4 : add the pref 'media.hardwaremediakeys.enabled' to control this feature. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D43316

--HG--
extra : moz-landing-system : lando
2019-08-29 01:01:04 +00:00
alwu 9e595bc66b Bug 1575995 - part3 : implement play/pause controller. r=chunmin
The ideal situation for media control should be incooperated with the audio competition so that we only have to control one controller.

However, if it's multiple controllers at the same time, we would tend to only control the last one in order to reduce confustion.

Ex. If we pause controller A first, and then start controller B. So what should we do when we press `play/pause` hardware key? To resume controller A or to stop controller B, or do both things at the same time?

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

--HG--
extra : moz-landing-system : lando
2019-09-18 20:55:57 +00:00
Alastor Wu 81a1a09ca5 Bug 1575995 - part2 : implement the event source on OSX. r=spohl
On OSX, we would use the CG event tap to intercept media keys event.

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

--HG--
extra : moz-landing-system : lando
2019-09-14 03:30:30 +00:00
Alastor Wu d7506cd7d5 Bug 1575995 - part1 : implement basic classes for handling media hardware keys. r=baku
In order to receive platform level media hardward keys event, we create a `MediaHardwareKeysEventSource` which is used to implement intercepting those events according to different platforms.

We can add a `MediaHardwareKeysEventListener` onto `MediaHardwareKeysEventSource`, so that we can get notification whenever hardware media keys are being pressed.

`MediaHardwareKeysManager` is used to encapsulate all these details, it would create a source and corresponding listener.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 00:08:57 +00:00
Emilio Cobos Álvarez 76cccc05c8 Bug 1578661 - Add static_assert messages for use counter assertions. r=boris
This was a review comment which was easier to address as a separate patch.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 00:20:07 +00:00
Emilio Cobos Álvarez 95582debce Bug 1578661 - Report counted unknown properties as well. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D44717

--HG--
extra : moz-landing-system : lando
2019-09-19 00:20:04 +00:00
Emilio Cobos Álvarez 2b159772ee Bug 1578661 - Merge the stylesheet use counters, report them, and add tests. r=boris
C'est fini. Now to do the same with the unimplemented ones remains, but it
should be straight-forward.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 00:19:59 +00:00
Emilio Cobos Álvarez 1e858d2a04 Bug 1578661 - Fix use counter test. r=boris
By reporting the properties in MappedAttrParser that we used to (the test relies
on counting those), and by adjusting the histogram name to the new thing.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 00:20:39 +00:00
Emilio Cobos Álvarez 9c8ffa9e68 Bug 1578661 - Add telemetry histograms for all CSS properties. r=chutten,boris
And add them to the UseCounter enum. Also add some sanity-check assertions that
the reporting code relies on.

This works much like the deprecated operation list.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 00:20:37 +00:00
Emilio Cobos Álvarez 31755a845c Bug 1578661 - Remove old CSS use counters. r=boris
We only have two counters enabled, just for testing, and they just count from
the SVG mapped attribute code. That's not great, and they mostly complicate the
next few patches.

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

--HG--
extra : moz-landing-system : lando
2019-09-19 00:20:35 +00:00
Jonathan Watt d88a4a0a4b Bug 1559841. Make the 'load' event wait for OOP-iframes to load. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D41953

--HG--
extra : moz-landing-system : lando
2019-09-19 00:00:44 +00:00
Cosmin Sabou 2978a72248 Backed out 10 changesets (bug 1578661) for linting failures on layout/style/ServoCSSPropList.py. CLOSED TREE
Backed out changeset b1b5393b1099 (bug 1578661)
Backed out changeset b87eebb0cf6e (bug 1578661)
Backed out changeset 6ba2ee45f26e (bug 1578661)
Backed out changeset 4a1d45160d60 (bug 1578661)
Backed out changeset 7a5687bebc02 (bug 1578661)
Backed out changeset 33c306c9020a (bug 1578661)
Backed out changeset 89d7e6fb24b0 (bug 1578661)
Backed out changeset 42c4943e569b (bug 1578661)
Backed out changeset 88d988a80de1 (bug 1578661)
Backed out changeset 78c90f9e9eee (bug 1578661)
2019-09-19 01:50:03 +03:00
Haik Aftandilian 49d42aa115 Bug 1580900 - Part 2 - Extend nsIOSPermissionRequest to support screen-recording permission requests r=spohl
Adds nsIOSPermissionRequest::MaybeRequestScreenCapturePermission() to allow front-end code to trigger a screen-recording permission request dialog.

Depends on D46093

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

--HG--
extra : moz-landing-system : lando
2019-09-17 20:57:51 +00:00
Haik Aftandilian 86ab99c9a3 Bug 1580900 - Part 1 - Extend nsIOSPermissionRequest to support screen-recording permission checks r=spohl
Adds nsIOSPermissionRequest::GetScreenCapturePermissionState() to allow front-end code to check if Firefox has already been granted permission to record the screen.

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

--HG--
extra : moz-landing-system : lando
2019-09-17 22:13:36 +00:00
Masayuki Nakano 6789366d5e Bug 1540029 - part 10: Get rid of `TextEditRules` and `HTMLEditRules` r=m_kato
Now, we can get rid of `TextEditRules` and `HTMLEditRules` completely.
And also this patch renames their cpp files to `TextEditSubActionHandler`
and `HTMLEditSubActionHandler`.

`TextEditor::Init()` and `HTMLEditor::Init()` are still complicated due to
`AutoEditInitRulesTrigger`.  The following patch will remove it.

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

--HG--
rename : editor/libeditor/HTMLEditRules.cpp => editor/libeditor/HTMLEditSubActionHandler.cpp
rename : editor/libeditor/TextEditRules.cpp => editor/libeditor/TextEditSubActionHandler.cpp
extra : moz-landing-system : lando
2019-09-18 08:40:08 +00:00
Noemi Erli 76ab96731c Merge inbound to mozilla-central. a=merge 2019-09-19 00:50:29 +03:00
Emilio Cobos Álvarez 73baf90a76 Bug 1578661 - Add static_assert messages for use counter assertions. r=boris
This was a review comment which was easier to address as a separate patch.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 15:15:06 +00:00
Emilio Cobos Álvarez 4ce6b69adf Bug 1578661 - Report counted unknown properties as well. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D44717

--HG--
extra : moz-landing-system : lando
2019-09-18 15:15:15 +00:00
Emilio Cobos Álvarez 65b3948518 Bug 1578661 - Merge the stylesheet use counters, report them, and add tests. r=boris
C'est fini. Now to do the same with the unimplemented ones remains, but it
should be straight-forward.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 15:15:24 +00:00
Emilio Cobos Álvarez 2adb14b20a Bug 1578661 - Fix use counter test. r=boris
By reporting the properties in MappedAttrParser that we used to (the test relies
on counting those), and by adjusting the histogram name to the new thing.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 15:15:26 +00:00
Emilio Cobos Álvarez 7155c266f5 Bug 1578661 - Add telemetry histograms for all CSS properties. r=chutten,boris
And add them to the UseCounter enum. Also add some sanity-check assertions that
the reporting code relies on.

This works much like the deprecated operation list.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 15:44:39 +00:00
Emilio Cobos Álvarez 6a2a92e98a Bug 1578661 - Remove old CSS use counters. r=boris
We only have two counters enabled, just for testing, and they just count from
the SVG mapped attribute code. That's not great, and they mostly complicate the
next few patches.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 15:15:19 +00:00
Andreea Pavel 7494b360c0 Backed out 10 changesets (bug 1578661) for lints failure at ServoCSSPropList.cpp on a CLOSED TREE
Backed out changeset ed3c619100e7 (bug 1578661)
Backed out changeset 027514a2eaf6 (bug 1578661)
Backed out changeset f2e228282b20 (bug 1578661)
Backed out changeset 67c36136dce7 (bug 1578661)
Backed out changeset 2280b27cc130 (bug 1578661)
Backed out changeset 445d13a2c452 (bug 1578661)
Backed out changeset 89caaa850049 (bug 1578661)
Backed out changeset 2f8be5db1786 (bug 1578661)
Backed out changeset 51a015a9a0f8 (bug 1578661)
Backed out changeset ad8e1f27a600 (bug 1578661)
2019-09-18 18:09:30 +03:00
Elliot Stirling 374680fc66 Bug 1511033 - Support ServiceWorkerClients.openWindow() r=geckoview-reviewers,snorp,smaug
Adds a ServiceWorkerDelegate to GeckoRuntime that allows GeckoView applications
to handle ServiceWorkerClient.openWindow() requests.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 11:29:30 +00:00
Kris Maglione 1620380489 Bug 1581548: Handle new BrowsingContexts becoming discarded during nested event loop. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D46088

MANUAL PUSH: Cannot update reopened Phabricator revisions.

--HG--
extra : source : dc7ef690b396293d0b75469bb9731dce9bfe5c92
extra : amend_source : 7a3986333d5c357e6104fe05c8c901543f0e35eb
2019-09-17 22:19:50 +00:00
Andreea Pavel 31ca3fda59 Backed out 9 changesets (bug 1578661) for lints failure at ServoCSSPropList.py a=backout
Backed out changeset d16463e5698c (bug 1578661)
Backed out changeset c6d64ac858ba (bug 1578661)
Backed out changeset db306f1467f7 (bug 1578661)
Backed out changeset 273535aab82d (bug 1578661)
Backed out changeset f643262a8c25 (bug 1578661)
Backed out changeset b0db409ada96 (bug 1578661)
Backed out changeset dc96d13728e0 (bug 1578661)
Backed out changeset 11e1e8f0a1b7 (bug 1578661)
Backed out changeset 6dd7a0d914d9 (bug 1578661)
2019-09-18 13:53:34 +03:00
Mihai Alexandru Michis 59cfefde58 Merge inbound to mozilla-central. a=merge 2019-09-18 12:58:15 +03:00
Andreea Pavel 3a05650c79 Backed out changeset dc7ef690b396 (bug 1581548) for failing /test_window_open_discarded_bc.html on a CLOSED TREE 2019-09-18 09:50:31 +03:00
Byron Campen [:bwc] abf0777414 Bug 1569183: Create an ipdl struct called WebrtcProxyConfig, to cut down on the arg count on lots of functions. r=mjf,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D45562

--HG--
extra : moz-landing-system : lando
2019-09-17 18:19:04 +00:00
Byron Campen [:bwc] fec8b0d807 Bug 1569183: Stop doing a proxy lookup to determine whether we're configured to use a proxy (for the proxy_only_if_behind_proxy pref), and instead look at whether we loaded the doc using a proxy. r=mjf,mayhemer,jld
Differential Revision: https://phabricator.services.mozilla.com/D45289

--HG--
extra : moz-landing-system : lando
2019-09-18 14:27:42 +00:00
Byron Campen [:bwc] 57de6c6130 Bug 1569183: Remove some stuff from TCPSocket that NrTcpSocketIpc was the only user of. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D45112

--HG--
extra : moz-landing-system : lando
2019-09-17 18:18:15 +00:00
Byron Campen [:bwc] dbee4e76f5 Bug 1569183: Add a proxy policy argument to NrSocketProxyConfig, and always set this config on the NrIceCtx. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D45101

--HG--
extra : moz-landing-system : lando
2019-09-17 18:17:14 +00:00
Byron Campen [:bwc] 8bd10b72d0 Bug 1569183: Rename SetProxyServer to SetProxyConfig to better reflect what is actually going on. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D45100

--HG--
extra : moz-landing-system : lando
2019-09-17 18:17:13 +00:00
Matt Woodrow b8226cf581 Bug 1546022 - Activate mouse over state for new BrowserParents. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D44413

--HG--
extra : moz-landing-system : lando
2019-09-18 02:06:32 +00:00
Kris Maglione ec70f45d44 Bug 1577723: Store BrowsingContext ID in dom::Location rather than DocShell weak reference. r=farre
Storing a DocShell rather than a BrowsingContext causes a number of problems
when dealing with cross-process navigations. The most immediate in this case
is that some cross-origin-allowed operations only work after a local-to-remote
navigation only until the original DocShell is destroyed, which causes
intermittent test failures.

It also means, though, that after a local-to-remote navigation, where the
DocShell has not been destroyed, attempts to read same-origin properties still
end up at the old DocShell, and as a result, lie about the current state of
the BrowsingContext.

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

MANUAL PUSH: Cannot update re-opened Phabricator revisions.

--HG--
extra : source : 6ba3bcede28a51512b8f17606b917024813e98b9
extra : histedit_source : 8dcc4aaabfc3db541a1269dfcd6414c4009d1c47%2C424b940eac29b4e916ea390223103ca41922375d
2019-09-16 18:17:17 -07:00
Daniel Varga 2dc4f22a07 Backed out 2 changesets (bug 1577723) for wpt failure at /html/browsers/history/the-location-interface/no-browsing-context.window.html
Backed out changeset 8bf308d3b614 (bug 1577723)
Backed out changeset 6ba3bcede28a (bug 1577723)
2019-09-18 01:50:35 +03:00
Kris Maglione d70488e985 Bug 1577723: Follow-up: Fix another crash test relied on GC timing. r=bustage
MANUAL PUSH: Bustage fix.
2019-09-17 13:27:48 -07:00
Kris Maglione 5c43907520 Bug 1577723: Store BrowsingContext ID in dom::Location rather than DocShell weak reference. r=farre
Storing a DocShell rather than a BrowsingContext causes a number of problems
when dealing with cross-process navigations. The most immediate in this case
is that some cross-origin-allowed operations only work after a local-to-remote
navigation only until the original DocShell is destroyed, which causes
intermittent test failures.

It also means, though, that after a local-to-remote navigation, where the
DocShell has not been destroyed, attempts to read same-origin properties still
end up at the old DocShell, and as a result, lie about the current state of
the BrowsingContext.

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

MANUAL PUSH: Cannot update re-opened Phabricator revisions.

--HG--
extra : rebase_source : 417335868d70932981ae0b8908f60a22bdffb62c
extra : amend_source : 135861c9d33ec4b4d84c2ec36aa407ec91df9130
2019-09-16 18:17:17 -07:00
J.C. Jones 51aefb37d2 Bug 1573245 - Change AuthenticatorTransport to be string, not `enum` r=bzbarsky,keeler
Upstream: https://github.com/w3c/webauthn/issues/1268

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

--HG--
extra : moz-landing-system : lando
2019-09-17 07:50:44 +00:00
Bogdan Tara 361c83c1a9 Backed out 21 changesets (bug 1578327, bug 1575448, bug 1580091, bug 1576554, bug 1581049, bug 1576551, bug 1578329, bug 1576555) for platform.cpp related bustage CLOSED TREE
Backed out changeset 27afea20c396 (bug 1581049)
Backed out changeset be1ec4577d37 (bug 1581049)
Backed out changeset b4b6bbb18cc1 (bug 1581049)
Backed out changeset b30942f9db54 (bug 1581049)
Backed out changeset 473c431866f7 (bug 1578329)
Backed out changeset ac492dc3df20 (bug 1578329)
Backed out changeset f51875652f6f (bug 1578327)
Backed out changeset 512b7cbd18f6 (bug 1576555)
Backed out changeset 2d63a9934c00 (bug 1576555)
Backed out changeset ff73f648ab6c (bug 1576555)
Backed out changeset 49f49079bbb5 (bug 1576555)
Backed out changeset e8323157c6f3 (bug 1575448)
Backed out changeset 3b0d726f2dd6 (bug 1575448)
Backed out changeset 5924790abc4b (bug 1576554)
Backed out changeset a14ac9bb5338 (bug 1576554)
Backed out changeset b6d73f5042a7 (bug 1576551)
Backed out changeset 366030bd2d84 (bug 1576551)
Backed out changeset d7ee4148aad9 (bug 1576551)
Backed out changeset ec72dfc7301e (bug 1576551)
Backed out changeset 79b29286f906 (bug 1580091)
Backed out changeset 6f34c2e57ccf (bug 1580091)
2019-09-17 10:16:14 +03:00
Gerald Squelart 6b49069f3e Bug 1578329 - Use profiler_can_accept_markers() where appropriate - r=gregtatum
In places where profiler_is_active() was used around a profiler_add_marker() (or
similar) call, replace it with profiler_can_accept_markers().

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

--HG--
extra : moz-landing-system : lando
2019-09-17 01:53:56 +00:00
Gerald Squelart 5b86107991 Bug 1575448 - De/serialize ProfilerMarkerPayload derived objects - r=gregtatum
Payloads will serialize themselves into a `BlocksRingBuffer` entry when first
captured.
Later they will be deserialized, to stream JSON for the output profile.

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

--HG--
extra : moz-landing-system : lando
2019-09-17 01:51:41 +00:00
Gurzau Raul 1d0e84d2ec Backed out 2 changesets (bug 1573245) for Windows build bustages at WebAuthnManager.cpp on a CLOSED TREE.
Backed out changeset 0bf953d07a4f (bug 1573245)
Backed out changeset cfdf258c11ae (bug 1573245)
2019-09-17 08:40:27 +03:00
J.C. Jones c119c83cd4 Bug 1573245 - Include BindingUtils.h for WebAuthnManager on a CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D46109

--HG--
extra : moz-landing-system : lando
2019-09-17 05:16:26 +00:00
J.C. Jones 8cc2abfd2a Bug 1573245 - Change AuthenticatorTransport to be string, not `enum` r=bzbarsky,keeler
Upstream: https://github.com/w3c/webauthn/issues/1268

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

--HG--
extra : moz-landing-system : lando
2019-09-17 04:47:27 +00:00
Christoph Kerschbaumer ecfde38ed8 Bug 1580710: Expose functionality on the CSP Object to allow skipping the inline style checks. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D45631

--HG--
extra : moz-landing-system : lando
2019-09-16 23:47:19 +00:00
Brindusan Cristian c2ee78aa6f Backed out changeset 3af4309ffce7 (bug 1237782) for wpt assertions/leaks. CLOSED TREE 2019-09-17 01:03:46 +03:00
Karl Tomlinson 78bb2541b3 Bug 834505 undef GetCurrentTime() from windows-h-wrapper.template.h r=glandium
GetCurrentTime is declared in WinBase.h
https://github.com/tpn/winsdk-10/blob/master/Include/10.0.10240.0/um/WinBase.h#L91

Documentation for functions declared in winbase.h instruct to include
Windows.h. e.g.
https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-copyfile
Other macro declarations in winbase.h such as CopyFile() are already adjusted
with this wrapper via windows-h-unicode.decls.h

A similar, but different, static inline could be provided but is not required.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 02:52:20 +00:00
Emilio Cobos Álvarez 72746c1fb1 Bug 1578661 - Add static_assert messages for use counter assertions. r=boris
This was a review comment which was easier to address as a separate patch.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 02:31:34 +00:00
Emilio Cobos Álvarez 5ebe1a5793 Bug 1578661 - Report counted unknown properties as well. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D44717

--HG--
extra : moz-landing-system : lando
2019-09-18 02:31:25 +00:00
Emilio Cobos Álvarez 4a3f70732b Bug 1578661 - Merge the stylesheet use counters, report them, and add tests. r=boris
C'est fini. Now to do the same with the unimplemented ones remains, but it
should be straight-forward.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 02:31:21 +00:00
Emilio Cobos Álvarez f8337abcef Bug 1578661 - Fix use counter test. r=boris
By reporting the properties in MappedAttrParser that we used to (the test relies
on counting those), and by adjusting the histogram name to the new thing.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 02:31:19 +00:00
Emilio Cobos Álvarez 80192dc388 Bug 1578661 - Add telemetry histograms for all CSS properties. r=chutten,boris
And add them to the UseCounter enum. Also add some sanity-check assertions that
the reporting code relies on.

This works much like the deprecated operation list.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 02:33:04 +00:00
Emilio Cobos Álvarez a9ba10a9bc Bug 1578661 - Remove old CSS use counters. r=boris
We only have two counters enabled, just for testing, and they just count from
the SVG mapped attribute code. That's not great, and they mostly complicate the
next few patches.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 02:32:52 +00:00
Gerald Squelart dc8ac83ba6 Bug 1578329 - Use profiler_can_accept_markers() where appropriate - r=gregtatum
In places where profiler_is_active() was used around a profiler_add_marker() (or
similar) call, replace it with profiler_can_accept_markers().

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

--HG--
extra : moz-landing-system : lando
2019-09-18 01:22:12 +00:00
Gerald Squelart fc93e3d9da Bug 1575448 - De/serialize ProfilerMarkerPayload derived objects - r=gregtatum
Payloads will serialize themselves into a `BlocksRingBuffer` entry when first
captured.
Later they will be deserialized, to stream JSON for the output profile.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 01:20:10 +00:00
Oana Pop Rus 1f0c49ab12 Backed out changeset 3a49482c8210 (bug 1546022) for build bustage in nsFrameLoaderOwner.cpp on a CLOSED TREE 2019-09-18 04:22:40 +03:00
Kris Maglione 4b25ed5432 Bug 1581548: Handle new BrowsingContexts becoming discarded during nested event loop. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D46088

--HG--
extra : moz-landing-system : lando
2019-09-17 22:19:50 +00:00
Matt Woodrow 68f7f6bf05 Bug 1546022 - Activate mouse over state for new BrowserParents. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D44413

--HG--
extra : moz-landing-system : lando
2019-09-17 14:22:40 +00:00
Brian Hackett 0a791285af Bug 1575306 - Suppress reporting of uncaught testing sentinel, r=bzbarsky.
Differential Revision: https://phabricator.services.mozilla.com/D45964

--HG--
extra : moz-landing-system : lando
2019-09-16 20:17:17 +00:00
Lee Salzman 4b7fcf7dca Bug 1547063 - fuzz for SharedFTFace. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D44498

--HG--
extra : moz-landing-system : lando
2019-09-16 16:46:12 +00:00
Jonathan Kingston bd229a5c73 Bug 1237782 - Remove http override and add appcache pref r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44472

--HG--
extra : moz-landing-system : lando
2019-09-16 17:24:39 +00:00
Brindusan Cristian 073cc24f53 Backed out changeset 8f30450e231c (bug 1575306) for ESlint failure at PromiseTestUtils.jsm:99:31. CLOSED TREE 2019-09-16 22:30:52 +03:00
Brian Hackett 7a20c67cf9 Bug 1575306 - Suppress reporting of uncaught testing sentinel, r=bzbarsky.
Differential Revision: https://phabricator.services.mozilla.com/D45964

--HG--
extra : moz-landing-system : lando
2019-09-16 19:04:20 +00:00
Valentin Gosu b27c4726d0 Bug 1513574 - Remove UserAgentOverrides.jsm and UserAgentUpdates.jsm r=michal
Also removes the UA cache attached to nsILoadGroup and nsIRequestContext and the "http-on-useragent-request" observer notification.
If overriding the user agent is needed "http-on-modify-request" is equally usable (but should be used rarely, for performance reasons). A better way is using nsIDocShell.customUserAgent.

Depends on D14750

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

--HG--
extra : moz-landing-system : lando
2019-09-16 15:21:36 +00:00
Brian Hackett 9a41a4d559 Bug 1581414 - Don't report deprecation warnings after diverging from the recording, r=mccr8.
Differential Revision: https://phabricator.services.mozilla.com/D45960

--HG--
extra : moz-landing-system : lando
2019-09-16 13:33:43 +00:00
Andrea Marchesini ace0f7612e Bug 1571037 - BodyStreamHolder must release itself when unlinked, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45510

--HG--
extra : moz-landing-system : lando
2019-09-13 22:18:13 +00:00
Emilio Cobos Álvarez ff890f406e Bug 1579788 - Don't update validity state when the JS engine fails to execute the pattern. r=smaug
When we call nsContentUtils::IsPatternMatching, we swallow JS engine errors
unconditionally returning true.

This is bad, because if it happens in one of the value sets that arguably
shouldn't change the state of the element, we end up returning an arbitrary
value (true) which may or may not match the previous state of the element.

Handle error explicitly instead, by not updating the state.

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

--HG--
extra : moz-landing-system : lando
2019-09-16 10:11:42 +00:00
Daisuke Akatsuka 409a2bc885 Bug 713106: Make :visited selector enabled to use from DevTools. r=pbro,emilio
Differential Revision: https://phabricator.services.mozilla.com/D45624

--HG--
extra : moz-landing-system : lando
2019-09-13 22:12:12 +00:00
Daisuke Akatsuka ef36d9df93 Bug 713106: Show :visited rule while the pseudo is locked. r=pbro,emilio
Differential Revision: https://phabricator.services.mozilla.com/D45623

--HG--
extra : moz-landing-system : lando
2019-09-13 22:11:58 +00:00
Cosmin Sabou b1cfe7b829 Backed out 4 changesets (bug 1513574) for causing several browser chrome failures. CLOSED TREE
Backed out changeset 7d950fc452fb (bug 1513574)
Backed out changeset 11f015a3e739 (bug 1513574)
Backed out changeset be6959a563f6 (bug 1513574)
Backed out changeset ce51efd054b8 (bug 1513574)

--HG--
extra : histedit_source : a7bc0055925ac352826572f96730f3d90815bda0
2019-09-16 12:40:40 +03:00
Mirko Brodesser 99420c7112 Bug 1581471: part 8) Add `CloseContainerForOutputFormatted`. r=hsivonen
Depends on D45982

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

--HG--
extra : moz-landing-system : lando
2019-09-16 08:51:43 +00:00
Mirko Brodesser 3e241f3543 Bug 1581471: part 7) Add `OpenContainerForOutputFormatted`. r=hsivonen
Depends on D45981

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

--HG--
extra : moz-landing-system : lando
2019-09-16 08:49:49 +00:00
Mirko Brodesser 9ef663df5a Bug 1581471: part 6) Rename `noOfRows` to `aNumberOfRows`. r=hsivonen
Depends on D45980

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

--HG--
extra : moz-landing-system : lando
2019-09-16 08:47:23 +00:00
Mirko Brodesser 4dcebb170e Bug 1581471: part 5) Rename `restOfLine` to `restOfContent`. r=hsivonen
Depends on D45979

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

--HG--
extra : moz-landing-system : lando
2019-09-16 08:47:00 +00:00
Mirko Brodesser 2409797e41 Bug 1581471: part 4) Rename `linelength` to `contentLength`. r=hsivonen
Depends on D45978

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

--HG--
extra : moz-landing-system : lando
2019-09-16 08:41:23 +00:00
Mirko Brodesser 656caf51af Bug 1581471: part 3) Narrow scope of `linelength` variable. r=hsivonen
Depends on D45977

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

--HG--
extra : moz-landing-system : lando
2019-09-16 08:41:06 +00:00
Mirko Brodesser b9886e97f5 Bug 1581471: part 2) Factor out finding wrap index for line content to `CurrentLine`. r=hsivonen
Depends on D45976

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

--HG--
extra : moz-landing-system : lando
2019-09-16 08:40:38 +00:00
Mirko Brodesser 523be17fa8 Bug 1581471: part 1) Determine string length inside `GetUnicharStringWidth`. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D45976

--HG--
extra : moz-landing-system : lando
2019-09-16 09:10:00 +00:00
Valentin Gosu f9ed039670 Bug 1513574 - Remove UserAgentOverrides.jsm and UserAgentUpdates.jsm r=michal
Also removes the UA cache attached to nsILoadGroup and nsIRequestContext and the "http-on-useragent-request" observer notification.
If overriding the user agent is needed "http-on-modify-request" is equally usable (but should be used rarely, for performance reasons). A better way is using nsIDocShell.customUserAgent.

Depends on D14750

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

--HG--
extra : moz-landing-system : lando
2019-09-16 08:38:24 +00:00
Matt Woodrow 097e29a589 Bug 1579765 - Don't overwrite redirect timings when we convert DocumentChannel to a real channel. r=mayhemer
DocumentChannel doesn't use the REDIRECT_INTERNAL flag when replacing itself with a real channel if there has been a real redirect handled in the parent.
This is so that the docshell knows about the URI change, and to add history entries.
The timing data however always wanted to be treated as an internal redirect, so that we don't record a new 'redirectEnd' at the time of the switch.
This adds a new parameter to ConfigureReplacementChannel so that we can more accurately describe the behaviour we need.

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

--HG--
extra : moz-landing-system : lando
2019-09-16 07:22:32 +00:00
Matt Woodrow ff552dee87 Bug 1579765 - Move upload stream handling into ReplacementChannelConfig so that it gets applied to DocumentChannel as well as normal HTTP redirects. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D45146

--HG--
extra : moz-landing-system : lando
2019-09-16 07:25:18 +00:00
Shashank Kaushik 059c1179f1 Bug 1532933 - Enable ESLint for dom/xhr (manual changes). r=Standard8,baku
Depends on D45680

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

--HG--
extra : moz-landing-system : lando
2019-09-15 13:07:10 +00:00
Shashank Kaushik b7630b9df2 Bug 1532933 - Enable ESLint for dom/xhr (automatic changes). r=Standard8,baku
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-09-16 07:01:07 +00:00
Emilio Cobos Álvarez b39ed7bca4 Bug 1578379 - Remove some silly ifdefs. r=bzbarsky
mDummy doesn't even exist anymore.

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

--HG--
extra : moz-landing-system : lando
2019-09-14 03:13:07 +00:00
Botond Ballo 3a1c85bca4 Bug 1577859 - Remove the layout.scroll.root-frame-containers pref and code that depends directly on it. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D45198

--HG--
extra : moz-landing-system : lando
2019-09-15 17:01:22 +00:00
Emilio Cobos Álvarez c2bb091273 Bug 1579181 - Don't keep <use> shadow trees which we know we'll never render. r=longsonr
This partially addresses the regression, but not fully. With this patch we don't
maintain shadow trees for nodes that we know won't get rendered.

This works fast in WebKit / Blink because of a bug in their implementation which
doesn't synchronize style attributes, introduced in [1].

You can see this clearly if you click on the bug's test-case and inspect the
<use> shadow trees (there's no style="stroke:orange" whatsoever).

They can kinda get away with it because they don't properly implement SVG 2. In
particular, in Blink / WebKit, the style of the element in the <use> shadow tree
is the style of the referenced element, which means that even if the style
attribute isn't properly synced it's ~ok since it doesn't end up mattering for
styling.

Easiest test-case for the behavior difference is:

```
<!doctype html>
<style>
  rect:hover {
    fill: green;
  }
</style>
<svg width=300 height=300>
  <g id="canvas">
    <rect fill=red width=100 height=100></rect>
  </g>
  <g>
    <use x=200 href="#canvas"></use>
  </g>
</svg>
```

Where Firefox will properly update each square independently when hovered, but
Blink / WebKit won't.

This used to work faster because in this particular test-case we have 3 hidden
<use> elements whose href is the #canvas, which is basically everything.

Before moving to shadow trees we'd do it using anonymous content, and since we
never got a frame we'd never clone the subtree in the first case.

This case was faster before bug 1450250, but this approach makes other cases
slow that were fixed by that bug, like bug 1485402.

So I'll try to optimize shadow tree syncing instead, I guess, but there's no
good reason not to land this in the meantime IMHO.

[1]: f4b022e64b%5E%21/third_party/WebKit/WebCore/svg/SVGElement.cpp

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

--HG--
extra : moz-landing-system : lando
2019-09-15 16:09:28 +00:00
Jan Varga 4f4188c7ab Bug 1576260 - Make LSValue initialization fallible; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D45849

--HG--
extra : moz-landing-system : lando
2019-09-14 05:33:01 +00:00
Mike Conley a4df7349e3 Bug 1580848 - Clean up some review feedback on the browser_crash_oopiframe.js test. r=kmag
* The test first asserts that we can actually load iframes in separate subprocesses
* The test now loads in a new tab rather than a new window
* The test no longer uses the "fission" attribute
* The test avoids the BrowsingContext.get pattern, in favour of just passing the
  BrowsingContext from one actor to the other directly.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 09:16:19 +00:00
Mats Palmgren 616c110e54 Bug 400258 - Use the padding edge as the origin for offsetLeft/offsetTop also for box-sizing:border-box boxes. r=emilio
This is what the spec says and is compatible with other UAs.
https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsetleft

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

--HG--
extra : moz-landing-system : lando
2019-09-12 07:35:43 +00:00
John Lin 17e9f72cc3 Bug 1580600 - rename setRates() to setBitrate() and pass the value in bps. r=jya
Depends on D45775

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

--HG--
extra : moz-landing-system : lando
2019-09-13 23:38:32 +00:00
John Lin 1f7aded837 Bug 1580597 - p2: set timestamp and duration of the encoded frame. r=jya
Also remove the definition of unused struct for tracking of input timestamp.

Depends on D45774

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

--HG--
extra : moz-landing-system : lando
2019-09-13 23:38:32 +00:00
Edwin Takahashi cb92a930f0 Bug 1561046 - remove android_version == '23' from manifest files r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D45797

--HG--
extra : moz-landing-system : lando
2019-09-13 14:21:07 +00:00
Edwin Takahashi 557fc6ed68 Bug 1561046 - remove android_version >= '19' from manifest files r=gbrown
This patch removes annotations of `android_version >= 19`.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 22:14:38 +00:00
Edwin Takahashi 73510ce199 Bug 1526064 - re-enable tests in dom/media/mediasource/test/mochitest.ini for windows10-aarch64 r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D45887

--HG--
extra : moz-landing-system : lando
2019-09-13 22:12:05 +00:00
Brian Hackett e9ba8790f7 Bug 1573281 - Disable 1419902.html on asan builds, r=smaug.
Differential Revision: https://phabricator.services.mozilla.com/D45794

--HG--
extra : moz-landing-system : lando
2019-09-13 21:21:57 +00:00
Hiroyuki Ikezoe a7316f6141 Bug 1578973 - Don't do autofocus process if the target node of 'autofocus' is in a cross-origin document. r=nika
Note that I've confirmed no-cross-origin-autofocus.html works fine with
enabling fission on w3c-test.org.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 01:44:59 +00:00
Jan Varga 3ca5b40b9a Bug 1581127 - Add IsShuttingDown checks to DOM Cache origin initialization; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D45846

--HG--
extra : moz-landing-system : lando
2019-09-13 16:43:30 +00:00
Frederic Wang 8957655bf3 Bug 1579602 - Rename nsMathMLElement to dom::MathMLElement. r=bzbarsky
This commit renames nsMathMLElement/nsMathMLElementFactory classes into
MathMLElement/MathMLElementFactory and moves the former into the mozilla::dom
namespace. This is a preliminary step to introduce MathML DOM (bug 1579602).
Code behavior is not changed.

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

--HG--
rename : dom/mathml/nsMathMLElement.cpp => dom/mathml/MathMLElement.cpp
rename : dom/mathml/nsMathMLElement.h => dom/mathml/MathMLElement.h
rename : dom/mathml/nsMathMLElementFactory.cpp => dom/mathml/MathMLElementFactory.cpp
extra : moz-landing-system : lando
2019-09-13 16:27:54 +00:00
Edwin Takahashi f14598bb77 Bug 1561046 - remove android_version == '19' from test manifests r=gbrown
Removes API 19 specifier from test manifests.

There aren't many, but best to clean them up.

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

--HG--
extra : moz-landing-system : lando
2019-09-13 14:12:27 +00:00
Bas Schouten 7b4d55d375 Bug 1548373: Report Open stacks for XHR responses. r=mayhemer,julienw
Differential Revision: https://phabricator.services.mozilla.com/D42831

--HG--
extra : moz-landing-system : lando
2019-09-11 15:33:00 +00:00
Cosmin Sabou 1aeb602d5e Backed out 4 changesets (bug 1513574) for Android build bustage and browser chrome failures. CLOSED TREE
Backed out changeset f155c449e516 (bug 1513574)
Backed out changeset 1f2bbbe0f781 (bug 1513574)
Backed out changeset 5f8b5f72a4ea (bug 1513574)
Backed out changeset 0e4cababccc7 (bug 1513574)
2019-09-13 21:38:18 +03:00
Chun-Min Chang 11ef6fed23 Bug 1561412 - Remove unused SynthStreamListener class. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D35872

--HG--
extra : moz-landing-system : lando
2019-09-05 20:38:23 +00:00
Valentin Gosu ef68d827d8 Bug 1513574 - Remove UserAgentOverrides.jsm and UserAgentUpdates.jsm r=michal
Also removes the UA cache attached to nsILoadGroup and nsIRequestContext and the "http-on-useragent-request" observer notification.
If overriding the user agent is needed "http-on-modify-request" is equally usable (but should be used rarely, for performance reasons). A better way is using nsIDocShell.customUserAgent.

Depends on D14750

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

--HG--
extra : moz-landing-system : lando
2019-09-13 17:19:40 +00:00
Simon Giesecke f408d617b9 Bug 1580195 - Exclude calls of open(name, {}) and open(name) from telemetry. r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D45812

--HG--
extra : moz-landing-system : lando
2019-09-13 16:55:13 +00:00
Simon Giesecke 2bb315d0cf Bug 1093064 - Repeat garbage collection until ref count becomes 0 r=janv
Differential Revision: https://phabricator.services.mozilla.com/D42609

--HG--
extra : moz-landing-system : lando
2019-09-13 14:02:20 +00:00
John Dai da2a2940ad Bug 1580907 - Remove transferables attribute for SendAsyncMessage and SendQuery in JSWindowActor; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D45809

--HG--
extra : moz-landing-system : lando
2019-09-13 16:51:23 +00:00
Zibi Braniecki f2eed5bb3c Bug 1580991 - Trigger DOMLocalization::OnChange from Localization::Observe. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D45759

--HG--
extra : moz-landing-system : lando
2019-09-13 10:08:26 +00:00
Dorel Luca a31ddb5d86 Backed out changeset 6d1a9a57c526 (bug 1577723) for Reftests in /reftest/tests/dom/base/crashtests/973401.html. CLOSED TREE 2019-09-17 21:19:10 +03:00
Kris Maglione 38cfe79c25 Bug 1577723: Store BrowsingContext ID in dom::Location rather than DocShell weak reference. r=farre
Storing a DocShell rather than a BrowsingContext causes a number of problems
when dealing with cross-process navigations. The most immediate in this case
is that some cross-origin-allowed operations only work after a local-to-remote
navigation only until the original DocShell is destroyed, which causes
intermittent test failures.

It also means, though, that after a local-to-remote navigation, where the
DocShell has not been destroyed, attempts to read same-origin properties still
end up at the old DocShell, and as a result, lie about the current state of
the BrowsingContext.

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

--HG--
extra : moz-landing-system : lando
2019-09-17 14:56:03 +00:00
prathiksha 3e3db51f40 Bug 1561443 - Expose error code string to about:neterror with webidl. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D45540

--HG--
extra : moz-landing-system : lando
2019-09-17 07:51:57 +00:00
Masayuki Nakano db32271cec Bug 1540029 - part 2: Get rid of `TextEditRules::DocumentIsEmpty()` and `HTMLEditRules::DocumentIsEmpty()` r=m_kato
`TextEditRules::DocumentIsEmpty()` is a wrapper of `TextEditor::IsEmpty()` so
that we can get rid of it simply.

`HTMLEditRules::DocumentIsEmpty()` needs to change.  It's oddly checks only
`EditorBase::mPaddingBRElementForEmptyEditor` is `nullptr` or not.  However,
the editor may be completely empty.  And the result may be different from
`TextEditor::IsEmpty()` which is not overridden by `HTMLEditor`.  For partially
solving this issue, this patch makes `HTMLEditor` overrides `IsEmpty()` and
optimizes `TextEditor::IsEmpty()`.

With this change, the caller of `HTMLEditRules::DocumentIsEmpty()` may behave
differently in the only caller, `HTMLEditor::SelectEntireDocument()`.  And
unfortunately, its root called from `SelectAllCommand::DoCommand()`.  However,
it does just collapse `Selection` into the root element (`<body>` or
`Document.documentElement`) if it returns `true`.  Therefore, this change
must be safe since anyway `SelectionRefPtr()->SelectAllChildren()` with
the root element is exactly same as `SelectionRefPtr()->Collapse()` with
the empty root element if it's truly empty.

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

--HG--
extra : moz-landing-system : lando
2019-09-17 06:58:06 +00:00
Eden Chuang fd5c8abedb Bug 1581072 - Removing skip-if = fission for testing fission r=perry
ServiceWorker mochitests fail for Fission is fixed by bug 1542415.
Remove the skip-if for tests

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

--HG--
extra : moz-landing-system : lando
2019-09-16 21:11:57 +00:00
Eden Chuang fc138e3f12 Bug 1580496 - Return NS_ERROR_FAILURE while getting nullptr PaymentRequestChild for PaymentRquest r=baku
PaymentRequestChild could be nullptr while PaymentRequest's owner is nullptr.

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

--HG--
extra : moz-landing-system : lando
2019-09-17 07:49:52 +00:00
Jon Coppeard 7630259d43 Bug 1580883 - Use TimeDuration for CycleCollectorStats members r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D45697

--HG--
extra : moz-landing-system : lando
2019-09-18 12:48:46 +00:00
Jon Coppeard f326bb945c Bug 1580883 - Use TimeDuration for remaining global in nsJSEnvironment.cpp r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D45696

--HG--
extra : moz-landing-system : lando
2019-09-18 12:48:32 +00:00
Jon Coppeard 99e7fae124 Bug 1580883 - Use TimeDuration for constants in nsJSEnvironment.cpp r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D45695

--HG--
extra : moz-landing-system : lando
2019-09-18 12:48:23 +00:00
Jon Coppeard 559e2c332d Bug 1580883 - Use TimeStamp/TimeDuration APIs instead of PRTime/PR_Now() in nsJSEnvironment.cpp r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D45693

--HG--
extra : moz-landing-system : lando
2019-09-18 12:48:09 +00:00
Emilio Cobos Álvarez 74d4d8d59c Bug 1578661 - Add static_assert messages for use counter assertions. r=boris
This was a review comment which was easier to address as a separate patch.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 12:04:52 +00:00
Emilio Cobos Álvarez 30e754a811 Bug 1578661 - Report counted unknown properties as well. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D44717

--HG--
extra : moz-landing-system : lando
2019-09-18 12:04:48 +00:00
Emilio Cobos Álvarez 6021f6b576 Bug 1578661 - Merge the stylesheet use counters, report them, and add tests. r=boris
C'est fini. Now to do the same with the unimplemented ones remains, but it
should be straight-forward.

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

--HG--
extra : moz-landing-system : lando
2019-09-18 12:04:44 +00:00