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

91408 Коммитов

Автор SHA1 Сообщение Дата
Byron Campen [:bwc] 319b20ae91 Bug 1616875: Make this mochitest use the right kind of timestamps, and remove some unused code. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D64241

--HG--
extra : moz-landing-system : lando
2020-03-20 15:35:39 +00:00
Byron Campen [:bwc] 865bbdca09 Bug 1616875: Move some receiver-related testing functions from RTCPeerConnection to RTCRtpReceiver. r=ng,smaug
Differential Revision: https://phabricator.services.mozilla.com/D64262

--HG--
extra : moz-landing-system : lando
2020-03-20 15:33:55 +00:00
Byron Campen [:bwc] 9a84c4d7b4 Bug 1616875: Add some functions to PeerConnectionObserver that PeerConnectionImpl can use to fire track/stream association events. r=jib,smaug
Differential Revision: https://phabricator.services.mozilla.com/D64237

--HG--
extra : moz-landing-system : lando
2020-03-20 15:33:37 +00:00
Byron Campen [:bwc] 1898507132 Bug 1616875: Create RTCRtpReceiver in c++, and move code into it from both JSImpl and other places in c++. Also, move some code from JSImpl to PeerConnectionImpl. r=jib,smaug
Differential Revision: https://phabricator.services.mozilla.com/D64235

--HG--
extra : moz-landing-system : lando
2020-03-20 15:33:24 +00:00
Byron Campen [:bwc] 82081f2ffa Bug 1616875: Remove code that we will not need to move to RTCRtpReceiver. r=ng,smaug
Primarily, this removes code that was compensating for inconsistencies between webrtc.org's timestamps, and JS timestamps. Also, this removes a few bits of indirection on GetRtpSources; that's all going to go directly to RTCRtpReceiver now. None of this code is being moved elsewhere.

Depends on D50395

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

--HG--
extra : moz-landing-system : lando
2020-03-20 15:33:12 +00:00
alwu 371b11291d Bug 1582509 - part1 : implement 'MediaPositionState' and 'setPositionState()'. r=emilio
According to the spec [1], implement the dictionary `MediaPositionState` and `setPositionState()`.

[1] https://w3c.github.io/mediasession/#dom-mediasession-setpositionstate

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

--HG--
extra : moz-landing-system : lando
2020-03-19 19:29:40 +00:00
Bogdan Tara 2b0b0d8b79 Backed out 9 changesets (bug 1616875) for bustages complaining about RTCRtpReceiver.h CLOSED TREE
Backed out changeset 92ed87a5add4 (bug 1616875)
Backed out changeset 96b3a322e605 (bug 1616875)
Backed out changeset a301ce4e5571 (bug 1616875)
Backed out changeset ac73b2ce3e20 (bug 1616875)
Backed out changeset f5a201261e83 (bug 1616875)
Backed out changeset 36892aed2a94 (bug 1616875)
Backed out changeset 2c21627f3678 (bug 1616875)
Backed out changeset ebdad7b7b632 (bug 1616875)
Backed out changeset 3bad18c7a567 (bug 1616875)
2020-03-20 16:38:30 +02:00
Mirko Brodesser 312bf3de69 Bug 1623858: part 3) Remove `TextInputSelectionController::mLimiter`. r=smaug
It was never read apart from forwarding it to `nsFrameSelection`.

Depends on D67600

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

--HG--
extra : moz-landing-system : lando
2020-03-20 13:23:59 +00:00
Mirko Brodesser c477d38a70 Bug 1623858: part 2) Declare `nsIContent::HasIndependentSelection` `const`. r=smaug
Depends on D67599

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

--HG--
extra : moz-landing-system : lando
2020-03-20 13:23:00 +00:00
Mirko Brodesser 8c66344a6d Bug 1623858: part 1) Rename `nsINode::IsSelectionDescendant` to `nsINode::IsMaybeSelected`. r=smaug
More accurate.

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

--HG--
extra : moz-landing-system : lando
2020-03-20 14:27:39 +00:00
Emilio Cobos Álvarez c07f3b6b0b Bug 1622235 - Make defer scripts wait for stylesheets. r=hsivonen
Rename ScriptLoader::mDocumentParsingDone to
ScriptLoader::mDeferCheckpointReached, and make it also get unblocked by
stylesheet loading.

Remove a useless null-check for mDocument as we unconditionally dereference it
below when checking mDocument->HaveFiredDOMTitleChange()

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

--HG--
extra : moz-landing-system : lando
2020-03-20 13:33:11 +00:00
Mark Banner d69ed85444 Bug 1621166 - Fix ESLint bustage in browser_media_control_stop_timer.js. r=MeFisto94
Differential Revision: https://phabricator.services.mozilla.com/D67622

--HG--
extra : moz-landing-system : lando
2020-03-20 13:52:56 +00:00
Byron Campen [:bwc] 78e76f65fb Bug 1616875: Make this mochitest use the right kind of timestamps, and remove some unused code. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D64241

--HG--
extra : moz-landing-system : lando
2020-03-19 18:42:57 +00:00
Byron Campen [:bwc] 72efb619af Bug 1616875: Move some receiver-related testing functions from RTCPeerConnection to RTCRtpReceiver. r=ng,smaug
Differential Revision: https://phabricator.services.mozilla.com/D64262

--HG--
extra : moz-landing-system : lando
2020-03-19 18:42:29 +00:00
Byron Campen [:bwc] 88d739273e Bug 1616875: Add some functions to PeerConnectionObserver that PeerConnectionImpl can use to fire track/stream association events. r=jib,smaug
Differential Revision: https://phabricator.services.mozilla.com/D64237

--HG--
extra : moz-landing-system : lando
2020-03-19 18:42:16 +00:00
Byron Campen [:bwc] fc5f5e381e Bug 1616875: Create RTCRtpReceiver in c++, and move code into it from both JSImpl and other places in c++. Also, move some code from JSImpl to PeerConnectionImpl. r=jib,smaug
Differential Revision: https://phabricator.services.mozilla.com/D64235

--HG--
extra : moz-landing-system : lando
2020-03-19 18:41:58 +00:00
Byron Campen [:bwc] 4e1d375bf8 Bug 1616875: Remove code that we will not need to move to RTCRtpReceiver. r=ng,smaug
Primarily, this removes code that was compensating for inconsistencies between webrtc.org's timestamps, and JS timestamps. Also, this removes a few bits of indirection on GetRtpSources; that's all going to go directly to RTCRtpReceiver now. None of this code is being moved elsewhere.

Depends on D50395

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

--HG--
extra : moz-landing-system : lando
2020-03-19 18:41:46 +00:00
Henri Sivonen 1f2c022aca Bug 1572233 - Avoid moving the focus as if by keyboard when IME code merely probes for the next focusable. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D67462

--HG--
extra : moz-landing-system : lando
2020-03-20 11:45:49 +00:00
Mirko Brodesser ad4d7454de Bug 1622752: annotate `Selection::ScrollIntoView` with `MOZ_CAN_RUN_SCRIPT`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D67002

--HG--
extra : moz-landing-system : lando
2020-03-16 21:04:46 +00:00
Bogdan Tara 69ff22a78e Backed out changeset e50cbce87f8d (bug 1618539) for nsFocusManager related crashes CLOSED TREE 2020-03-20 11:25:11 +02:00
Masayuki Nakano f92d37e44f Bug 1623239 - Make new methods of `DataTransferItemList` which were added by bug 1609603 refer `mIndexedItems[0]` rather than `mItems` r=smaug
Previously, `DataTransfer::GetTypes()` referred `DataTransferItemList::mIndexedItems[0]`
via `DataTransferItemList::MozItemsAt(0)`:
https://searchfox.org/mozilla-central/rev/678216c08807075a5616ea29c15950bb3090905b/dom/events/DataTransfer.cpp#337,343,349
https://searchfox.org/mozilla-central/rev/61f224ec08ddc6f9a93ac45c8c3c5f7159be7c2a/dom/events/DataTransferItemList.cpp#469-470,476

However, now, `DataTransferItemList::GetTypes()`, `DataTransferItemList::HasItem()` and
`DataTransferItemList::HasFile()` refers `DataTransferItemList::mItem`.  That's the
reason why the fix of bug 1609603 changed the behavior.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 16:03:27 +00:00
Christoph Kerschbaumer 3e884ce321 Bug 1188538: Ensure every protocol handler sets a valid security flag. r=bholley,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D67496

--HG--
extra : moz-landing-system : lando
2020-03-20 08:25:18 +00:00
Henri Sivonen 287ee18258 Bug 1618539 - Remove content-process use of nsIFocusManager::GetActiveWindow. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D66416

--HG--
extra : moz-landing-system : lando
2020-03-20 08:25:58 +00:00
Narcis Beleuzu 66477aeb36 Backed out changeset 20f1bb2d5bd2 (bug 1623562) for bc failures. CLOSED TREE 2020-03-20 05:42:41 +02:00
Dan Glastonbury d15761b621 Bug 1623562 - Refactor allowPlugins to use BrowsingContext. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D67428

--HG--
extra : moz-landing-system : lando
2020-03-20 02:16:12 +00:00
alwu 699bb58267 Bug 1621166 - part4 : add test. r=MeFisto94
Differential Revision: https://phabricator.services.mozilla.com/D67385

--HG--
extra : moz-landing-system : lando
2020-03-20 00:10:31 +00:00
alwu 1ca8d55a56 Bug 1621166 - part3 : make 'playMedia' and 'pauseMedia' as general utils functions. r=MeFisto94
There are several tests using similar methods of playing/pausing media, and we should make them as util functions to share the same code.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 21:07:56 +00:00
alwu 7db6ce8171 Bug 1621166 - part2 : do not stop media control for media being used in PIP mode. r=MeFisto94
The media element being used in the PIP mode would always display on the screen even if the the tab it belongs to is in the background, so users would have high chance to interact with it again. Therefore, we don't want to start a stop-timer to cancel media control for that element.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 18:15:33 +00:00
alwu 86fbf04461 Bug 1621166 - part1 : add a method to know if media element is being used in PIP mode. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D67380

--HG--
extra : moz-landing-system : lando
2020-03-19 21:01:12 +00:00
Tom Schuster 5eb9932e47 Bug 1621813 - Remove nsIScriptError.exceptionFlag. r=mccr8
I made some changes in preparation for removing nsIScriptError.flags in favor
of nsIConsoleMessage.logLevel.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 21:31:44 +00:00
Matt Woodrow 72a7d5a69b Bug 1613002 - Fix process switch channel connection race. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D67090

--HG--
extra : moz-landing-system : lando
2020-03-19 22:30:07 +00:00
Chun-Min Chang ce0d9c74e7 Bug 1621779 - Make sure BrowsingContext exists before using it. r=alwu
A declare of a pointer in the init-statement within if need to be
checked if it's a NULL before it's being used, to avoid a potential
crash.

To prevent any goes wrong in mMediaSessionInfoMap and lead to create a
null BrowsingContext pointer from it, using an assertion is more
straightforward.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 17:53:42 +00:00
Jeff Gilbert d40a464203 Bug 1622536 - Treat js::Scalar::MaxTypedArrayViewType like Uint8Array for webgl.compressedTexImage. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D67396

--HG--
extra : moz-landing-system : lando
2020-03-19 09:15:22 +00:00
alwu 440d34aa89 Bug 1620077 - part2 : enable MediaSession and MediaMetadata in testing. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D67401

--HG--
extra : moz-landing-system : lando
2020-03-19 17:38:59 +00:00
Andrea Marchesini 61c6fff328 Bug 1623385 - Console API must support the logging of SharedArrayBuffers, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D67494

--HG--
extra : moz-landing-system : lando
2020-03-19 16:32:56 +00:00
Simon Giesecke acddf5bae9 Bug 1617170 - Remove duplication around deleting files. r=janv,dom-workers-and-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D65306

--HG--
extra : moz-landing-system : lando
2020-03-19 14:40:04 +00:00
Simon Giesecke 393a8cb4a2 Bug 1617170 - Split StructuredCloneFile into parent- and child-specific classes. r=janv,dom-workers-and-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D65167

--HG--
extra : moz-landing-system : lando
2020-03-19 11:35:03 +00:00
Simon Giesecke 6257967779 Bug 1617170 - Deserialize Blob only when it is used in AllocPBackgroundIDBDatabaseFileParent. r=janv
Differential Revision: https://phabricator.services.mozilla.com/D65948

--HG--
extra : moz-landing-system : lando
2020-03-19 11:34:58 +00:00
Simon Giesecke 253bdd830f Bug 1617170 - Reduce statefulness of FileHelper. r=janv,dom-workers-and-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D65305

--HG--
extra : moz-landing-system : lando
2020-03-19 11:35:00 +00:00
Alphan Chen cb65e20cb3 Bug 1507287 - Make sessionRestore work with session history living in the parent process. r=peterv,mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D46281

--HG--
extra : moz-landing-system : lando
2020-03-19 14:31:52 +00:00
Mihai Alexandru Michis 93ec4f0381 Backed out changeset f01596089356 (bug 1220810) for causing crashes in test_performance_attributes_exist_in_object.html
CLOSED TREE
2020-03-19 17:12:32 +02:00
Mirko Brodesser e2af57ec37 Bug 1621620: part 3) Annotate `nsFrameSelection::MoveCaret` with `MOZ_CAN_RUN_SCRIPT`. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D66396

--HG--
extra : moz-landing-system : lando
2020-03-19 13:58:33 +00:00
Emilio Cobos Álvarez 04828e3a4a Bug 253870 - Make disabled form controls selectable. r=masayuki,MarcoZ
This rejiggers a bit the way selection focus is handled so that focusing a
disabled form control with the mouse handles selection properly, and hides the
document selection and so on.

This matches the behavior of other browsers as far as I can tell.

Given now readonly and disabled editors behave the same, we can simplify a bit
the surrounding editor code.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 13:18:16 +00:00
Andrea Marchesini e4db0e4496 Bug 1220810 - Hardcode localhost to loopback, r=ckerschb,dragana
Differential Revision: https://phabricator.services.mozilla.com/D64586

--HG--
extra : moz-landing-system : lando
2020-03-19 13:06:48 +00:00
Arthur Iakab 768dcd08ae Backed out changeset 0b8ffd5fed51 (bug 1580447) for causing build bustages.
CLOSED TREE
2020-03-19 14:53:26 +02:00
Mirko Brodesser c602e0e0d7 Bug 1623333: part 4) Assert Selection's type is `eNormal` in relevant methods accessing `mFrameSelection`. r=smaug
Helps to determine which methods of `nsFrameSelection` are intended to
be called only for the `eNormal` Selection.

Driven by the idea that state of `nsFrameSelection` relevant only for
the `eNormal` Selection should later move to a `NormalSelection` class.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 11:08:58 +00:00
David Teller 96c856d32a Bug 1580447 - Expose Content{Parent, Child} to JS;r=nika
Differential Revision: https://phabricator.services.mozilla.com/D65344

--HG--
extra : moz-landing-system : lando
2020-03-19 09:13:48 +00:00
Makoto Kato 477d3ef5bf Bug 1621241 - Don't apply safe-area-insets-* if device doesn't have cutout area. r=smaug
This is a mistake implementation of cutout support.

When OS/device doesn't support cutout (safe-area-insets-*), widget returns 0 for safe area insets values.
So if it is 0, we shouldn't set safe-area-insets.

Also, I will add test for this by bug 1622713. Actually, no Android emulator that supports notch.

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

--HG--
extra : moz-landing-system : lando
2020-03-18 10:02:48 +00:00
Mihai Alexandru Michis 2922453b6e Backed out 10 changesets (bug 1623278, bug 1617170, bug 1620273, bug 1597954) for causing bustages.
CLOSED TREE

Backed out changeset 50c0e58dd654 (bug 1623278)
Backed out changeset b31ddbcdd2f2 (bug 1597954)
Backed out changeset 8b03993a9234 (bug 1623278)
Backed out changeset ad7b08acadd6 (bug 1623278)
Backed out changeset bb094a6084b3 (bug 1623278)
Backed out changeset 7fdf38a403bb (bug 1623278)
Backed out changeset d69cf5fcb571 (bug 1620273)
Backed out changeset 5abef9862e60 (bug 1617170)
Backed out changeset 11d9ccb4ddd8 (bug 1617170)
Backed out changeset 6df7028b41d0 (bug 1617170)
2020-03-19 13:30:26 +02:00
Masatoshi Kimura 3df19bc1d4 Bug 1623222 - Remove the charset parameter from nsITextToSubURI::UnEscapeURIForUI. r=hsivonen
Only 3 callers are using a non-UTF-8 charset as the first parameter.
* MediaDocument.cpp: This does not make sense because the "filename" part of
  URLs will always be encoded with UTF-8.
* nsContextMenu.js: This is wrong because "mailto:" URLs don't care about the
  document charset.
* Finder.jsm: This caused bug 1623222.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 10:45:28 +00:00