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

647988 Коммитов

Автор SHA1 Сообщение Дата
Robert Helmer 92681d5884 Bug 1515712 - add default pref and start corroborator if enabled r=kmag
Depends on D15123

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

--HG--
extra : moz-landing-system : lando
2019-04-20 05:10:23 +00:00
Robert Helmer de19e6e803 Bug 1515712 - check bundled JAR and XPI files for corruption r=kmag,chutten
Differential Revision: https://phabricator.services.mozilla.com/D15123

--HG--
extra : moz-landing-system : lando
2019-04-20 05:10:00 +00:00
Robert Helmer c14766668b Bug 1515712 - provide OMNIJAR_NAME constant for browser r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D15243

--HG--
extra : moz-landing-system : lando
2019-04-20 05:09:31 +00:00
Brindusan Cristian 53ae3683c8 Backed out 3 changesets (bug 1515712) for build bustages at 'cpp_guard'.
Backed out changeset 3e46d5fddd21 (bug 1515712)
Backed out changeset acb99631797a (bug 1515712)
Backed out changeset a2d24fd1fd67 (bug 1515712)
2019-04-20 05:44:41 +03:00
Ting-Yu Lin b18f4b64c3 Bug 1411422 - Make percentage block size children work without "height:100%" in ::-moz-column-set and ::-moz-column-content. r=dbaron
After introducing column-span, the ColumnSetWrapperFrame can have more
than one ColumnSetFrame children if there's any column-span:all child.
Thus we cannot use "height:100%" to pass block size information down to
the -moz-column-content's children.

Skip column span wrapper in nsIFrame::IsBlockWrapper() so that the
percentage column-span:all works.

Before this patch, the height of column contents are set to 100% of the
multicol container, so if the previous in-flows of column content
anonymous boxes consume all the height, later in-flows's height are all
0. In this patch, we don't restrict column-content's height, so their
height are calculated based on their children's height.
column-contain-1a.html passes because it can now correctly calculate the
union of all the column content's rect to find the correct sticky
positioning.

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

--HG--
extra : moz-landing-system : lando
2019-04-19 22:02:45 +00:00
Jeff Gilbert 04baf63a80 Bug 1545889 - Don't ABORT_ON_ERROR for CONTEXT_LOST. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D28263

--HG--
extra : moz-landing-system : lando
2019-04-20 02:19:01 +00:00
violet f48d16aaf5 Bug 1247218 - Should consider CSS transform when using non-scaling-stroke r=longsonr
We remove initial x/y offset for nsSVGUtils::GetTransformMatrixInUserSpace
so that it can be used in not-nondisplay context. Previously it was only
used in nondisplay context, where x/y offset is always 0.

Then we use this utility to get the transform matrix to judge whether we need
special care for non-scaling-stroke. The old matrix doesn't account for CSS
transform.

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

--HG--
extra : moz-landing-system : lando
2019-04-20 02:04:52 +00:00
Robert Helmer 2bc9b8f0bc Bug 1515712 - add default pref and start corroborator if enabled r=kmag
Depends on D15123

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

--HG--
extra : moz-landing-system : lando
2019-04-19 22:54:49 +00:00
Robert Helmer c88c593eab Bug 1515712 - provide OMNIJAR_NAME constant for browser r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D15243

--HG--
extra : moz-landing-system : lando
2019-04-19 22:53:53 +00:00
Robert Helmer 8274ca92fa Bug 1515712 - check bundled JAR and XPI files for corruption r=kmag,chutten
Differential Revision: https://phabricator.services.mozilla.com/D15123

--HG--
extra : moz-landing-system : lando
2019-04-19 22:54:21 +00:00
prathiksha 37cee0f171 Bug 1185000 - Show a dismissed password manager doorhanger when credit card numbers are detected. r=jaws
In certain straight-forward cases where we detect a credit card number being used with password fields we will show a dismissed password manager doorhanger. The user can still choose to save in case the valid credit card number is actually their username or password.

1) If the Luhn checksum matches on the username field (see CreditCard.jsm) AND the password is 3 numerical digits (don't handle 4 for now even though it's used by Visa since there are banks that use 4 digits passwords for online banking still).
2) If the Luhn checksum matches on the password value AND we detect that the type=password field is a credit card field via autocomplete=cc-number.
** We must include the @autocomplete check otherwise sites will abuse this loophole on legit login forms and set autocomplete=cc-number on their password fields to avoid saving.

For both of these cases we  should `dismissed:true` doorhanger, rather than not showing one at all, in case there are false-negatives.

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

--HG--
extra : source : e9be442c871e173a409f3b969f5bcea0e1ae4d71
extra : histedit_source : c942a81512be954abe595fa41ca44c26cd89b0e6
2019-04-19 13:52:58 -07:00
prathiksha 8c683ae2fc Bug 1185000 - Show a dismissed password manager doorhanger when credit card numbers are detected. r=jaws
In certain straight-forward cases where we detect a credit card number being used with password fields we will show a dismissed password manager doorhanger. The user can still choose to save in case the valid credit card number is actually their username or password.

1) If the Luhn checksum matches on the username field (see CreditCard.jsm) AND the password is 3 numerical digits (don't handle 4 for now even though it's used by Visa since there are banks that use 4 digits passwords for online banking still).
2) If the Luhn checksum matches on the password value AND we detect that the type=password field is a credit card field via autocomplete=cc-number.
** We must include the @autocomplete check otherwise sites will abuse this loophole on legit login forms and set autocomplete=cc-number on their password fields to avoid saving.

For both of these cases we  should `dismissed:true` doorhanger, rather than not showing one at all, in case there are false-negatives.

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

--HG--
extra : transplant_source : %A9%94_%9A%03%00%A1u%F3%28%C6%00H%16z%8A%8F%D6%18O
2019-04-19 13:52:58 -07:00
Matthew Noorenberghe bd58cd0090 Bug 1272849 - browser_notifications_2.js: Properly clear the password field in the doorhanger. r=intermittent
--HG--
extra : source : 33f6d42d7fa92c72b4adb78cf1e6f19932266bf6
extra : histedit_source : eb5754044fcfb79bab3baad0fef2500f500ede9d
2019-04-19 13:49:46 -07:00
Matthew Noorenberghe ecc6e3bbb7 Bug 1543449 - Follow-up to properly clear the password field in the doorhanger. r=intermittent
--HG--
extra : transplant_source : %3E%A1%19%AF%DE%DC%07%82%90S%E1%91N%80%D3s%0A%AA%CF%9C
2019-04-19 13:49:46 -07:00
prathiksha f56e3c8ac0 Bug 1539677 - Do not highlight the password field when pressing enter on the footer or the insecure field warning. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D27405

--HG--
rename : toolkit/components/passwordmgr/test/mochitest/test_autocomplete_highlight.html => toolkit/components/passwordmgr/test/mochitest/test_autocomplete_highlight_non_login.html
extra : rebase_source : ee0a97b70c46aa0e42811a4e3b0445814cb851aa
2019-04-19 11:54:32 -07:00
longsonr ff95be21f8 Bug 1542646 Part 10 - simplify boolean logic r=dholbert 2019-04-20 11:29:32 +01:00
longsonr 5f62f5b014 Bug 1542646 Part 9 - Fix else after return r=dholbert 2019-04-20 11:26:19 +01:00
Michael Kaply 0748631f8f Bug 1545592 - Make SanitizeOnShutdown policy more granular. r=Felipe,flod
Differential Revision: https://phabricator.services.mozilla.com/D28145

--HG--
extra : moz-landing-system : lando
2019-04-19 18:32:15 +00:00
Hiroyuki Ikezoe 241bdc3971 Bug 1544136 - Ship the scroll snap snap on betas and releases. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D27989

--HG--
extra : moz-landing-system : lando
2019-04-22 22:38:18 +00:00
Emilio Cobos Álvarez daef6a8b67 Bug 1546046 - Remove support for XBL resources. r=TYLin
So much unsound code going away :-)

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

--HG--
extra : moz-landing-system : lando
2019-04-22 21:57:22 +00:00
Alexander Surkov af181e17f0 Bug 1519514 - make sure document.l10n is initialized before triggering conext menu over a tab in browser_ext_menus_activeTab.js test r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D28366

--HG--
extra : moz-landing-system : lando
2019-04-22 20:18:02 +00:00
Oana Pop Rus bb64503da3 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-04-23 01:15:48 +03:00
Gurzau Raul f05aef3e04 Backed out 9 changesets (bug 1542454, bug 1533562) for failing at /browser/browser_ext_webNavigation_onCreatedNavigationTarget_contextmenu.js on a CLOSED TREE.
Backed out changeset 88756a309968 (bug 1542454)
Backed out changeset 37bd2819d3a7 (bug 1542454)
Backed out changeset 19f0462bb47a (bug 1542454)
Backed out changeset b4440b1833ec (bug 1533562)
Backed out changeset 8970cdb3c04a (bug 1533562)
Backed out changeset 498cd34eea78 (bug 1533562)
Backed out changeset 3a3b4d52e10a (bug 1533562)
Backed out changeset 5fae2f233aa0 (bug 1533562)
Backed out changeset e3fc54ebcd15 (bug 1533562)
2019-04-23 01:09:12 +03:00
Emilio Cobos Álvarez e4f84a0b9d Bug 1470880 - Simplify arrowpanel selectors in order to remove last usage of xbl resources. r=bgrins
The reason why this fixes it is a bit subtle, let me try to explain.

XBL has this mechanism where all attributes in the binding `<content>` element
get auto-propagated to the bound element (the `<panel>` in this case).

This doesn't seem to be a very used feature looking at:

https://searchfox.org/mozilla-central/search?q=%3Ccontent&case=false&regexp=false&path=xml

The panel binding uses it to add the `side` attribute:

https://searchfox.org/mozilla-central/rev/d80f0a570736dce76a2eb184fb65517462089e8a/toolkit/content/widgets/popup.xml#264

The key here is that this attribute addition is silent (`aNotify=false`):

https://searchfox.org/mozilla-central/rev/d80f0a570736dce76a2eb184fb65517462089e8a/dom/xbl/nsXBLBinding.cpp#341

This means that the presence of this attribute is not supposed to change the
rendering of the page. It'd also be unsafe to notify at the point at which we
create XBL bindings.

So the way this happens is:

  * We compute the initial style of the `<panel>` element (which doesn't have a
    `side` attribute, and thus doesn't match the rules, and has a computed
    opacity of 1).
  * The XBL service _silently_ sets the `side` attribute. This should cause a
    style change, but it doesn't since it's silent, so we remain with the
    opacity of 1.
  * We open the popup, and the XBL binding listens for the `popupshowing` event
    and adds the `animate` attribute. The style system notices, and eventually
    we compute the new style. Issue is, it has again an opacity of 1, so we
    don't fire the transition.

Same with transform and such of course.

So far so good, but then, why does it work if there's a `<resources>` element
with an empty stylesheet? Fun that you ask!

We explicitly re-resolve the style of the element if there are any stylesheets:

https://searchfox.org/mozilla-central/rev/d80f0a570736dce76a2eb184fb65517462089e8a/dom/xbl/nsXBLService.cpp#551

And thus grab the correct initial opacity of zero, and trigger the transition.

Given arrow panels always have a `side` attribute (and same for the bookmarks
thing), making their style not depend on the silent attribute additions from
`<content>` fixes the bug.

We could fix the bug with an alternative patch (re-resolving style if there's a
`<content>` element with attributes in the binding). This wouldn't be completely
sound anyway in presence of combinators, and given that it'd remain being
unsound anyway, we should probably just remove that feature.

Also, the simplification of the stylesheets seems worth it anyway.

I'll follow-up removing the `<resources>` implementation, and we should probably
investigate removing the `<content>` attribute propagation, since it's the
really unsound thing here.

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

--HG--
extra : moz-landing-system : lando
2019-04-22 21:41:29 +00:00
Ed Lee 6b90ab2c92 Bug 1546190 - Add sharper images, collapsible devtools and bug fixes to Activity Stream r=r1cky
Differential Revision: https://phabricator.services.mozilla.com/D28398

--HG--
extra : moz-landing-system : lando
2019-04-22 20:43:46 +00:00
Alex Chronopoulos 5a8063b204 Bug 1546070 - Update dav1d from upstream to f8cac8c. r=TD-Linux
The imported version is just one commit over 0.2.2 and solves the crash for this bug.

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

--HG--
extra : moz-landing-system : lando
2019-04-22 19:48:05 +00:00
Daosheng Mu 19d96836d5 Bug 1529105 - Replace tmpname in OpenVRSession when using action input. r=kip
Differential Revision: https://phabricator.services.mozilla.com/D28136

--HG--
extra : moz-landing-system : lando
2019-04-22 20:41:38 +00:00
Andrew Erickson 377244bae8 Bug 1545860: fix tooltool url, r2 r=bc,gbrown
changes from https://phabricator.services.mozilla.com/D28260:
- fix flake error ( was reverted due to one)

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

--HG--
extra : moz-landing-system : lando
2019-04-22 20:06:37 +00:00
Avery Berninger a3b108d583 Bug 1545052 - Fix broken about:preferences link (Android), r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D28169

--HG--
extra : moz-landing-system : lando
2019-04-22 20:37:17 +00:00
Grisha Kruglov b44585f969 Bug 1545232 - Add AuthStateProvider r=nalexander,sebastian
See comments in the patch for details.

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

--HG--
extra : moz-landing-system : lando
2019-04-22 20:07:34 +00:00
Emilio Cobos Álvarez f2b53c1479 Bug 1545979 - Drop unused user-agent cascade datas when not holding the cache lock. r=bholley
We want to drop the cascade data memory as soon as possible, so bug 1544546
introduced an UpdateStylistIfNeeded call from ShellDetachedFromDocument.

Unfortunately, this call can reenter into the global user-agent cascade data if
some of the CSS values kept alive by the cascade data keep alive an SVG
document, see the stack on this bug for an example. Make sure to drop the
user-agent cascade datas when not holding the cache lock to avoid this
situation.

Before bug 1535788, we just destroyed the stylist, so we kept holding a
reference from the cache, and that reference will be dropped sometime later when
other document updated their user-agent stylesheets (if they happened not to
match the cache of course).

Seems to me this doesn't ended up happening in our automation, but it could
happen in the wild, in theory at least.

It's nice that Rust made this a safe deadlock caught by our tests rather than a
very subtle and infrequent memory corruption.

The relevant SVG documents are probably the <input type=number> rules:

https://searchfox.org/mozilla-central/rev/d80f0a570736dce76a2eb184fb65517462089e8a/layout/style/res/forms.css#1050

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

--HG--
extra : moz-landing-system : lando
2019-04-22 19:45:06 +00:00
Bogdan Tara 614fe1a130 Backed out changeset 5f0139ba2544 (bug 1545273) for browser_blockingCookies.js failures CLOSED TREE 2019-04-22 23:29:22 +03:00
Andrew Halberstadt 876624be23 Bug 1546100 - Turn off e10s for mochitest-a11y/chrome in task configuration (Backs out effa55bd84bb and 2f12958d4e8c), r=jmaher
Turns out these suites were hardcoded to be non-e10s in the mochitest harness.
So while it looked like they were working with e10s in treeherder, they were
actually still running with it disabled.

Turning e10s on causes both suites to permafail due to timeouts.

Depends on D28386

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

--HG--
extra : moz-landing-system : lando
2019-04-22 18:52:24 +00:00
Andrew Halberstadt a35fbb3478 Bug 1546100 - [tryselect] Fix tools/tryselect/test/test_fuzzy.py, r=jmaher
This was regressed by bug 1544816 but the test never ran on the push that regressed.
This patch also updates the 'files-changed' for the tryselect task.

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

--HG--
extra : moz-landing-system : lando
2019-04-22 18:38:58 +00:00
Jeff Gilbert 544759b391 Bug 1545892 - Reduce includes in gfx2DGlue.h, nsLayoutUtils.h, nsPresContext.h. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D28266

--HG--
extra : moz-landing-system : lando
2019-04-22 19:58:52 +00:00
Miko Mynttinen 84624b4a42 Bug 1540785 - Part 2: Devirtualize nsDisplayItemBase::GetPerFrameKey() r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D27580

--HG--
extra : moz-landing-system : lando
2019-04-22 19:58:01 +00:00
Miko Mynttinen f579c8f5c5 Bug 1540785 - Part 1: Introduce nsDisplayItemBase r=mattwoodrow
***

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

--HG--
extra : moz-landing-system : lando
2019-04-22 19:57:59 +00:00
Daosheng Mu 9e73a18233 Bug 1545806 - Correct the initializer list in Windows gamepad axis value constructor. r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D28242

--HG--
extra : moz-landing-system : lando
2019-04-22 18:37:11 +00:00
Jason Laster 4d089aa543 Bug 1536116 - Highlights might not be shown when on the debug line. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D28086

--HG--
extra : moz-landing-system : lando
2019-04-22 15:52:13 +00:00
Markus Stange 77ddedaacb Bug 1542454 - Factor out some code. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D26402

--HG--
extra : moz-landing-system : lando
2019-04-22 19:41:58 +00:00
Markus Stange d0ba1d9725 Bug 1542454 - Remove support for drawing the window resizer. r=spohl
The last version of macOS that put resizers in window corners was 10.6.

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

--HG--
extra : moz-landing-system : lando
2019-04-22 19:41:41 +00:00
Markus Stange 0f29789b59 Bug 1542454 - Remove unused function COLOR8TOCOLOR16. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D26400

--HG--
extra : moz-landing-system : lando
2019-04-22 19:41:21 +00:00
Markus Stange de6910917a Bug 1533562 - Do not move the TitlebarGradientView from a ToolbarWindow into a BorderlessWindow when hiding the window chrome. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D25516

--HG--
extra : moz-landing-system : lando
2019-04-22 19:27:09 +00:00
Markus Stange 537ff00f68 Bug 1533562 - Implement titlebar gradient drawing with a new TitlebarGradientView. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D22646

--HG--
extra : moz-landing-system : lando
2019-04-22 19:26:56 +00:00
Markus Stange 8f1414b86c Bug 1533562 - Always make the content view of ToolbarWindows cover the entire window. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D22645

--HG--
extra : moz-landing-system : lando
2019-04-22 19:26:38 +00:00
Markus Stange 92aa2412e5 Bug 1533562 - Remove override of -[NSThemeFrame _unifiedToolbarFrame]. r=spohl
This override has no effect in CoreAnimation-backed windows. The upcoming
patches will implement an alternative approach.

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

--HG--
extra : moz-landing-system : lando
2019-04-22 19:26:29 +00:00
Markus Stange 61e81ce45e Bug 1533562 - Remove code that deals with non-rounded bottom corners on regular windows. r=spohl
Rounded bottom corners have been the default since 10.7.

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

--HG--
extra : moz-landing-system : lando
2019-04-22 19:26:15 +00:00
Markus Stange 7540dfbeba Bug 1533562 - Remove synchronous repaint capability of setTitlebarNeedsDisplayInRect:sync: and also remove the rect parameter because we always pass the same value to it. r=spohl
The synchronous paint was only needed a long time ago when we were calling this
method during drawRect. We're not doing that any more, we usually call it from
viewWillDraw now. But even at the time, forcing a synchronous paint *within*
a paint was extremely sketchy, so best just to remove the code.

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

--HG--
extra : moz-landing-system : lando
2019-04-22 19:26:00 +00:00
Aaron Klotz 5a16846aa3 Bug 1535704: Part 1 - Move IsWin32kLockedDown into mozglue; r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D27832

--HG--
extra : moz-landing-system : lando
2019-04-22 19:13:23 +00:00
Agi Sferro d9c6b51564 Bug 1529119 - Expose msaa-level, double_tap_zooming, autozoom. r=snorp
FxR uses these prefs and they might be helpful to other embedders so we can
just add them to GeckoRuntimeSettings.

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

--HG--
extra : moz-landing-system : lando
2019-04-22 18:50:08 +00:00