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

707312 Коммитов

Автор SHA1 Сообщение Дата
alwu 36c9f9f54a Bug 1627999 - part1 : manage the audio focus in `MediaPlaybackStatus` r=bryce
This patch will do :
- introduce a concept `audio focus` among different contexts within a tab
- determine the audio focus owner when the context becomes audible or the owner destroys

The advantage of doing so :
- the audio focus helps us to decide the active media session that would be implemented in the following part

More details:
When there are serveral contexts playing at the same time within a tab, we would like to determine an audible context from them to represent the tab, and that is the `audio focus` we mean in this bug.

Differential Revision: https://phabricator.services.mozilla.com/D72495
2020-05-14 05:50:09 +00:00
Karl Tomlinson bba064955e Bug 1637159 provide XMLHttpRequest owner via DOMEventTargetHelper constructor r=smaug
Depends on D75039

Differential Revision: https://phabricator.services.mozilla.com/D75041
2020-05-14 05:28:36 +00:00
Karl Tomlinson d07bf2b285 Bug 1637159 specify DOMEventTargetHelper owner for IDBFileHandle via constructor r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D75037
2020-05-14 05:28:36 +00:00
Philip Chimento 4109b160c0 Bug 1629293 - Make JS::PrintError take either JSErrorReport or JS::ErrorReportBuilder. r=evilpie
From the existing usage of the function, it seems like it should either
take a JSErrorReport with no toStringResult, or a JS::ErrorReportBuilder
where it can get both the JSErrorReport and the toStringResult.

Differential Revision: https://phabricator.services.mozilla.com/D73523
2020-05-14 04:44:51 +00:00
Philip Chimento 672dc17ff4 Bug 1629293 - Make JS::ErrorReportBuilder::init exclusively support JS::ExceptionStack. r=evilpie,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D73522
2020-05-14 04:44:33 +00:00
Philip Chimento f93330de3e Bug 1629293 - Expose js::ErrorReport in public API. r=evilpie
Renames it to JS::ErrorReportBuilder, since it is used to 'build' a
JSErrorReport object.

Differential Revision: https://phabricator.services.mozilla.com/D73521
2020-05-14 04:44:15 +00:00
Philip Chimento 8b8d9134e0 Bug 1505129 - Print code points in PrintErrorLine. r=jwalden
This would be nicer if we changed the loop that prints tokenOffset()
number of '.' characters, to take into account the visual column width
of the code points that it's supposed to line up with. But I don't see
any readily available function for that.

Differential Revision: https://phabricator.services.mozilla.com/D73520
2020-05-14 04:43:47 +00:00
Philip Chimento 978079fe6f Bug 1506323 - Add JS::PrintError to public API. r=evilpie
Differential Revision: https://phabricator.services.mozilla.com/D73519
2020-05-14 04:43:16 +00:00
Marco Zehe bc8f0b63cb Bug 1635538 - Correct the AXRole for image maps, r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D75030
2020-05-13 20:07:42 +00:00
Marco Zehe 7215ba00a1 Bug 1635527 - Correct AXRole for status bar, r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D75028
2020-05-13 20:06:51 +00:00
Hiroyuki Ikezoe 9474568c56 Bug 1637801 - Drop a PrerenderDecision check in the PrerenderDecision::No case. r=boris
PrerenderDecision::Partial no longer falls back to the No case since bug
1634616.

Differential Revision: https://phabricator.services.mozilla.com/D75222
2020-05-14 04:53:08 +00:00
Hiroyuki Ikezoe f56f6da16b Bug 1637801 - Constify some functions in nsDisplayTransform. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D75221
2020-05-14 04:52:11 +00:00
Hiroyuki Ikezoe f775aab35e Bug 1637806 - Skip composing only if there exists the previous composed value. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D75224
2020-05-14 04:37:09 +00:00
Narcis Beleuzu d0074be6df Backed out 5 changesets (bug 1637433) for build bustages. CLOSED TREE
Backed out changeset c0f62d4c134a (bug 1637433)
Backed out changeset 63e725b2ae8f (bug 1637433)
Backed out changeset b42efea62259 (bug 1637433)
Backed out changeset c58ca2f35ed9 (bug 1637433)
Backed out changeset 7059b1afe7a6 (bug 1637433)
2020-05-14 04:58:22 +03:00
Matt Woodrow 98b902004c Bug 1637487 - Store mixed content security flags as a flags word on Document instead of bools. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D75026
2020-05-14 01:27:42 +00:00
Matt Woodrow 2f85a514ca Bug 1637487 - Compute broken flag when we need to use it. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D75025
2020-05-14 01:27:24 +00:00
Matt Woodrow 861c02747c Bug 1637487 - Factor out calls to log changes to mixed content security state. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D75024
2020-05-14 01:27:11 +00:00
Matt Woodrow 6438ccaaf7 Bug 1637487 - Factor out updating root Document security flags. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D75023
2020-05-14 01:27:03 +00:00
Matt Woodrow 7c1f4443d0 Bug 1637487 - Factor out setting of the broken security state flags. r=ckerschb
Factor out broken flag clearing

Differential Revision: https://phabricator.services.mozilla.com/D75022
2020-05-14 01:26:50 +00:00
Matt Woodrow 1b984fae62 Bug 1637487 - Fold the branches for each pref together, since they do the same thing. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D75021
2020-05-14 01:26:38 +00:00
Matt Woodrow 8645f20d35 Bug 1637487 - Flatten the mixed content event runner into the calling code, so it's no longer needed. r=ckerschb
This looks like it was necessary a long time ago, but now just runs the same calls as the calling code, so unnecessarily splits the logic into two.

Differential Revision: https://phabricator.services.mozilla.com/D75020
2020-05-14 01:26:25 +00:00
Matt Woodrow f88593276e Bug 1637487 - Refactor calls to OnSecurityChange to all be a single call at the end of ShouldLoad. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D75019
2020-05-14 01:26:17 +00:00
Matt Woodrow c47de00726 Bug 1637487 - GetState is infallible, so rely on the result. r=ckerschb
We previously were checking the nsresult inconsistently.

Differential Revision: https://phabricator.services.mozilla.com/D75018
2020-05-14 01:26:05 +00:00
Jean-Yves Avenard 09316a5aa4 Bug 1637433 - P5. replace ConnectActorRunnable with lambda. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D74996
2020-05-14 00:26:34 +00:00
Jean-Yves Avenard 9ad952c7be Bug 1637433 - P4. Remove ForceCloseBackgroundActorsRunnable. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D74995
2020-05-14 00:26:31 +00:00
Jean-Yves Avenard 452c248a30 Bug 1637433 - P3. Remove unused class. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D74994
2020-05-14 00:26:22 +00:00
Jean-Yves Avenard 4629c7f6b2 Bug 1637433 - P2. Replace ShutdownBackgroundThreadRunnable with simple task for clarity. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D74993
2020-05-14 00:47:45 +00:00
Jean-Yves Avenard af15c09ca9 Bug 1637433 - P1. Remove unused MessageLoop. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D74992
2020-05-14 00:45:43 +00:00
Geoff Lankow 82253c37f5 Bug 1633931 - Fix and re-enable WebExtensions tests on Thunderbird. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D72972
2020-05-13 23:18:44 +00:00
Gijs Kruitbosch d6e7c731e7 Bug 1558635 - use an html:template for the customize mode palette to avoid instantiating items in the palette, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D74097
2020-05-13 23:31:05 +00:00
James Teh d24d857a51 Bug 1628582: Set DocAccessibleParent::mDocProxyStream on the child document, not the parent document. r=yzen
DocAccessibleParent::AddChildDoc sends a COM proxy for the embedded document to the embedder process hosting the iframe.
This gets returned as the child of the embedder OuterDocAccessible.
Whenever we send a proxy to a content process, we must hold a PreservedStreamPtr in the parent process.
Previously, we set mDocProxyStream on the parent (embedder) document.
However, if a document had multiple OOP iframes, this meant we  ended up losing the PreservedStreamPtr for all but the last added child OOP document.
We now set mDocProxyStream on the child document instead, since there can only be one embedder OuterDocAccessible per child document.

Differential Revision: https://phabricator.services.mozilla.com/D74584
2020-05-11 14:41:57 +00:00
Ricky Stewart a81b5319d3 Bug 1636797 - Don't include .pyc, .pyd, or .pyo files in hash in taskgraph r=tomprince,glandium
These files are ALWAYS ignored and are never relevant when hashing the state of a working tree. It would be better overall to not consult the filesystem directly and go through the VCS to ensure we never try to hash any ignored files, but these files seem to be the main stumbling block and the primary cause of bugs like bug 1636797, so this is a fine stopgap in the meantime.

Differential Revision: https://phabricator.services.mozilla.com/D75126
2020-05-14 00:15:40 +00:00
Lina Cambridge 390e79aba0 Bug 1637809 - Replace `try_fold` with `map` in Golden Gate. r=eoger
Differential Revision: https://phabricator.services.mozilla.com/D75226
2020-05-14 00:00:18 +00:00
Narcis Beleuzu c8c2b4c82b Backed out changeset 55c506cc9801 (bug 1541511) for wrench bustage on prim_store . CLOSED TREE 2020-05-14 02:46:36 +03:00
Narcis Beleuzu 53167b2819 Backed out 9 changesets (bug 1637487) for bustages on nsMixedContentBlocker.cpp . CLOSED TREE
Backed out changeset 5633cc2aaa9b (bug 1637487)
Backed out changeset c4f0c757cae0 (bug 1637487)
Backed out changeset 65bb1114df87 (bug 1637487)
Backed out changeset 1a64ef10e773 (bug 1637487)
Backed out changeset d1709ebb7f46 (bug 1637487)
Backed out changeset 286e5ee6517f (bug 1637487)
Backed out changeset 83362625c297 (bug 1637487)
Backed out changeset ab9df2f2d11f (bug 1637487)
Backed out changeset b83f49bc11b0 (bug 1637487)
2020-05-14 02:41:40 +03:00
Nico Grunbaum 5a8efe4876 Bug 1534466 - P2 - add missing video impl for GetRtpSources;r=jib
Differential Revision: https://phabricator.services.mozilla.com/D74823
2020-05-13 23:18:24 +00:00
Imanol Fernandez b35d8070b6 Bug 1636509 - Add ProbablyShortLivingWrapper annotation to short living WebXR objects r=kip,daoshengmu,webidl,smaug
WebXR has a lot of short living objects. The ProbablyShortLivingWrapper should help a bit to improve the GC performance of those objects.

Differential Revision: https://phabricator.services.mozilla.com/D74423
2020-05-13 22:11:05 +00:00
Kartikaya Gupta 04919ab779 Bug 1631518 - Add a test. r=tnikkel
Depends on D75144

Differential Revision: https://phabricator.services.mozilla.com/D75145
2020-05-13 19:54:49 +00:00
Kartikaya Gupta fc36c15950 Bug 1631518 - Don't treat overflow:hidden divs as scrollframes for touch-action purposes with WR enabled. r=tnikkel
Depends on D75143

Differential Revision: https://phabricator.services.mozilla.com/D75144
2020-05-13 23:05:32 +00:00
Kartikaya Gupta 584ae5d6bb Bug 1631518 - Print hit info as hex, not decimal. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D75143
2020-05-13 19:54:22 +00:00
Imanol Fernandez cee36f038b Bug 1636456 - Implement WebXR idle deadline detection r=kip,daoshengmu,smaug,rbarker
Gecko Idle detection relies heavily on RefreshDriver. GC/CC scheduling, including when to run GC or CC slices, and the length of the slices, is mostly based on idle time. As WebXR isn't using normal RefreshDriver, the content process thinks it's idle and GC and CC get basically up to 50 ms slices.

Not having WebXR idle detection is causing stutter frames during immersive presentation. This patch implements idle deadline hint and sets the correct GC slices budgets during WebXR presentation.

Differential Revision: https://phabricator.services.mozilla.com/D74426
2020-05-13 22:10:27 +00:00
Dan Glastonbury 0f8ebacc34 Bug 1637783 - Relax SetLoadFlags hard assert to soft assert. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D75215
2020-05-13 22:49:01 +00:00
Lee Salzman f2f3dba2d9 Bug 1637152 - fix SWGL's handling of text bg-color blend-mode. r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D74807
2020-05-13 22:39:32 +00:00
Daosheng Mu b3c826b17b Bug 1636921 - Calling SetCapacity for a FallibleTArray in XRInputSourceArray. r=sg,kip
Differential Revision: https://phabricator.services.mozilla.com/D74722
2020-05-13 22:13:52 +00:00
Daniel Lu 7b1e9cbfbb Bug 1541511 - Removed unused Image::sub_rect field. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D75109
2020-05-13 22:16:55 +00:00
alwu ef4977969c Bug 1633010 - part8 : rename `MediaSessionController` to `MediaStatusManager` r=chunmin
This patch will do :
- rename `MediaSessionController` to `MediaStatusManager`
- move `MediaStatusManager.*` to the folder under `mediacontrol`
- update the comment for `MediaStatusManager`

The advantage of doing so :
- increase the readability

More details :
We've extended the responsibility of `MediaSessionController` and it now handle a broader concept of media related status, not just media session related. Therefore, renaming it to precisely represent o its responsibility.

Differential Revision: https://phabricator.services.mozilla.com/D73493
2020-05-13 22:09:23 +00:00
alwu 97b23b9267 Bug 1633010 - part7 : rename variables and remove unnecessary spaces r=chunmin
This patch will do :
- rename variables and remove unnecessary spaces

The advantage of doing so :
- increase the readability

Differential Revision: https://phabricator.services.mozilla.com/D73491
2020-05-13 22:08:40 +00:00
alwu 2ae724e750 Bug 1633010 - part6 : use `IMediaController` if we only want to access control related methods r=chunmin
This patch will do :
- create an interface `IMediaController` including only control related methods

The advantage of doing so :
- It's clear to use `IMediaController` as the only surface to control media
- explictly restrict which functions are available which can avoid using control related functions on those situations

Differential Revision: https://phabricator.services.mozilla.com/D73490
2020-05-13 22:08:01 +00:00
alwu af00afa1f0 Bug 1633010 - part5 : extend `IMediaInfoUpdater`. r=chunmin
This patch will do :
- make all functions which are used to update information from the content process become a part of `IMediaInfoUpdater`

The advantage of doing so :
- It's clear to use `IMediaInfoUpdater` as the only surface to update the media related status
- explictly restrict which functions are available which can avoid using control related functions on those situations

Differential Revision: https://phabricator.services.mozilla.com/D73489
2020-05-13 22:07:44 +00:00
alwu 12e184256b Bug 1633010 - part4 : move declared and guessed playback state into `MediaSessionController`. r=chunmin
This patch will do :
- move the logic of determining `actual playback state` to `MediaSessionController`

The advantage of doing so :
- increate the cohesion of `MediaSessionController` because it should be the class to determine the final playback status, not `MediaController`

Differential Revision: https://phabricator.services.mozilla.com/D73488
2020-05-13 21:18:06 +00:00