Commit Graph

706274 Commits

Author SHA1 Message Date
Dan Glastonbury
63cf313ca2 Bug 1624550 - P1: Move nsDocShell::mUseGlobalHistory to BrowsingContext. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D72276
2020-05-08 03:28:38 +00:00
Matt Woodrow
3d6e4f24c6 Bug 1635995 - Allow CSP service to do redirect checks on documents in the parent, rather than doing it manually. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D74170
2020-05-08 02:53:57 +00:00
Matt Woodrow
66e1e333d1 Bug 1635992 - Use LoadInfo and WindowContext in nsMixedContentBlocker instead of the docshell and Document. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D74169
2020-05-08 02:53:44 +00:00
Matt Woodrow
fce5746949 Bug 1635992 - Pass LoadInfo into nsMixedContentBlocker::ShouldLoad. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D74168
2020-05-08 02:53:42 +00:00
Nika Layzell
050e87dc2c Bug 1631332 - Block attempts to open windows from remote tabs without useRemoteTabs, r=kmag
This is an initial step. In the future it may be nice to avoid loading remote
tabs within windows without `useRemoteTabs` in general.

Differential Revision: https://phabricator.services.mozilla.com/D72936
2020-05-08 02:36:17 +00:00
Nika Layzell
9e0032b97f Bug 1633820 - Part 5: Get rid of UnsafeIPCTabContext, r=kmag
This variant was only used for service workers' openWindow method, which has
been changed to no longer behave in this way, meaning that the type can be
removed. The follow-up simplification of removing
'ContentChild::ProvideWindowCommon', and moving the logic directly into
'BrowserChild' is not done in this bug, and will be done in a follow-up instead.

Differential Revision: https://phabricator.services.mozilla.com/D72935
2020-05-07 22:18:56 +00:00
Nika Layzell
6cb771c699 Bug 1633820 - Part 4: Remove OriginAttributes from TabContext, r=kmag
This information is now redundant with 'BrowsingContext', meaning that it can be
omitted from the 'TabContext'.

Differential Revision: https://phabricator.services.mozilla.com/D72934
2020-05-07 22:18:54 +00:00
Nika Layzell
2454ade94e Bug 1633820 - Part 3: Get rid of PBrowserOrId, r=mattwoodrow,necko-reviewers,dragana
The 'Id' variant was only used with b2g for remote `mozbrowser`s, and is no
longer relevant. The new code instead uses `PBrowser` directly in all cases.

Differential Revision: https://phabricator.services.mozilla.com/D72933
2020-05-07 22:49:06 +00:00
Nika Layzell
76b1144754 Bug 1633820 - Part 2: Avoid creating an extra LoadContext when we already have a BrowsingContext, r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D72932
2020-05-07 22:18:50 +00:00
Nika Layzell
3a74776a51 Bug 1633820 - Part 1: Assert Coherent Load Context, r=mattwoodrow
This patch asserts in various places that our LoadContext value on
BrowsingContext is consistent. This is done in order to get better diagnostics
for crashes such as those in bug 1629527.

Differential Revision: https://phabricator.services.mozilla.com/D72931
2020-05-07 22:18:46 +00:00
Makoto Kato
87b65f5492 Bug 633109 - Use system font iterator APIs if Andorid API 29+. r=jfkthame
Android API 29 or later has font matcher and system font API that is for
accessing font data from native code.

Although Android's Default fonts are installed `/system/fonts`, some vendors
also install some fonts in another directories.

Example, Pixel 2's fonts are installed in `/system/fonts` and `/product/fonts`.

Differential Revision: https://phabricator.services.mozilla.com/D70533
2020-05-07 11:03:08 +00:00
Wander Lairson Costa
ea1c1973c0 Bug 1635877: move all android-em tests to AWS baremetal r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D74166
2020-05-08 01:56:55 +00:00
Mike Hommey
8ffeb31e4c Bug 1636342 - Fix configure --cache-file. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D74357
2020-05-08 01:45:56 +00:00
Timothy Nikkel
95e9c5bc76 Bug 1636305. End every subtest in gfx/tests/gtest/TestVsync.cpp by disabling vsync. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D74336
2020-05-08 01:44:32 +00:00
Matt Woodrow
ab7bcd098f Bug 1570243 - Make WindowContext CanSet functions check if the WindowContext is owned by the setting process, not the BrowsingContext. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D73997
2020-05-08 01:38:02 +00:00
Matt Woodrow
3799bf96ea Bug 1635600 - Don't recreate null principal for windows created by a new window global child actor. r=nika
Depends on D73995

Differential Revision: https://phabricator.services.mozilla.com/D73996
2020-05-07 08:26:35 +00:00
Greg Tatum
6066dc40b3 Bug 1628073 - Make the defaults for the profiler settings nicer for mochitests; r=gerald
The defaults should serve our users. I did some profiling with mochitests
and the defaults weren't ideal. It would be nice if the profiler "just worked"
for most of the situations. It would be great to teach the environment variables
about presets, but for now this will make the profiler easier to use for our
users in the general case.

This patch adds both screenshots and updates the entries count. This causes
additional overhead, but people on low-end devices can still tweak the settings
to remove that overhead.

Differential Revision: https://phabricator.services.mozilla.com/D70091
2020-05-08 00:48:55 +00:00
Greg Tatum
b198255525 Bug 1630271 - Guard against accidental uses of startup and shutdown profiling in tests; r=canaltinova
Right now trying to dump a shutdown profile from our profiler tests results in failure,
which is confusing. We should guard against this and fail the test if this happens.

Differential Revision: https://phabricator.services.mozilla.com/D74286
2020-05-07 20:33:22 +00:00
Micah Tigley
53e3836946 Bug 1617237 - Update snapshots for DebugTargetInfo component r=jdescottes,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D74271
2020-05-08 00:22:59 +00:00
Micah Tigley
a95b7b80d2 Bug 1617237 - Part 5: Add test for changing the URL from the remote debugging UI r=daisuke
Depends on D72274

Differential Revision: https://phabricator.services.mozilla.com/D72275
2020-05-07 18:06:47 +00:00
Micah Tigley
a97fe3876b Bug 1617237 - Part 4: Select all text when URL input is focused r=daisuke
Depends on D72227

Differential Revision: https://phabricator.services.mozilla.com/D72274
2020-05-07 17:22:10 +00:00
Micah Tigley
02c3543611 Bug 1617237 - Part 3: Add the keypress listener for just DevTools' tab bar r=yzen,daisuke
`_onToolbarArrowKeypress` is only concerned with moving focus between tabs in the toolbar when the right/left arrow keys are pressed. This patch ensures the listener is only added to the container of the tab elements (.devtools-tabbar).

Depends on D70279

Differential Revision: https://phabricator.services.mozilla.com/D72227
2020-05-07 17:22:12 +00:00
Micah Tigley
068bfeb48b Bug 1617237 - Part 2: Render URL input in DebugTargetInfo for USB debugging. r=jdescottes,daisuke
Depends on D70280

Differential Revision: https://phabricator.services.mozilla.com/D70279
2020-05-07 17:22:16 +00:00
Micah Tigley
c2f33b7939 Bug 1617237 - Part 1: Ensure that ToolboxController updates its children when target navigates r=jdescottes,daisuke
The DebugTargetInfo component doesn't receive new target information when navigation occurs. This is because the ToolboxController doesn't seem to be aware of these changes. To trigger an update, we can force new props to be passed to DebugTargetInfo by setting the target's debug info on its local state.

Differential Revision: https://phabricator.services.mozilla.com/D70280
2020-05-07 17:22:14 +00:00
Jeff Walden
9542e5adb2 Bug 1633598 - Add a user of |JS::CopyArrayBuffer|. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D73745
2020-05-07 23:47:21 +00:00
Jeff Walden
75b3b72bb9 Bug 1633598 - Add JSAPI to create an ArrayBuffer with contents and length copied from an existing one. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D72909
2020-05-07 23:46:22 +00:00
Jeff Walden
a9205a2fc8 Bug 1633598 - Make AllocateArrayBufferContents return a UniquePtr to handle manually freeing memory in case of early error. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D73553
2020-05-07 23:45:49 +00:00
Marco Castelluccio
89ec5820c9 Bug 1608421 - Only run the bugzilla-components task on mozilla-central. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D74329
2020-05-07 22:38:13 +00:00
Timothy Nikkel
0ddee13c53 Bug 1635658. Fix how CSS filters render with webrender that are represented as component transfer when they are required to be represented as SVG filters. r=mstange
The brightness, contrast, and invert css filters are represented as component transfer filters when they required to be represented as an svg filter (ie when an element has a combination of CSS and SVG filters specified).

https://hg.mozilla.org/mozilla-central/rev/4f3360c4f104 (bug 1417699) used the value SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN for the function type in the G and B channels to specify that the R channel function should be used. As we know from https://hg.mozilla.org/mozilla-central/rev/a1ff0af83ad2 (bug 1605223) SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN is the value we get if the function is not specified, and by spec that is to be interpreted as the identity function.

To fix this use a special function type that is not exposed to content, SVG_FECOMPONENTTRANSFER_SAME_AS_R, when we want to do this optimization. And then teach the webrender filter code to understand it.

Differential Revision: https://phabricator.services.mozilla.com/D74189
2020-05-07 23:39:56 +00:00
Daisuke Akatsuka
09d5046045 Bug 1620098: Avoid calling onUpdateDeviceModal twice when closing the device modal. r=mtigley
Depends on D67984

Differential Revision: https://phabricator.services.mozilla.com/D68141
2020-05-07 02:45:15 +00:00
Daisuke Akatsuka
555708ddc9 Bug 1620098: Remove unnecessary processing in RDM. r=mtigley
Depends on D67983

Differential Revision: https://phabricator.services.mozilla.com/D67984
2020-05-07 02:45:05 +00:00
Daisuke Akatsuka
cca27059d5 Bug 1620098: Show HTMLTooltip in html document as XUL popup. r=bgrins,jdescottes,mtigley,yzen,bdahl,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D67983
2020-05-07 23:33:57 +00:00
Daniel Holbert
481774503b Bug 1635941 followup: Drop some more debugging printfs. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D74342
2020-05-07 23:13:51 +00:00
Bianca Danforth
b8f42de998 Bug 1634819 - Existence check element.parentElement and element.previousElementSibling in new password heuristics; r=MattN
The element.parentNode.nodeName approach also handled the error, but when I ran the updated model through the training, validation and testing samples, our false positive rate (FPR) went up from 2.2% to 4.5% (referencing the most recent update to NewPasswordModel.jsm in bug 1629132) with a confidence threshold of 0.75. Unfortunately, that is well above our target FPR of 2-3%.
* I am not surprised by this difference: the diff I had tested with `parentNode.nodeName` replaced `parentElement` with `parentNode` and `tagName` with `nodeName` everywhere in this rule. Since `Node.ELEMENT_NODE` is only one of [several other `Node.nodeType`](https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType)'s, I can imagine that for some of the sites in the corpus, `element.parentElement` was not the same node as `element.parentNode`. Therefore the downstream return value could also be different; i.e. the modified rule may then return `false` instead of `true` or vice versa for some or all of these affected pages, and the model would consequently reach a different (and potentially worse) optimization.

Returning `false` for this rule in these cases will leave the model's performance unchanged on pages that don't use the Shadow DOM at all or in this specific way.

Also add some existence checks further downstream in the same rule where the values could also be `null`.

Differential Revision: https://phabricator.services.mozilla.com/D74164
2020-05-07 23:12:47 +00:00
Jonathan Watt
c6c74ac1f0 Bug 1636304. Fix and improve the Mermaid documentation. r=sylvestre
The second example, when copied and pasted, is completely borked since it
is not preceeded by the line that declares what follows to be a Mermaid
diagram. This change fixes that.

It also fixes the prose to read slightly less awkwardly in places.

Finally, this change also adds a link to the Mermaid Live Editor to make
readers aware of this useful tool.

Differential Revision: https://phabricator.services.mozilla.com/D74338
2020-05-07 23:16:00 +00:00
sefeng
aa92a33fcc Bug 1636142 - Make DOM Arena is only enabled in early beta r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D74245
2020-05-07 23:14:42 +00:00
sefeng
9ce53561fa Bug 1636012 - Remove TYPES_OF_USER_CLICKS probe r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D74250
2020-05-07 22:12:52 +00:00
Aaron Klotz
429648e903 Bug 1636285: Add a descriptive message to EnsureJNIObject; r=geckoview-reviewers,droeh
Differential Revision: https://phabricator.services.mozilla.com/D74328
2020-05-07 22:18:48 +00:00
Tom Prince
f6ce67ee8a Bug 1635852: Include minidump_stackwalk files in taskgraph sparse-profile; r=glandium
Without this, taskgraph calculates the digest based on just the files in these
directories that are in the sparse profile (I suspect this is just the
moz.build files), and will rebuild it when those files change. This changes
ensures that all files in those directories are used to calculate the digest.

Additionally, this will cause the same digest to be generted by developers
locally, since the files *are* present in the non-sparse checkout that most
developers have.

Differential Revision: https://phabricator.services.mozilla.com/D74113
2020-05-07 22:20:52 +00:00
Razvan Maries
7a5b66f9b6 Backed out 5 changesets (bug 1633820) for build bustages at TabContext.cpp. CLOSED TREE
Backed out changeset 0a20dd1935d7 (bug 1633820)
Backed out changeset 626e834293ed (bug 1633820)
Backed out changeset 14cc454a8cbc (bug 1633820)
Backed out changeset 7bbcb9266b87 (bug 1633820)
Backed out changeset ef99672bd2af (bug 1633820)
2020-05-08 00:59:20 +03:00
Byron Campen [:bwc]
443980e4d9 Bug 1635922: Add bug link to ini file. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D74247
2020-05-07 19:28:59 +00:00
Emilio Cobos Álvarez
4c9a02c745 Bug 1636227 - Don't reset _sameProcessAsFrameLoader on first browser initialization. r=Gijs
LazyFC changes the way we initialize browsers in a subtle way which is
important for print preview and PiP.

When creating a print preview browser / PiP, we rely on getting the right
process via _sameProcessAsFrameLoader. This is set very early on the
lifetime of the browser element, after it's upgraded but before its
connectedCallback() calls.

What happens with LazyFC is that we append the browser to the document,
then set its sameProcessAsFrameLoader, then initialize the browser from
connectedCallback(). That calls resetFields() _after_ setting the
_sameProcessAsFrameLoader, which clears it out, not good.

Without LazyFC we initialize it via frame construction, as soon as the
browser is attached to the document, so all ends up working out.

Explicitly avoid clearing this field out if not initialized yet, instead
of the hasOwnProperty check which was for the very same thing, just
about XBL initialization.

Differential Revision: https://phabricator.services.mozilla.com/D74282
2020-05-07 21:52:24 +00:00
Razvan Maries
d52f7a898c Backed out 2 changesets (bug 1635584) for build bustages. CLOSED TREE
Backed out changeset 059ed60f23bf (bug 1635584)
Backed out changeset 876b8f443cca (bug 1635584)
2020-05-08 00:47:31 +03:00
Jan-Ivar Bruaroey
036ac85331 Bug 1434601 - Do screen wakelock even without audio if video element is sourced by a media stream. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D74129
2020-05-07 21:35:37 +00:00
Asumu Takikawa
8a3e4025c9 Bug 1633740 - Add test for BigInt/I64 conversion crash on inlined Ion to Wasm calls r=lth,wingo
This diff adds a test using gczeal to trigger a GC crash caused by the BigInt/I64 conversion path in inlined Ion To Wasm calls.

The actual fixes for the crash are in bug 1633714.

Differential Revision: https://phabricator.services.mozilla.com/D73111
2020-05-07 21:11:37 +00:00
Sonia Singla
48c8659c89 Bug 1620646 - Changes fixed for test failure. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D73436
2020-05-07 21:31:12 +00:00
Nika Layzell
6f9f8ba6b2 Bug 1633820 - Part 5: Get rid of UnsafeIPCTabContext, r=kmag
This variant was only used for service workers' openWindow method, which has
been changed to no longer behave in this way, meaning that the type can be
removed. The follow-up simplification of removing
'ContentChild::ProvideWindowCommon', and moving the logic directly into
'BrowserChild' is not done in this bug, and will be done in a follow-up instead.

Differential Revision: https://phabricator.services.mozilla.com/D72935
2020-05-07 17:18:58 +00:00
Nika Layzell
d6a082e20a Bug 1633820 - Part 4: Remove OriginAttributes from TabContext, r=kmag
This information is now redundant with 'BrowsingContext', meaning that it can be
omitted from the 'TabContext'.

Differential Revision: https://phabricator.services.mozilla.com/D72934
2020-05-07 17:18:48 +00:00
Nika Layzell
dd35cc6b02 Bug 1633820 - Part 3: Get rid of PBrowserOrId, r=mattwoodrow,necko-reviewers,dragana
The 'Id' variant was only used with b2g for remote `mozbrowser`s, and is no
longer relevant. The new code instead uses `PBrowser` directly in all cases.

Differential Revision: https://phabricator.services.mozilla.com/D72933
2020-05-07 17:45:12 +00:00
Nika Layzell
51df83bff7 Bug 1633820 - Part 2: Avoid creating an extra LoadContext when we already have a BrowsingContext, r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D72932
2020-05-07 17:18:44 +00:00