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

98693 Коммитов

Автор SHA1 Сообщение Дата
Kagami Sascha Rosylight 69d9e4312c Bug 1686225 - Part 1: Replace infallible with needsErrorResult r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D102254
2021-01-21 15:49:29 +00:00
nirmay 55420bffb0 Bug 1677643 - Replace nsIScrollableFrame::{HORIZONTAL, VERTICAL} with ScrollDirections. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D102087
2021-01-21 17:45:19 +00:00
Simon Giesecke da3d1822e5 Bug 1687256 - Do not fail FileManager::GetUsage if some file was removed from the directory while iterating. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D102206
2021-01-21 14:39:31 +00:00
Edgar Chen 4827c5658b Bug 1686037 - Part 3: Remove duplicated ImplicitlyReleasePointerCapture call in PresShell; r=smaug
EventStateManager::PostHandleEvent would do the same thing, but need to handle
the cases that PresShell is destroyed and frame is destroyed in
pointerup/pointercancel event listener.

The former case would be handled in D102403. For the latter case, we allow
EventStateManager::PostHandleEvent to handle pointerup/pointercancel event while
frame is no longer available in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D102404
2021-01-21 14:54:55 +00:00
Edgar Chen b615527436 Bug 1686037 - Part 2: Clean up pointer capture info when PresContext is destroyed; r=smaug
Found a possible leak from running layout/base/tests/test_bug993936.html after
enable implicit pointer capture for touch event. The test synthesize touchstart
and touchmove event, but no touchend, so we don't run the release steps and the
PointerCaptureInfo still hold a reference to Element which cause the leak.

This could also possible happens in real world, for example, user touch a page
with finger that triggers pointer capture, and then tab get closed before touch
is released.

Differential Revision: https://phabricator.services.mozilla.com/D102403
2021-01-21 16:38:59 +00:00
Edgar Chen f43f83b1a9 Bug 1686037 - Part 1: Move nsGenericHTMLElement::GetPresContext to Element; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D102321
2021-01-21 14:19:57 +00:00
Simon Giesecke 4e33445ac3 Bug 1687254 - Skip directory entries that no longer exist in GetBodyUsage. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D102204
2021-01-21 15:33:04 +00:00
Simon Giesecke d2ae46de32 Bug 1687254 - Add GetDirEntryKind utility function. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D102203
2021-01-21 14:38:30 +00:00
Kagami Sascha Rosylight 4460528639 Bug 1520869 - Allow input/change events on disabled radio/checkboxes r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D102517
2021-01-21 14:18:18 +00:00
smolnar 578432795c Merge central to autoland. a=merge on a CLOSED TREE 2021-01-21 17:37:31 +02:00
smolnar 157d60cd59 Merge autoland to mozilla-central. a=merge 2021-01-21 17:29:17 +02:00
smolnar 6652db1a08 Backed out 6 changesets (bug 1678619) on suspicion of causing crashes (bug 1687914). a=backout DONTBUILD
Backed out changeset c8b691b8e793 (bug 1678619)
Backed out changeset 37b2f438bd2b (bug 1678619)
Backed out changeset 0a92dfd99dac (bug 1678619)
Backed out changeset 2043a28e668e (bug 1678619)
Backed out changeset 53e385030d67 (bug 1678619)
Backed out changeset 9a1d599b4060 (bug 1678619)
2021-01-21 17:25:23 +02:00
Mihai Alexandru Michis 8dae1cc76a Merge autoland to mozilla-central. a=merge 2021-01-21 11:42:55 +02:00
Mihai Alexandru Michis 910e64de92 Backed out changeset d4b644dd05b2 (bug 1657130) for causing worker crashes. a=backout
DONTBUILD
2021-01-21 11:38:45 +02:00
Jan-Ivar Bruaroey 1f52ebc03b Bug 1685833 - Make zero-argument version of setLocalDescription() respect restartIce() method. r=bwc
Depends on D101254

Differential Revision: https://phabricator.services.mozilla.com/D101255
2021-01-20 20:02:08 +00:00
Yaron Tausky 5d49240755 Bug 1657130 - Expose worker's window IDs to nsIWorkerDebugger r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D99441
2021-01-21 13:14:06 +00:00
Simon Giesecke 98a80aee92 Bug 1682536 - Use NotNull with WriteInfo. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D100091
2021-01-21 11:58:47 +00:00
Simon Giesecke 53647c7cbe Bug 1682536 - Use NotNull with Observer. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D100090
2021-01-21 11:58:44 +00:00
Simon Giesecke 294006b424 Bug 1682536 - Use references/NotNull with Listener. r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D99786
2021-01-21 11:58:37 +00:00
Simon Giesecke b45e1e2a1a Bug 1682536 - Use references/NotNull with IDBCursor. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D99785
2021-01-21 11:58:29 +00:00
Simon Giesecke 0875c1ca88 Bug 1682536 - Use references/NotNull with IDBMutableFile. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D99784
2021-01-21 11:58:27 +00:00
Mihai Alexandru Michis 1abc23fe8d Merge mozilla-central to autoland a=merge on a CLOSED TREE 2021-01-21 11:47:36 +02:00
Neil Deakin 7c97e0940d Bug 1644911, add notification bar when a subframe crashes that allows submitting a crash report, r=mconley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D97346
2021-01-21 08:44:51 +00:00
Neil Deakin 2ae4d6a15b Bug 1644911, add access to the childID from the frame crashed event, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D98206
2021-01-21 08:44:51 +00:00
Shane Caraveo 4a14410028 Bug 1594234 manifest v3 content security policy support r=robwu,geckoview-reviewers,agi
Implement manifest v3 CSP that is compatible with the current chrome implementation.

Support for content_security_policy.isolated_world (a.k.a. content_security_policy.content_scripts)
has been removed for consistency with
345390adf6%5E%21/

Differential Revision: https://phabricator.services.mozilla.com/D100573
2021-01-07 14:53:18 +00:00
Simon Giesecke 3d71cff61d Bug 1683828 - Use QM_TRY et al. in DBSchema. r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D100771
2021-01-20 16:35:48 +00:00
Yura Zenevich a6e8d4aaa9 Bug 1667998 - converted calls to EventUtils.sendMouseEvent to be async. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D97323
2021-01-15 18:20:44 +00:00
Daisuke Akatsuka b4770ef752 Bug 1678619: Implement a mechanism to fire pages-rank-changed event. r=mak
Depends on D100458

Differential Revision: https://phabricator.services.mozilla.com/D100459
2021-01-15 11:00:32 +00:00
Emilio Cobos Álvarez 7ffcbf8bb7 Bug 1687587 - Move nsDeferrals' definition to nsHTMLDNSPrefetch.cpp. r=smaug
Depends on D102368

Differential Revision: https://phabricator.services.mozilla.com/D102369
2021-01-20 09:18:05 +00:00
Emilio Cobos Álvarez 7273a90398 Bug 1687587 - Move no-op DNS listener to nsHTMLDNSPrefetch.cpp. r=smaug
No reason it lives in a header file.

Depends on D102367

Differential Revision: https://phabricator.services.mozilla.com/D102368
2021-01-20 09:18:49 +00:00
Emilio Cobos Álvarez a70873c588 Bug 1687587 - Cleanup a bit the nsHTMLDNSPrefetch code. r=smaug
Introduce a Priority parameter that we use rather than duplicating functions.

Depends on D102366

Differential Revision: https://phabricator.services.mozilla.com/D102367
2021-01-20 09:34:27 +00:00
Emilio Cobos Álvarez e1271b87c9 Bug 1687587 - Cleanup a bit Link.h. r=smaug
Depends on D102365

Differential Revision: https://phabricator.services.mozilla.com/D102366
2021-01-20 09:24:10 +00:00
Emilio Cobos Álvarez 929ed76787 Bug 1687587 - Remove useless virtual keywords from HTMLLinkElement.h. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D102365
2021-01-20 09:20:51 +00:00
Geoff Lankow 117b381c5e Bug 1683783 - Allow Thunderbird to load remote browsers in about:preferences. r=nika
Thunderbird loads moz-extension: pages in about:preferences to allow configuration of FileLink extensions. When remote extensions are enabled this will need to be done with a remote browser.

Differential Revision: https://phabricator.services.mozilla.com/D99844
2021-01-20 01:09:35 +00:00
Geoff Lankow 4f50db83d5 Bug 1671301 - Re-enable test_remoteworker_launch_new_process.js for Thunderbird. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D99176
2021-01-20 01:09:28 +00:00
Dorel Luca f3c332c453 Backed out 2 changesets (bug 1572798) for multiple failures. CLOSED TREE
Backed out changeset cfdebb863454 (bug 1572798)
Backed out changeset f2d3a6800638 (bug 1572798)
2021-01-20 00:15:48 +02:00
Emilio Cobos Álvarez 43d39a406f Bug 1572798 - Explicitly check for top contexts because devtools creates it.
MANUAL PUSH: Last minute orange on a CLOSED TREE
2021-01-19 21:25:39 +01:00
alwu f924a58a6d Bug 1685399 - part13 : add test. r=padenot
As we can only snapshot a telemetry histogram in the chrome process, we have to make them measurable in the chrome process and write a chrome mochitest.

Differential Revision: https://phabricator.services.mozilla.com/D101266
2021-01-19 19:49:23 +00:00
alwu a9784ab8ab Bug 1685399 - part12 : check video info's display and image size to verify if video is valid. r=bryce
If we're using null decoder, which generates an empty video frame (0*0), then `VideoInfo::IsValid()` would return false and we're not able to report the telemetry for that video.

Therefore, we should verify that by checking either display or image size to know if we should report the telemetry or not.

Differential Revision: https://phabricator.services.mozilla.com/D101561
2021-01-19 19:40:21 +00:00
alwu 2063aa51ae Bug 1685399 - part10 : add chrome-only attributes to allow us check accumulated time during testing. r=padenot,emilio
Differential Revision: https://phabricator.services.mozilla.com/D101264
2021-01-15 19:58:13 +00:00
alwu 92e9f1a852 Bug 1685399 - part9 : clean timer after report the result to prevent reporting same data again. r=padenot
We don't want to report the accumulated time that we've reported before, see '(4)' in [1] for more details.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1685399#c13

Differential Revision: https://phabricator.services.mozilla.com/D101560
2021-01-14 20:06:38 +00:00
alwu 55bd95b894 Bug 1685399 - part8 : remove unused methods in 'TimeDurationAccumulator'. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D101559
2021-01-14 19:54:45 +00:00
alwu abfb3825ba Bug 1685399 - part7 : implement a helper class to accumulate and report the telemetry probe. r=padenot,bryce
In this patch, we move the responsibility of accumulating time and report the telemetry to `TelemetryProbesReporter`.

There are some differences between new telemetry report and the old one.
1. more accuracy on knowing if element is visible
2. more accuracy on determining when it should start accumulating visible & invisible play time
3. being able to report the correct result when element encounts an error or changes to a new resource
4. report result whenever MediaDecoder stops working

Here is the explanation [1] describing why our previous method was not able to achieve those advantages.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1685399#c13

Differential Revision: https://phabricator.services.mozilla.com/D101112
2021-01-19 17:34:47 +00:00
alwu 2448cda8f9 Bug 1685399 - part6 : remove unused class 'MockMediaDecoderOwner'. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D101111
2021-01-14 19:54:43 +00:00
alwu 00a3950f2d Bug 1685399 - part5 : remove unused state 'PLAY_STATE_START'. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D101110
2021-01-14 19:54:43 +00:00
alwu 5c53d3f7d8 Bug 1685399 - part4 : check media info directly to know if video is valid. r=padenot
I will move these telemetry related codes out from media element, so I want to avoid using media element's own attribute to determine if we need to report the probe or not, which will help that following works don't need to reply on media element's own attribute.

Differential Revision: https://phabricator.services.mozilla.com/D101109
2021-01-14 19:54:42 +00:00
alwu 4b46783098 Bug 1685399 - part3 : use actual invisible state to determine if we should suspend decoding. r=padenot
There is no need for decoder to use both "document visibility" and "element's layout visibility" to determine if we should suspend decoding.

That can simply be done by checking `HTMLMediaElement::IsActuallyInvisible()`.

Differential Revision: https://phabricator.services.mozilla.com/D101108
2021-01-14 19:54:42 +00:00
alwu 9edb9d310f Bug 1685399 - part2 : reorgnize functions being used for determining if element is visible. r=padenot,webidl,mccr8
There are several functions related with an element's visibie state, which are confusing. So this patch is going to make them clearer and remove unnecessary function.

- `IsVisible()` : add description to mention that the visibility state is only for layout level, which doesn't represent the actual visible state.
- rename `IsHidden()` to `IsActualInvisible()` : make it represent the actual visible state of an element.
- remove `IsActive()` : current two callers of `IsActive()` only care about if the page is inactive or not, it doesn't care about if page hidden or not. So we can call the owner doc's method directly.

Differential Revision: https://phabricator.services.mozilla.com/D101107
2021-01-19 19:48:43 +00:00
alwu 45f3985c1e Bug 1685399 - part1 : remove `mCurrentLoadPlayTime`. r=padenot
`mCurrentLoadPlayTime` was added in [1], which is no longer in use, so we should remove it.

[1] https://phabricator.services.mozilla.com/D18628

Differential Revision: https://phabricator.services.mozilla.com/D101106
2021-01-14 19:54:41 +00:00
Emilio Cobos Álvarez 333b73de84 Bug 1572798 - Make content browsing contexts for tabs start as inactive. r=nika
Otherwise autoplay blocking until-in-foreground breaks with the other
patch in this bug, because it unblocks media playback once a browsing
context is active for the first time.

Differential Revision: https://phabricator.services.mozilla.com/D42329
2021-01-19 19:14:33 +00:00