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

704325 Коммитов

Автор SHA1 Сообщение Дата
Shane Caraveo 327dcc3d53 Bug 1606862 support devtools as an optional extension permission r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D71829
2020-04-29 23:28:27 +00:00
Daniel Varga a184202d1f Backed out changeset 5c3005879c35 (bug 1634187) for causing build bustages at builds/worker/checkouts/gecko/xpcom/idl-parser/xpidl/runtests.py
CLOSED TREE
2020-04-30 02:58:00 +03:00
Neil Deakin 653fff4e36 Bug 1614744, convert about:privatebrowsing to JSWindowActor-based remote page manager, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D71023
2020-04-29 23:19:15 +00:00
Neil Deakin e87cb94596 Bug 1614743, convert about:protections to the new JSWindowActor-based remote page manager and remove now unused functions from the old RPM, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D71022
2020-04-29 23:12:34 +00:00
Drew Willcoxon 14879e2fe7 Bug 1632918 - Postpone update check until the user triggers the update intervention. r=harry
As a quick fix to bug 1632918, don't check for app updates until the user
triggers the update intervention. There will still be some jank, but it'll be
postponed until the user types a phrase that triggers the intervention, which is
much better than at the first urlbar use. To avoid the problem where we wouldn't
show an intervention at all the first time the update intervention is triggered
since the updater status in that case will be CHECKING, add an updater listener
to wait for the check to finish and add our result then.

We should look into a better long-term fix, like making the updater's IO async
or not checking for updates at all inside urlbar.

Differential Revision: https://phabricator.services.mozilla.com/D73001
2020-04-29 23:05:38 +00:00
Mike Hommey 697361fcd0 Bug 1634187 - Turn xpcom/idl-parser/xpidl into a proper python 3-ready module. r=rstewart
Differential Revision: https://phabricator.services.mozilla.com/D73151
2020-04-29 23:05:29 +00:00
Nicholas Nethercote 00c92b3d71 Bug 1632279 - Disallow default pref definitions in user pref files. r=KrisWright
We distinguish between two kinds of pref syntax.
- "Default pref files" are the ones that come with Firefox, constructed from
  `all.js` and similar files.
- "User pref files" are the ones that get created in the user's profile.
  `prefs.js` is the one that Firefox creates and overwrites every time a pref
  changes. `user.js` is the one that users can create themselves.

We also have two basic kinds of pref.
- Default: `pref(...)` and the unfortunate `sticky_pref(...)`.
- User: `user_pref(...)`, which override but don't replace the default.

It only makes sense for user pref files to contain user prefs; users shouldn't
be able to create default prefs or change default pref values.

But it turns out that user pref files have been able to define default prefs
pretty much forever. This appears to be an oversight, and this commit restricts
things so that user pref files cannot contain default prefs.

The commit also fixes an incorrect comment in testParser.js.

Differential Revision: https://phabricator.services.mozilla.com/D73003
2020-04-29 21:47:12 +00:00
Daniel Varga d0212aae27 Backed out changeset a8ca75f3002d (bug 1633985) on request by dev 2020-04-30 01:58:25 +03:00
Brendan Dahl 6a11b1827e Bug 1629770 - Create popupgroup for any main process system privileged documents. r=emilio,Jamie
Fixes tooltips/menus in responsive design mode. A few accesibility tests
had to be adjusted since tooltips are now automatically created
for them.

Differential Revision: https://phabricator.services.mozilla.com/D72400
2020-04-29 21:52:51 +00:00
Daisuke Akatsuka 0941c106a4 Bug 1625134: Enable the compatibility panel in Nightly and DevEdition. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D72996
2020-04-29 22:43:06 +00:00
Michael Cooper 8aee20896d Bug 1634103 - Messaging Experiment schema should require groups on a branch r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D73104
2020-04-29 21:22:48 +00:00
Gabriele Svelto a5afe43f02 Bug 1498706 - Prevent the Breakpad exception handler from hanging a process instead of terminating it r=dmajor
This changes the way filter callbacks work in Breakpad so that the
Gecko-provided exception handler can instruct breakpad to just consider an
exception handled and terminate the process without further work. This change
is needed because when two threads enter the exception handler at the same
time the second can get stuck. The logic behind this is convoluted: when the
filter callback "accepts" an exception Breakpad will request minidump
generation and then notify Windows exception search mechanism that the
exception was handled. The process will terminate at this point. However if
a second thread enters the exception handler before this happens it will also
try to handle the exception, either by generating a minidump (prior to my fix
for bug 1434933) or by simply ignoring it (after bug 1434933). However under
both conditions Breakpad will consider the exception not handled and inform
Windows exception search logic to look for another handler. But we're already
at the top-level handler so Windows will try it again, and again, and again
... hanging the process instead of terminating it.

With this patch applied the first time we hit the exception handler we'll
request minidump generation and report the exception as handled. If we hit the
exception handler again we will not request minidump generation but we will
also report the exception as handled so that Windows can terminate the process
right away.

Differential Revision: https://phabricator.services.mozilla.com/D72493
2020-04-29 21:17:50 +00:00
owlishDeveloper 53e87dce1e Bug 1626687 - Do not handle data URIs larger than 2M on mobile r=necko-reviewers,geckoview-reviewers,valentin,snorp
Differential Revision: https://phabricator.services.mozilla.com/D72955
2020-04-29 18:07:39 +00:00
Gijs Kruitbosch 7073bb6903 Bug 1634075 - back out changeset 0aa77ee04caa (bug 1583696) over regressions with overly long non-wrapping prompt text and visual appearance with lightweight themes, r=MattN
Things that were broken:

- prompts become unreadable when using dark-background lwthemes, because they
  keep the window text-shadow (due to the namespace change of tabmodalprompt)
- prompts with long text without word-wrap possibilities
  (e.g. `alert("x".repeat(1000))`) cause the text to escape its container.

Differential Revision: https://phabricator.services.mozilla.com/D73131
2020-04-29 20:30:37 +00:00
Glenn Watson ab3883a1e7 Bug 1633985 - Remove unused clip parent and backface flag from push_iframe r=kats,nical
Differential Revision: https://phabricator.services.mozilla.com/D73006
2020-04-29 21:54:14 +00:00
Mike Conley 8bab2b55c6 Bug 1527213 - Only ship PerfService inside of activity-stream.bundle.js. r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D73082
2020-04-29 22:23:27 +00:00
Mike Conley 71ddd54d56 Bug 1527213 - Remove privileged-script support and hidden window usage from PerfService.jsm. r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D72740
2020-04-29 22:22:28 +00:00
Mike Conley 66a8a785b2 Bug 1527213 - Stop using PerfService from TelemetryFeed. r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D72738
2020-04-29 22:22:00 +00:00
Mike Conley 811dfa65dd Bug 1527213 - Stop using PerfService in DiscoveryStreamFeed, RecommendationProviderSwitcher and TopStoriesFeed. r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D72737
2020-04-29 22:21:40 +00:00
Emilio Cobos Álvarez 17fae10a8b Bug 1633938 - Implement RDM zoom with transform. r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D72981
2020-04-29 21:44:17 +00:00
Emilio Cobos Álvarez f071fe4b8e Bug 1633488 - Fire zoom change events directly in the parent process instead of roundabouting through the child process. r=nika
This ensures that chrome code can always react to the state the browsing
context the parent process observes properly. It's also simpler.

We fix one test that was relying on the event being fired at the
browser. For the same reason as the previous patch in this bug, we can
use resize events instead.

Differential Revision: https://phabricator.services.mozilla.com/D72712
2020-04-29 21:44:13 +00:00
Emilio Cobos Álvarez 94e88b71b3 Bug 1578008 - Make promiseRDMZoom more simple and reliable. r=bradwerth
Now that we no longer have the various resolution shenanigans, we really
just want to ensure that child processes observe the resize of the
<browser> element, which can happen just fine if we ensure to flush
layout.

Differential Revision: https://phabricator.services.mozilla.com/D72552
2020-04-29 21:44:05 +00:00
Emilio Cobos Álvarez 0169492da2 Bug 1578008 - Remove various hacks to restore resolution only after a full zoom change. r=bradwerth
This is no longer needed now that MVM doesn't restore the zoom.

Differential Revision: https://phabricator.services.mozilla.com/D72551
2020-04-29 21:44:01 +00:00
Mitchell Hentges 1b7be4fbeb Bug 1624380: upgrades brew packages if they're out-of-date r=rstewart
`./mach bootstrap` prepares your environment for a build and installs missing "brew" packages".
However, if a package is installed but out-of-date, it was being ignored by the bootstrapping logic.

This change ensures that `brew update` is run, and updates any out-of-date packages that are requested.

Differential Revision: https://phabricator.services.mozilla.com/D72956
2020-04-29 21:17:25 +00:00
Mike Hommey 0d618c2eb1 Bug 1633907 - Upgrade sccache to current master. r=rstewart
There were a fair number of changes, but the main ones are the switch to
a faster hash (blake3), and to tokio 0.2's faster scheduler.

Differential Revision: https://phabricator.services.mozilla.com/D72960
2020-04-29 21:18:49 +00:00
Ted Campbell a6d8f5029b Bug 1634167 - Factor JitCode type out to its own file. r=iain
Depends on D73129

Differential Revision: https://phabricator.services.mozilla.com/D73130
2020-04-29 21:17:41 +00:00
Ted Campbell 79e98a0362 Bug 1634167 - Rename js/src/jit/IonCode.h to JitCode.h + IonScript.h. r=iain
Preserve history as we split the file into two.

Depends on D73128

Differential Revision: https://phabricator.services.mozilla.com/D73129
2020-04-29 20:31:52 +00:00
Ted Campbell 33a1a5c3e9 Bug 1634167 - Remove dead code from JitCode.h. r=iain
Depends on D73127

Differential Revision: https://phabricator.services.mozilla.com/D73128
2020-04-29 20:29:59 +00:00
Ted Campbell 96ae030825 Bug 1634167 - Change js::jit::IonScript to class. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D73127
2020-04-29 21:17:52 +00:00
Ted Campbell e9f3d9bcf5 Bug 1632273 - Update MutableScriptFlags docs. r=jandem,jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D72168
2020-04-29 21:09:31 +00:00
Ted Campbell 8bb08de5d0 Bug 1632273 - Update ImmutableScriptFlags docs (Function). r=jorendorff
These flags are derived by the parser but are only defined for functions.

Differential Revision: https://phabricator.services.mozilla.com/D72167
2020-04-29 21:11:39 +00:00
Ted Campbell a8954f536b Bug 1632273 - Update ImmutableScriptFlags docs (Parse). r=jorendorff
These flags are derived by the parser and are set for all scripts
(top-level/function, lazy/non-lazy).

Differential Revision: https://phabricator.services.mozilla.com/D72166
2020-04-29 19:45:08 +00:00
Ted Campbell 02ecc9a992 Bug 1632273 - Update ImmutableScriptFlags docs (Input). r=jandem,jorendorff
Update flag comments for "input" flags. These flags are not determined by the
source text generally come from CompileOptions instead. They are preserved on
scripts and stencils to know if bytecode can be reused.

Differential Revision: https://phabricator.services.mozilla.com/D72165
2020-04-29 18:02:35 +00:00
Ted Campbell 8ff2032e39 Bug 1632273 - Reorder {Immutable,Mutable}ScriptFlags flags. r=jorendorff
Reorder and renumber the flags. All flag comments are entirely unchanged.
Follow-up patches will update those comments.

Differential Revision: https://phabricator.services.mozilla.com/D72164
2020-04-29 17:48:22 +00:00
Liang-Heng Chen 669c9d13fc Bug 1633538 - allow referrer for `STATE_COOKIES_PARTITIONED_FOREIGN`; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D72744
2020-04-29 13:02:08 +00:00
aarushivij 972799f8aa Bug 1634013 - Remove the browser.tabs.multiselect pref r=dao
Differential Revision: https://phabricator.services.mozilla.com/D73074
2020-04-29 20:52:32 +00:00
Mitchell Hentges 26afa282b0 Bug 1634116 - Removes "mach try again" history migration r=rstewart
The history migration has been around since February 2019 and is ready for cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D73099
2020-04-29 19:40:51 +00:00
caroline 729bdc505c Bug 1633940 - Remove LazyScriptCreationData::forceStrict. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D72990
2020-04-29 21:24:49 +00:00
Dorel Luca f906702a66 Backed out changeset 0a9371673354 (bug 1633985) for Webrender bustages. CLOSED TREE 2020-04-30 00:03:23 +03:00
Dana Keeler 24cee534ab Bug 1631404 - work around mozilla::pkix forbidding id-kp-OCSPSigning unless specifically required r=bbeurdouche
mozilla::pkix treats the id-kp-OCSPSigning extended key usage as forbidden
unless specifically required. Client authentication certificate filtering in
gecko uses mozilla::pkix, so before this patch, certificates with this EKU would
be filtered out. Normally this is correct, because client authentication
certificates should never have this EKU. However, there is at least one private
PKI where client certificates have this EKU. For interoperability, this patch
works around this restriction by falling back to requiring id-kp-OCSPSigning if
path building initially fails.

Differential Revision: https://phabricator.services.mozilla.com/D72760
2020-04-29 20:24:33 +00:00
Ted Campbell a2a9e19f3d Bug 1633964 - Rename FunctionCreationData::atom to explicitName. r=mgaudet
This is a bit of a lateral change but brings consistency with the
FunctionBox. In the future we will fold proper guessed-atom support into
FunctionBox to allow the NameResolver to work without JSFunctions.

Depends on D72997

Differential Revision: https://phabricator.services.mozilla.com/D72998
2020-04-29 20:23:40 +00:00
Ted Campbell fe34608c9d Bug 1633964 - Use explicitName() when creating BinAST FunctionBox. r=mgaudet
The name in the FunctionBox should only hold the explicitName rather than any
sort of implicit or guessed name. Note that any other names still on the
function itself will remain set. This seems to be a minor regression
recently, but only in BinAST.

Differential Revision: https://phabricator.services.mozilla.com/D72997
2020-04-29 20:20:14 +00:00
Glenn Watson c222acf8ae Bug 1633985 - Remove unused clip parent and backface flag from push_iframe r=kats,nical
Differential Revision: https://phabricator.services.mozilla.com/D73006
2020-04-29 17:14:50 +00:00
Emilio Cobos Álvarez d55b448a0c Bug 1633675 - Avoid various string copies in FluentBundle constructor. r=zbraniecki
We were copying the string in C++, then again in Rust...

Differential Revision: https://phabricator.services.mozilla.com/D73034
2020-04-29 20:11:30 +00:00
Mike Conley 0cb36b37be Bug 1630326 - Bump some Picure-in-Picture probe expiries. r=mstriemer, data-review=mmccorquodale
Differential Revision: https://phabricator.services.mozilla.com/D72766
2020-04-28 18:07:56 +00:00
Kris Maglione f7e694f8cc Bug 1630691: Part 2 - Get rid of the "dom.mozBrowserFramesEnabled" pref. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D71227
2020-04-29 19:29:11 +00:00
Kris Maglione c5353a7809 Bug 1630691: Part 1 - Get rid of most of the remaining mozbrowser API. r=nika,mtigley,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D71226
2020-04-29 19:29:06 +00:00
Alex Chronopoulos ba0acfe03a Bug 1632864 - Handle error state callback in GraphDriver. r=padenot
Till now an AudioCallbackDriver, on error state callback, creates a FallbackDriver, which attempts to start the existing AudioCallbackDriver. If the driver has already started this creates a cr
ash because restart is not allowed.

This patch continues using the FallbackDriver, on cubeb state error but the driver has been enhanced with an error state that will not attempt to restart the driver. The fallback driver will continue advancing the graph similar to a ThreadedDriver until a driver switch takes place.

Depends on D73102

Differential Revision: https://phabricator.services.mozilla.com/D73103
2020-04-29 17:53:08 +00:00
Alex Chronopoulos 60b9cdf7a5 Bug 1632864 - Simulate cubeb error state callback in MockCubeb. r=padenot
The MockCubeb has been reformated to save the latest MockCubebStream. Then a flag is exposed that if true the audio callback will fire a cubeb state change callback with error state and will abort. On top of that, a new unit test has been implemented that triggers the error callback. This results in a crash that is being fixed in the following patch.

Differential Revision: https://phabricator.services.mozilla.com/D73102
2020-04-29 17:53:06 +00:00
Nika Layzell 5325da14b7 Bug 1633204 - Live WindowContexts should keep BrowsingContextGroup alive, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D72893
2020-04-29 18:49:10 +00:00