Commit Graph

701793 Commits

Author SHA1 Message Date
Imanol Fernandez
e3dd20241c Bug 1630290 - Update VRManager VRLayer instead of recreating it. r=daoshengmu,kip
Differential Revision: https://phabricator.services.mozilla.com/D71064

--HG--
extra : moz-landing-system : lando
2020-04-15 21:59:44 +00:00
Imanol Fernandez
c3114c1c70 Bug 1630007 - Apply XRSpace effective origin position and orientation using matrix multiplication. r=kip,daoshengmu
Differential Revision: https://phabricator.services.mozilla.com/D70923

--HG--
extra : moz-landing-system : lando
2020-04-15 22:05:26 +00:00
Tom Prince
01409a49a6 Bug 1630047 - Allow mozversioncontrol to add or remove multiple files at once; r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D70938

--HG--
extra : moz-landing-system : lando
2020-04-15 22:16:49 +00:00
Bert Peers
7c32464a6c Bug 1630389 - Enable WaitForVBlank by default on Windows 10 r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D71097

--HG--
extra : moz-landing-system : lando
2020-04-15 22:00:17 +00:00
Johann Hofmann
48b208f05c Bug 1627890 - Disable HTTP Feature-Policy header and document.featurePolicy in Nightly. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D70171

--HG--
extra : moz-landing-system : lando
2020-04-15 22:16:41 +00:00
Eitan Isaacson
d09e5861c1 Bug 1628922 - Support landmark navigation in GeckoView. r=Jamie
Added a traversal rule and piped through xml-roles as role descriptions.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 22:12:37 +00:00
Ted Campbell
e2df076d45 Bug 1629721 - Remove FunctionEmitter::interpretedCommon. r=mgaudet
Move the TI heuristic into BCE::emitFunction where the other special mutation
of inner-functions is happening.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 22:07:39 +00:00
Ted Campbell
9636c3ba3e Bug 1629721 - Remove BytecodeEmitter::runOnceLambda helper. r=mgaudet
Instead rely on consistent definitions of the TreatAsRunOnce flag on the
SharedContext. Also simplify the BCE::check{RunOnce,Singleton}Context
accessors. Note that the TreatAsRunOnce flag indicates the script is expected
to run-once, but the BCE also checks for isInLoop to decide if current
bytecode location within the script should still be considered run-once.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 22:07:34 +00:00
Ted Campbell
b5951c4ebc Bug 1629721 - Unified runOnceLambda definition for lazy/non-lazy. r=mgaudet
Use the same conditions for qualifying an inner function as a run-once-lambda
between the lazy and non-lazy code paths. Use the FunctionBox::immutableFlags
so that this works well with delazification too.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 22:07:27 +00:00
Ted Campbell
38903f778e Bug 1629721 - Use the TreatAsRunOnce flag on SharedContext. r=mgaudet
In the BytecodeEmitter constructor, initialize the TreatAsRunOnce flag for
top-level SharedContexts. In the future we should initialize this even
earlier. For the delazification case, we initialize already directly
initialize this flag from the lazy BaseScript.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 22:07:25 +00:00
Daosheng Mu
eaec8a64c7 Bug 1630159 - Revert Oculus Quest and Focus Plus controller matrix to match WebVR. r=kip
Differential Revision: https://phabricator.services.mozilla.com/D70979

--HG--
extra : moz-landing-system : lando
2020-04-15 21:56:50 +00:00
Iain Ireland
4b0968f728 Bug 1629670: Tier up to compiled regexps r=mgaudet
The interpreter calls `TierUpTick` whenever we interpret a regexp. Once we hit the tick threshold, compileIfNecessary will compile native code for the regexp.

Currently the tick threshold is hard-coded to 10. V8's tick threshold is 1, which seems unreasonably low. We can tune this later.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 20:08:21 +00:00
Iain Ireland
c467363eb7 Bug 1629670: Change ForceByteCode to CodeKind r=mgaudet
The current ForceByteCodeEnum is a glorified boolean. This patch replaces it with a three-value bytecode/jitcode/either enum, which will make our tiering-up logic slightly nicer in the next patch.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 20:54:38 +00:00
Iain Ireland
8dad7c3e77 Bug 1628835: Unify result enum r=tcampbell
Internally, irregexp uses -1 for errors, 0 for failure, and 1 for success. We have to use the same values in RegExpRunStatus.

Ideally we would replace RegExpRunStatus with an enum defined in RegExpTypes.h, but that will have to wait until we get rid of the old import.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 20:08:25 +00:00
Iain Ireland
454a5e1d1b Bug 1628835: Add interpreter support r=tcampbell
The irregexp compiler takes the AST produced by the parser, compiles it down to a more efficient internal representation, then uses a 'macroassembler' to generate code. The generated code can either be bytecode (which is then fed into the interpreter) or jitcode (which can be executed directly).

This patch gets the infrastructure set up and handles the former case.

CompilePattern is based heavily on V8's `RegExpImpl::compile` (affc364620/src/regexp/regexp.cc (L745-L933)). I am upstreaming a patch to move the code in WrapBody into regexp-compiler.cc where it fits better.

V8 is about to land a patch to tweak the API for Interpret so that it allocates memory for its registers internally instead of requiring it to be passed in. When we import this change, we'll be able to pass `matches->pairsRaw()` directly into `MatchForCallFromRuntime`, and the interpreter will fill it in for us.

In the old engine, we could handle interrupts in the middle of the interpreter. If we hit an urgent interrupt in compiled code, we would generate bytecode and fall back to the interpreter (see https://searchfox.org/mozilla-central/rev/9120151ddb35f2d4c37bfe613a54a4f10a9a3dc5/js/src/vm/RegExpObject.cpp#1165-1175). (This is what all the `ForceByteCode` machinery in RegExpObject.cpp is about. It was added in bug 1077514.) That won't work in the new version. V8 does allow interrupts during regexp execution, but only by jumping through some scary hoops to "manually relocate unhandlified references" afterwards. Instead, we just retry the regexp. I have no idea what a reasonable number of retries is before giving up; I've arbitrarily picked 4 for now.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 20:08:25 +00:00
Iain Ireland
5748dca264 Bug 1628835: Use RegExpShared in JSRegExp r=tcampbell
In preparation for actually compiling regexps in the next patch, hook up the V8 and irregexp representations of a compiled regexp.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 20:08:24 +00:00
Iain Ireland
54ca602cfd Bug 1628835: Change parenCount to pairCount r=tcampbell
A regexp with N sets of capturing parens will have N+1 capture groups, with the extra capture containing the entire matching string. Our old implementation stored `parenCount` in the RegExpShared and then added 1 to it whenever it was used. A much simpler answer is to just add 1 when initializing the regexp.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 20:08:24 +00:00
Drew Willcoxon
1736e700e0 Bug 1628926 - Remove the browser.urlbar.oneOffSearches pref. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D70921

--HG--
extra : moz-landing-system : lando
2020-04-15 08:56:16 +00:00
sefeng
0324d16f3c Bug 1613507 - [geckodriver] Don't set speculative-parallel-limit to 0 but leave it on its default value. r=whimboo,marionette-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D71071

--HG--
extra : moz-landing-system : lando
2020-04-15 21:36:08 +00:00
Ting-Yu Lin
7323697f18 Bug 1625362 Part 3 - Extract grid container's PushIncompleteChildren logic, and move it to nsContainerFrame. r=mats
I left all the bits that related to grid container, such as setting
aStatus, NS_STATE_GRID_DID_PUSH_ITEMS, and aState.mIter in
nsGridContainerFrame::ReflowRowsInFragmentainer().

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

--HG--
extra : moz-landing-system : lando
2020-04-15 18:31:35 +00:00
Ting-Yu Lin
a2e0d00564 Bug 1625362 Part 2 - Move some helpers manipulating overflow lists from nsGridContainerFrame to nsContainerFrame. r=mats
We can utilize these helpers to implement flex item fragmentation.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 18:31:33 +00:00
Ting-Yu Lin
97c3b1d8cb Bug 1625362 Part 1 - Move ReparentFrame and ReparentFrames into nsContainerFrame. r=mats
We have duplicated ReparentFrame and ReparentFrames define in both
nsBlockFrame and nsGridContainerFrame. We should move them into
nsContainerFrame.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 18:31:25 +00:00
Tim Nguyen
072d80ee18 Bug 1630201 - Merge browser/themes/shared/preferences and browser/themes/shared/incontentprefs. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D71020

--HG--
rename : browser/themes/shared/incontentprefs/bookmark.svg => browser/themes/shared/preferences/bookmark.svg
rename : browser/themes/shared/incontentprefs/containers.css => browser/themes/shared/preferences/containers.css
rename : browser/themes/shared/incontentprefs/critters-postcard.jpg => browser/themes/shared/preferences/critters-postcard.jpg
rename : browser/themes/shared/incontentprefs/dialog.inc.css => browser/themes/shared/preferences/dialog.inc.css
rename : browser/themes/shared/incontentprefs/extensions.svg => browser/themes/shared/preferences/extensions.svg
rename : browser/themes/shared/incontentprefs/face-sad.svg => browser/themes/shared/preferences/face-sad.svg
rename : browser/themes/shared/incontentprefs/face-smile.svg => browser/themes/shared/preferences/face-smile.svg
rename : browser/themes/shared/incontentprefs/formfill.svg => browser/themes/shared/preferences/formfill.svg
rename : browser/themes/shared/incontentprefs/fxaPairDevice.css => browser/themes/shared/preferences/fxaPairDevice.css
rename : browser/themes/shared/incontentprefs/general.svg => browser/themes/shared/preferences/general.svg
rename : browser/themes/shared/incontentprefs/history.svg => browser/themes/shared/preferences/history.svg
rename : browser/themes/shared/incontentprefs/no-search-bar.svg => browser/themes/shared/preferences/no-search-bar.svg
rename : browser/themes/shared/incontentprefs/no-search-results.svg => browser/themes/shared/preferences/no-search-results.svg
rename : browser/themes/shared/incontentprefs/preferences.inc.css => browser/themes/shared/preferences/preferences.inc.css
rename : browser/themes/shared/incontentprefs/preferences.svg => browser/themes/shared/preferences/preferences.svg
rename : browser/themes/shared/incontentprefs/privacy-security.svg => browser/themes/shared/preferences/privacy-security.svg
rename : browser/themes/shared/incontentprefs/privacy.css => browser/themes/shared/preferences/privacy.css
rename : browser/themes/shared/incontentprefs/search-arrow-indicator.svg => browser/themes/shared/preferences/search-arrow-indicator.svg
rename : browser/themes/shared/incontentprefs/search-bar.svg => browser/themes/shared/preferences/search-bar.svg
rename : browser/themes/shared/incontentprefs/search.css => browser/themes/shared/preferences/search.css
rename : browser/themes/shared/incontentprefs/search.svg => browser/themes/shared/preferences/search.svg
rename : browser/themes/shared/incontentprefs/siteDataSettings.css => browser/themes/shared/preferences/siteDataSettings.css
rename : browser/themes/shared/incontentprefs/sync.svg => browser/themes/shared/preferences/sync.svg
rename : browser/themes/shared/incontentprefs/tab.svg => browser/themes/shared/preferences/tab.svg
extra : moz-landing-system : lando
2020-04-15 20:41:37 +00:00
Tim Nguyen
4c24f1af4a Bug 1630201 - Rename browser/themes/shared/preferences/containers.css to browser/themes/shared/preferences/containers-dialog.css. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D71019

--HG--
rename : browser/themes/shared/preferences/containers.css => browser/themes/shared/preferences/containers-dialog.css
extra : moz-landing-system : lando
2020-04-15 20:32:30 +00:00
Emilio Cobos Álvarez
f9bd47e44b Bug 1626586 - Make history notifications do a bit less work. r=mak,lina,agi,snorp
And batch them when notifying child processes.

This makes RegisterVisitedQuery potentially notify synchronously, but changes
the code to deal with it properly.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 21:19:41 +00:00
Csoregi Natalia
099f1d6a99 Backed out changeset 130dadf64e30 (bug 658544) for failures on test_PlacesDBUtils_removeOldCorruptDBs.js. CLOSED TREE 2020-04-16 00:34:55 +03:00
Csoregi Natalia
de8e762887 Backed out 7 changesets (bug 1625615) for multiple failures e.g. /test_windowedhistoryframes.html. CLOSED TREE
Backed out changeset f239d24658c9 (bug 1625615)
Backed out changeset acea7c78db20 (bug 1625615)
Backed out changeset d709f5a72c35 (bug 1625615)
Backed out changeset 4cd231b1f3fb (bug 1625615)
Backed out changeset 45942c8dc380 (bug 1625615)
Backed out changeset 3f03a8703a8a (bug 1625615)
Backed out changeset e9299fc48796 (bug 1625615)
2020-04-16 00:32:16 +03:00
Kartikaya Gupta
731e0c0820 Bug 1627362 - Improve logging for fixed/sticky data on the WR codepath. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D70912

--HG--
extra : moz-landing-system : lando
2020-04-15 20:01:05 +00:00
Kartikaya Gupta
96ccdc9b83 Bug 1627362 - Fix WR codepath. r=botond
This patch just ensures the changes in the previous patches get applied
to the WR codepath, and is sufficient to make all the remaining sticky
tests pass on Android+WR.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 21:05:26 +00:00
Kartikaya Gupta
bbdeafdcdb Bug 1627362 - Properly support items stuck to both bottom and top. r=botond
The semantics of sticky items are somewhat different from the semantics of
fixed items. For fixed items, if an item is fixed to eTop or eBottom or
eTopBottom, it is *always* fixed to those sides. For sticky items, however,
the sides actively stuck to are dependent on the scroll position. So we need
a mechanism to dynamically figure out which sides are stuck, and use those
sides when computing the fixed margins to apply. This patch implements that
by modifying the IsStuckToRootContentAtBottom method into a
SidesStuckToRootContent method.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 21:05:12 +00:00
Kartikaya Gupta
952f78e233 Bug 1627362 - Rewrite IsStuckAtBottom to be simpler and clearer. r=botond
I couldn't understand what it was doing before, but conceptually it should
be pretty simple.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 21:04:56 +00:00
Kartikaya Gupta
62383abdc6 Bug 1627362 - Allow calling fixed/sticky helpers with (Fixed|Sticky)PositionInfo. r=botond
This sets us up to be able to use these helper methods on WR sampling codepath.

Depends on D70907

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

--HG--
extra : moz-landing-system : lando
2020-04-15 19:15:44 +00:00
Kartikaya Gupta
41034c6ca7 Bug 1627362 - Have (Fixed|Sticky)PositionInfo take a HTTN in the constructor. r=botond
This will make future patches simpler, as we can now create these info objects
more easily for the non-WR codepath as well.

Depends on D70906

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

--HG--
extra : moz-landing-system : lando
2020-04-15 19:14:12 +00:00
Kartikaya Gupta
483cd1925d Bug 1627362 - Remove the tree lock requirement for a couple of functions. r=botond
We can use the map lock to do a lookup in mApzcMap, instead of requiring the
tree lock to call GetTargetAPZC.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 19:11:31 +00:00
Joel Maher
44d75609bc Bug 1608388 - Reduce MingW32 builds/tests to be run on m-c only. r=bc
Differential Revision: https://phabricator.services.mozilla.com/D71085

--HG--
extra : moz-landing-system : lando
2020-04-15 20:51:18 +00:00
Gijs Kruitbosch
af2df0c8a7 Bug 1614795 - use the background task queue for startupcache writes, r=dthayer,decoder
Prior to this patch, the startupcache created its own mWriteThread off which it
wrote to disk. It's initialized by MaybeSpawnWriteThread, which got called
at shutdown, to do the shutdown write if there was any reason to do so, and
from a timer that is re-initialized after every addition to the startup cache,
to run 60s after the last change to the cache.

It then joined that write thread on the main thread (in other words, blocks
on that off-main-thread write completing from the main thread) when:
- xpcom-shutdown fired
- the startupcache itself gets destroyed
- someone calls any of:
  * HasEntry
  * GetBuffer
  * PutBuffer
  * InvalidateCache

This patch removes the separate write thread, and instead dispatches a task to
the background task queue, indicating it can block. The task is started in
the same circumstances where we previously used to write (timer from the last
PutBuffer call, and shutdown if necessary).

To ensure it cannot be trying to use the data it writes out (mTable) from
the other thread while that data changes on the main thread, we use a mutex.
The task locks the mutex before starting, and unlocks when finished.
Enumerating the cases that we used to block on joining the thread:

In terms of application shutdown, we expect the background task queue to
either finish the write task, or fail to run it if it hasn't started it yet.
In the FastStartup case, we check if a write was necessary; if so, we
attempt to gain the lock without waiting. If we're successful, the write has
not yet started, and we instead run the write on the main thread. Otherwise,
we retry gaining the lock, blocking this time, thus guaranteeing the
off-the-main-thread write completes.

The task keeps a reference to the startupcache object, so it cannot be
destroyed while the task is pending.

Because the write does not modify `mTable`, and neither does `HasEntry`,
we do not need to do anything there.

In the `GetBuffer` case, we do not modify the table unless we have to read
the entry off disk (memmapped into `mCacheData`). This can only happen if
`mCacheData.initialized()` returns true, and we specifically call
`mCacheData.reset()` before firing off the write task to avoid this.
`mCacheData` is only re-initialized if someone calls `LoadArchive()`,
which can only happen from `Init()` (which is guaranteed not to run
again because this is a singleton), or `InvalidateCache()`, where we lock
the mutex (see below). So this is safe - but we assert on the lock to try
and avoid people breaking this chain of assumptions in the future.

When `PutBuffer` is called, we try to lock the mutex - but if locking fails
(ie the background thread is writing), we simply fail to store the entry
in the startupcache. In practice, this should be rare - it'd happen if
new calls to PutBuffer happen while writing during shutdown (when really,
we don't care) or when it's been 60 seconds since the last PutBuffer so
we started writing the startupcache.

When InvalidateCache is called, we lock the mutex - we shouldn't try to
write while invalidating, or invalidate while writing. This may be slow,
but in practice nothing should call `InvalidateCache` except developer
restarts or the `-purgecaches` commandline flag, so it shouldn't
matter a great deal.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 20:43:44 +00:00
jayati
c758dad718 Bug 658544 - Add support for cleanup of profile folder. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D70644

--HG--
extra : moz-landing-system : lando
2020-04-15 20:38:49 +00:00
Gregory Mierzwinski
7870c996a2 Bug 1628158 - Integrate perftest-notebook into mozperftest. r=tarek
This patch integrates the majority of the mach-perftest-notebook project from the github project to the in-tree mozperftest package/tool. Certain portions of it are disabled in this integration (posting to iodide, and transform searching).

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

--HG--
extra : moz-landing-system : lando
2020-04-15 20:24:36 +00:00
Csoregi Natalia
fef701cb35 Backed out 2 changesets (bug 1630201) for bustages due to containers.css. CLOSED TREE
Backed out changeset 05d18c70a0bd (bug 1630201)
Backed out changeset 60f42302b5d5 (bug 1630201)

--HG--
rename : browser/themes/shared/preferences/bookmark.svg => browser/themes/shared/incontentprefs/bookmark.svg
rename : browser/themes/shared/preferences/critters-postcard.jpg => browser/themes/shared/incontentprefs/critters-postcard.jpg
rename : browser/themes/shared/preferences/dialog.inc.css => browser/themes/shared/incontentprefs/dialog.inc.css
rename : browser/themes/shared/preferences/extensions.svg => browser/themes/shared/incontentprefs/extensions.svg
rename : browser/themes/shared/preferences/face-sad.svg => browser/themes/shared/incontentprefs/face-sad.svg
rename : browser/themes/shared/preferences/face-smile.svg => browser/themes/shared/incontentprefs/face-smile.svg
rename : browser/themes/shared/preferences/formfill.svg => browser/themes/shared/incontentprefs/formfill.svg
rename : browser/themes/shared/preferences/fxaPairDevice.css => browser/themes/shared/incontentprefs/fxaPairDevice.css
rename : browser/themes/shared/preferences/general.svg => browser/themes/shared/incontentprefs/general.svg
rename : browser/themes/shared/preferences/history.svg => browser/themes/shared/incontentprefs/history.svg
rename : browser/themes/shared/preferences/no-search-bar.svg => browser/themes/shared/incontentprefs/no-search-bar.svg
rename : browser/themes/shared/preferences/no-search-results.svg => browser/themes/shared/incontentprefs/no-search-results.svg
rename : browser/themes/shared/preferences/preferences.inc.css => browser/themes/shared/incontentprefs/preferences.inc.css
rename : browser/themes/shared/preferences/preferences.svg => browser/themes/shared/incontentprefs/preferences.svg
rename : browser/themes/shared/preferences/privacy-security.svg => browser/themes/shared/incontentprefs/privacy-security.svg
rename : browser/themes/shared/preferences/privacy.css => browser/themes/shared/incontentprefs/privacy.css
rename : browser/themes/shared/preferences/search-arrow-indicator.svg => browser/themes/shared/incontentprefs/search-arrow-indicator.svg
rename : browser/themes/shared/preferences/search-bar.svg => browser/themes/shared/incontentprefs/search-bar.svg
rename : browser/themes/shared/preferences/search.css => browser/themes/shared/incontentprefs/search.css
rename : browser/themes/shared/preferences/search.svg => browser/themes/shared/incontentprefs/search.svg
rename : browser/themes/shared/preferences/siteDataSettings.css => browser/themes/shared/incontentprefs/siteDataSettings.css
rename : browser/themes/shared/preferences/sync.svg => browser/themes/shared/incontentprefs/sync.svg
rename : browser/themes/shared/preferences/tab.svg => browser/themes/shared/incontentprefs/tab.svg
rename : browser/themes/shared/preferences/containers-dialog.css => browser/themes/shared/preferences/containers.css
2020-04-15 23:28:06 +03:00
jayati
5f4804e62f Bug 1485193 - Link with documentation in about:policies. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D69386

--HG--
extra : moz-landing-system : lando
2020-04-15 20:17:05 +00:00
Dzmitry Malyshau
f9d8b44745 Bug 1630316 - Deallocate WebGPU shmems r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D71079

--HG--
extra : moz-landing-system : lando
2020-04-15 19:58:08 +00:00
alwu
9abe89daea Bug 1625615 - part6 : add test. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D69675

--HG--
extra : moz-landing-system : lando
2020-04-06 21:42:36 +00:00
alwu
3313825099 Bug 1625615 - part5 : add test-only attribute and event for media element. r=bryce,emilio
Differential Revision: https://phabricator.services.mozilla.com/D69674

--HG--
extra : moz-landing-system : lando
2020-04-15 20:14:14 +00:00
alwu
1702ad395a Bug 1625615 - part4 : start listener if we haven't started listener yet. r=bryce
There is actually possible to start the listener already while running `SuspendOrResumeElement()`, so we should remove the assertion and use a check instead.

Eg.  JS can call `play()`, which would start the listener, before we run this method. This situation can be found when browsing Youtube on the GeckoView.

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

--HG--
extra : moz-landing-system : lando
2020-04-06 17:51:15 +00:00
alwu
7d557acf89 Bug 1625615 - part3 : prevent media starting playing when inactive docshell wants to suspend any media. r=bryce
When the docShell's `SuspendMediaWhenInactive` flag is true, no media should be allowed to start playing. Therefore, we add a check in `Play()`, `CanActivateAutoplay()` to prevent media from playing. In addition, we should also prevent the audio channel agant from starting.

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

--HG--
extra : moz-landing-system : lando
2020-04-06 21:36:40 +00:00
alwu
19c4e866db Bug 1625615 - part2 : suspend or resume media element according to docShell's SuspendMediaWhenInactive r=bryce
If docShell's `SuspendMediaWhenInactive` is true, then we should suspend or resume the media element according to the docshell active state when the docshell changes it active state.

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

--HG--
extra : moz-landing-system : lando
2020-04-06 22:30:10 +00:00
alwu
a9d2260712 Bug 1625615 - part1 : update 'suspendMediaWhenInactive' when GeckoView setting changes r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D69884

--HG--
extra : moz-landing-system : lando
2020-04-07 13:55:30 +00:00
alwu
4634c817c4 Bug 1625615 - part0 : create and set the flag suspendMediaWhenInactive on docShell. r=baku,farre
Implemecurnt a flag `suspendMediaWhenInactive` on the docShell that indicates media in that shell should be suspended when the shell is inactive. Currently, only GeckoView is using this flag.

---

The reason of implementing this flag is because in bug1577890 we remove the old way to suspend/resume the media, and I thought setting docshell to inactive is enough to suspend the media because we already have a mechanism which would suspend/resume media when document becomes inactive/active [1].

However, the active state of document is actually different from what I thought it was. Setting docshell to inactive won't change the document's active state, because that indicates if the document is the current active document for the docshell [2] (docshell can have multiple documents), instead of indicating if the docshell is active or not.

Therefore, we have to add another flag to indicate if the docshell wants to suspend its media when it's inactive, in order to use current mechanism to suspend/resume media.

[1] https://searchfox.org/mozilla-central/rev/4d2a9d5dc8f0e65807ee66e2b04c64596c643b7a/dom/html/HTMLMediaElement.cpp#6453
[2] https://searchfox.org/mozilla-central/rev/4d2a9d5dc8f0e65807ee66e2b04c64596c643b7a/dom/base/Document.h#2627-2633

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

--HG--
extra : moz-landing-system : lando
2020-04-15 18:13:29 +00:00
Chris Martin
6590a743a5 Bug 1347710 - Enable sandbox protections for the Windows GPU process r=bobowen
It seems that all the warnings caused by the GPU sandbox have been fixed, and
the transparent window issue was resolved in D61370.

Hopefully there are no further complications and this can stay landed.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 20:08:29 +00:00
Tim Nguyen
cd2283165d Bug 1630201 - Merge browser/themes/shared/preferences and browser/themes/shared/incontentprefs. r=jaws
Depends on D71019

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

--HG--
rename : browser/themes/shared/incontentprefs/bookmark.svg => browser/themes/shared/preferences/bookmark.svg
rename : browser/themes/shared/incontentprefs/critters-postcard.jpg => browser/themes/shared/preferences/critters-postcard.jpg
rename : browser/themes/shared/incontentprefs/dialog.inc.css => browser/themes/shared/preferences/dialog.inc.css
rename : browser/themes/shared/incontentprefs/extensions.svg => browser/themes/shared/preferences/extensions.svg
rename : browser/themes/shared/incontentprefs/face-sad.svg => browser/themes/shared/preferences/face-sad.svg
rename : browser/themes/shared/incontentprefs/face-smile.svg => browser/themes/shared/preferences/face-smile.svg
rename : browser/themes/shared/incontentprefs/formfill.svg => browser/themes/shared/preferences/formfill.svg
rename : browser/themes/shared/incontentprefs/fxaPairDevice.css => browser/themes/shared/preferences/fxaPairDevice.css
rename : browser/themes/shared/incontentprefs/general.svg => browser/themes/shared/preferences/general.svg
rename : browser/themes/shared/incontentprefs/history.svg => browser/themes/shared/preferences/history.svg
rename : browser/themes/shared/incontentprefs/no-search-bar.svg => browser/themes/shared/preferences/no-search-bar.svg
rename : browser/themes/shared/incontentprefs/no-search-results.svg => browser/themes/shared/preferences/no-search-results.svg
rename : browser/themes/shared/incontentprefs/preferences.inc.css => browser/themes/shared/preferences/preferences.inc.css
rename : browser/themes/shared/incontentprefs/preferences.svg => browser/themes/shared/preferences/preferences.svg
rename : browser/themes/shared/incontentprefs/privacy-security.svg => browser/themes/shared/preferences/privacy-security.svg
rename : browser/themes/shared/incontentprefs/privacy.css => browser/themes/shared/preferences/privacy.css
rename : browser/themes/shared/incontentprefs/search-arrow-indicator.svg => browser/themes/shared/preferences/search-arrow-indicator.svg
rename : browser/themes/shared/incontentprefs/search-bar.svg => browser/themes/shared/preferences/search-bar.svg
rename : browser/themes/shared/incontentprefs/search.css => browser/themes/shared/preferences/search.css
rename : browser/themes/shared/incontentprefs/search.svg => browser/themes/shared/preferences/search.svg
rename : browser/themes/shared/incontentprefs/siteDataSettings.css => browser/themes/shared/preferences/siteDataSettings.css
rename : browser/themes/shared/incontentprefs/sync.svg => browser/themes/shared/preferences/sync.svg
rename : browser/themes/shared/incontentprefs/tab.svg => browser/themes/shared/preferences/tab.svg
extra : moz-landing-system : lando
2020-04-15 19:59:46 +00:00