Commit Graph

608012 Commits

Author SHA1 Message Date
Chris Peterson
dc642862f3 Bug 1481097 - wasm: Remove inline template workaround for gcc 4.8.5 bug. r=lth
This gcc 4.8.5 workaround (from bug 1316850) is no longer needed because Firefox currently requires gcc 6.1 or later (as of bug 1444274).

MozReview-Commit-ID: 4JFmOYoJnMH

--HG--
extra : rebase_source : f348a629f25f6852250306d969262372460a677a
extra : source : cb42b2192694148ffdf97c3a5c2fabb2578a0ec0
2018-07-22 00:21:45 -07:00
Chris Peterson
72c44c30b9 Bug 1481097 - layout: Remove nsCSSPseudoElements workaround for gcc 4.9.2 bug. r=dbaron
This gcc 4.9.2 workaround (from bug 1273048) is no longer needed because Firefox for Android now uses clang instead of gcc (as of bug 1163171).

The gcc bug was fixed in gcc 4.8.5 and 4.9.3:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64037

MozReview-Commit-ID: IAKONNSkqcz

--HG--
extra : rebase_source : 643dd54bb2fba5c42dc2fd94d037c4867c48aaf9
extra : source : c0a136d3504df14eef7f03e3a5588a47519035d5
2018-07-21 23:48:16 -07:00
Chris Peterson
b227b37687 Bug 1481097 - mfbt: Assert we're compiling with gcc 6.1 or later. r=glandium
Firefox currently requires gcc 6.1 or later (as of bug 1444274).

MozReview-Commit-ID: CaJwpUgntxn

--HG--
extra : rebase_source : 302d8aa57696e2e96962c67e3497f76e882a472f
extra : source : 2a53a830f79424b2c41c8bdc4816ec24fa943ecc
2018-07-21 23:45:41 -07:00
Philipp Hancke
660235d2fd Bug 1481557: improve getStats isRemote deprecation warning. r=jib
by adding the key that is accessed.
2018-08-07 20:00:26 +02:00
Brindusan Cristian
37bf8a10b0 Backed out 3 changesets (bug 1378808) for wpt failures on /content-security-policy/securitypolicyviolation/targeting.html.
Backed out changeset 6c6a609463ab (bug 1378808)
Backed out changeset 6dd9c641346a (bug 1378808)
Backed out changeset e732697778c2 (bug 1378808)
2018-08-08 04:40:19 +03:00
Kris Maglione
773d32e9fe Bug 1481021: Part 2 - Stop loading SpecialPowers into frame script scopes. r=bz,jmaher,aswan
Loading SpecialPowers into frame scripts has side-effects, detailed in part 1,
which are undesirable. The main side-effect that I'm trying to get rid of here
is the force-enabling of permissive COWs in frame script scopes, which is
blocking changes that I need to make elsewhere. But both that and the scope
pollution it causes are likely to allow code to work when running in
automation which fails in real world usage.

This patch changes our special powers frame scripts to load specialpowers.js
and specialpowersAPI.js as JSMs, which run in their own global, but define
most of the same properties on our frame script globals.

Most other callers still load those scripts via <script> tags or the subscript
loader, and should ideally migrated in a follow-up. But even so, this patch
still gives us a cleaner separation of the frame script and non-frame-script
loading code.

MozReview-Commit-ID: CR226gCDaGY

--HG--
extra : rebase_source : 251574d238ded31b9df32dc89852251831d55757
extra : source : c53c7b0249ad3359fbc9f144f2cf9ca3b6386c59
2018-08-07 14:03:21 -07:00
Kris Maglione
25c94b46d8 Bug 1481021: Part 1 - Fix tests that rely on permissive COWs or SpecialPowers side-effects in frame script scopes. r=bz
Right now, a lot of test code relies on side-effects of SpecialPowers being
loaded into frame script globals. In particular:

- It forces permissive COWs from those scopes, which allows frame scripts to
  pass objects from those scopes to unprivileged content that they otherwise
  wouldn't.
- It imports a bunch of helper modules and WebIDL globals which would
  otherwise not be available.

Fortunately, this seems to only impact test code at this point. But there's a
real down-the-road risk of it impacting shipping code, which ends up working
in automation due to the side-effects of SpecialPowers, but failing in real
world use.

MozReview-Commit-ID: G27eSSOHymX

--HG--
extra : rebase_source : 1702e63fed719fc92def2bdbbb8a7c53572432db
extra : source : 41bedc526dd6ec6b7e8c7be1c832ac60c81d6263
2018-08-07 14:13:06 -07:00
Kyle Machulis
3b913b0f12 Bug 1480641 - Remove nsITextScroll; r=nika
Summary:
Implemented by nsDocShell and nsWebBrowser (which just wraps the
docshell functions), but not actually used anywhere.

MozReview-Commit-ID: 2YzfsrvOolX

Test Plan: Try run

Reviewers: nika

Tags: #secure-revision

Bug #: 1480641

Differential Revision: https://phabricator.services.mozilla.com/D2695
2018-08-07 17:28:16 -07:00
Brindusan Cristian
16ec846afc Backed out 2 changesets (bug 1481021) for bc failures on security/sandbox/test/browser_bug1393259.js.
Backed out changeset c53c7b0249ad (bug 1481021)
Backed out changeset 41bedc526dd6 (bug 1481021)
2018-08-08 03:22:16 +03:00
Emilio Cobos Álvarez
a8579f90d1 Bug 1481681: Fix Servo build and unit tests. r=me 2018-08-08 01:39:59 +02:00
Emilio Cobos Álvarez
ef6c33c8d4 Bug 1481681: Appease Servo's tidy lint. r=me 2018-08-08 01:39:58 +02:00
Emilio Cobos Álvarez
4d3c28d75d Bug 1481681: Sync some dependencies with servo. r=me 2018-08-08 01:39:57 +02:00
Mantaroh Yoshinaga
cfc260de8d Bug 1477088 - Part 2. Use 'synthesizeMoustAtCenter' instead of 'sendMouseEvent' and check the active input element focus before opening door hanger menu. r=nchevobbe
The patch of part 1 changed the behavior of clicking the meatball button.
So this patch will fix the related test.

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

--HG--
extra : rebase_source : ddacf0f0a4da73cef8a91731eb7326e286d2f83d
extra : amend_source : 86066fd3fbc25447c2ec98b06fbf11da93578df1
2018-08-08 08:16:16 +09:00
Mantaroh Yoshinaga
be9e7e8e9b Bug 1477088 - Part 1. Force adding the focus to the button in order to handle the key event. r=birtles
The menu button can't receive the key event on macOS since macOS doesn't leave the focus of the menu button even if click the menu button.
So this patch will add the focus to the button when clicking the button.

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

--HG--
extra : rebase_source : 0cb9064790c6d75c61fccc51b14faf6ddf00f98e
extra : amend_source : 122dbced9ac858edfb9b55fad0a2b6ad1f398b52
2018-08-08 08:16:12 +09:00
Dão Gottwald
2baf8e31d6 Bug 1481321 - Stop eagerly creating thumbnails for the Ctrl+Tab panel. r=jaws 2018-08-07 11:34:42 +02:00
Jim Blandy
1d92752dd6 Bug 1073753: Document GC sensitivity of Debugger.prototype.onNewGlobalObject. r=jorendorff DONTBUILD 2018-08-07 11:33:56 -07:00
Logan F Smyth
96dd9699d1 Bug 1378808 - Use ::Arguments or ::PropertyName location for method call column offsets. r=jorendorff
MozReview-Commit-ID: G8mG1qsIO21

--HG--
extra : rebase_source : b5a72b239156617319fc6dabe111c02c13f621c9
2018-07-12 11:51:17 -07:00
Logan F Smyth
190da876ea Bug 1378808 - Add a new ParseNodeKind::PropertyName to hold location information about property access name. r=jorendorff
MozReview-Commit-ID: J4vHz4ln5Zt

--HG--
extra : rebase_source : ef066b750f7fac7057335446dd6040da8b7de8e8
extra : source : 3b4f4db5d3d78170faf00bdf9fe2a562ad155fd5
2018-07-12 11:29:05 -07:00
Logan F Smyth
fa5586057e Bug 1378808 - Add a new ParseNodeKind::Arguments node type for call argument lists. r=jorendorff
MozReview-Commit-ID: 7L4nNHjVoZo

--HG--
extra : rebase_source : 8ccc04cb335a227c45a332ded88408d6a2ec7c09
2018-07-12 11:24:59 -07:00
Nathan Froyd
12450ae975 Bug 1480590 - add support for aarch64 when setting up NSPR on Windows; r=chmanchester 2018-08-07 18:40:25 -04:00
Kyle Machulis
2e307bc5eb Bug 1480645 - Remove nsIWebBrowserFocus; r=nika
Summary:
Only implemented by nsWebBrowser, only 2 methods used in TabChild.
Move methods to nsWebBrowser implementation and remove unused methods,
change names to something more obvious, and remove interface.

MozReview-Commit-ID: 4WwBrVWQEVy

Test Plan: Try run

Reviewers: nika

Tags: #secure-revision

Bug #: 1480645

Differential Revision: https://phabricator.services.mozilla.com/D2752
2018-08-07 15:12:56 -07:00
Kyle Machulis
b92aaa5fa5 Bug 1480643 - Remove nsIWebBrowserSetup; r=nika
Summary:
We only use one branch of the property set method in
nsIWebBrowserSetup, in one place. Expose this setting in the C++ API
and remove the XPCOM interface.

This patch also exposes the nsWebBrowser.h header to the codebase,
meaning we can possibly start removing some uses of nsIWebBrowser
elsewhere.

MozReview-Commit-ID: G3gnRWJUx6M

Test Plan: Try run

Reviewers: nika

Tags: #secure-revision

Bug #: 1480643

Differential Revision: https://phabricator.services.mozilla.com/D2736
2018-08-07 15:12:56 -07:00
Kyle Machulis
ee7197155b Bug 1480637 - Remove nsIClipboardCommands; r=nika
Summary:
Unused interface that can be removed.

MozReview-Commit-ID: GnHRXdtI4qe

Test Plan: Try run

Reviewers: nika

Tags: #secure-revision

Bug #: 1480637

Differential Revision: https://phabricator.services.mozilla.com/D2694
2018-08-07 15:12:55 -07:00
Kyle Machulis
d920d54421 Bug 1480628 - Remove nsIWebShellServices; r=nika
Summary:
nsIWebShellServices is only implemented by nsDocShell, and only used
in one place in C++. Move definitions to nsIDocShell, and rename
functions to show they are only used as part of Charset changes.

MozReview-Commit-ID: DOSeE3Doc51

Test Plan: Try run

Reviewers: nika

Tags: #secure-revision

Bug #: 1480628

Differential Revision: https://phabricator.services.mozilla.com/D2692
2018-08-07 15:12:55 -07:00
L. David Baron
5933830a47 Bug 1479859 patch 4 - Test becoming a containing block for contain:paint only for those frames that support it. r=dholbert
This fixes the regression of three web-platform-test reftests:
  testing/web-platform/tests/css/css-contain/contain-paint-002.html
  testing/web-platform/tests/css/css-contain/contain-paint-011.html
  testing/web-platform/tests/css/css-contain/contain-paint-012.html
that was caused by patch 1, but it's written on top of the code in
patches 2 and 3 so it's easier to fix afterwards.

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

--HG--
extra : rebase_source : 030c72d1f2945795afe8a81112cd6cb7035d9d6b
2018-08-07 15:02:08 -07:00
L. David Baron
aad8d26078 Bug 1479859 patch 3 - Add an nsIFrame::IsFrameOfType bit to say whether frames support contain:layout and contain:paint. r=dholbert
This is needed for patch 4.

This is based both on the wording in the spec and the discussion in
https://github.com/w3c/csswg-drafts/issues/2987, and also doesn't
support them for nsMathMLContainerFrame, which is similar to inlines and
ruby.

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

--HG--
extra : rebase_source : b7e23fb248fa34957ca2d539134e872f5a03f5a8
2018-08-07 15:02:07 -07:00
L. David Baron
552f835723 Bug 1479859 patch 2 - Send nsChangeHint_UpdateContainingBlock when containing block-ness changes due to one property change, while another property that might trigger containing block-ness doesn't do so because of the frame type. r=emilio
This fixes a rather subtle bug.  What the underlying code here is trying
to do is remove nsChangeHint_UpdateContainingBlock when some properties
that influence whether a frame is a containing block for absolutely
positioned or fixed positioned elements have changed, but the final
calculation of being a containing block has not changed.  However, the
old code was using a function that tested whether the style could
*possibly* lead to a frame being a containing block.  Some of the
properties (like the transform properties) that lead to being a
containing block, for example, don't apply to non-replaced inlines.
Some, however, do (such as 'filter').  So if there's a dynamic change
adding or removing a filter, on an inline that also has an *ignored*
transform property (like 'transform' or 'perspective') set, then the
code prior to this patch causes us to remove the UpdateContainingBlock
hint.

This patch fixes things by testing whether being a containing block
could have changed for *any* type of frame, by separately testing the
changes.

The added tests fail without the patch and pass with the patch, viewed
in isolation.  However, without the previous patch, test 003 passes.

Test 003 also fails in Chrome (but 001 and 002 pass).

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

--HG--
extra : rebase_source : 0a5dbb15a058cf4a43d989bf53f042c5b718e24d
2018-08-07 15:02:07 -07:00
L. David Baron
7642040d1b Bug 1479859 patch 1 - Make inline frames be abs-pos containing blocks for reasons other than being relatively positioned. r=emilio
The basic change here is making nsCSSFrameConstructor::ConstructInline
use the function nsIFrame::IsAbsPosContainingBlock rather than testing
for only one of the conditions in it (being relatively or absolutely
positioned).  The rest of the code changes follow from that change.

I tested locally that the added test fails without the patch and passes
with it (either with or without the next patch).

Note that this causes a regression of three web-platform-test reftests:
  testing/web-platform/tests/css/css-contain/contain-paint-002.html
  testing/web-platform/tests/css/css-contain/contain-paint-011.html
  testing/web-platform/tests/css/css-contain/contain-paint-012.html
which will be fixed in patch 4, since that fix is easier to write after
patch 2.

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

--HG--
extra : rebase_source : 0d374628207c234bcd7cf4e320188994fc2680b8
2018-08-07 15:02:07 -07:00
L. David Baron
fe449c667f Bug 1480454 - Part f: Run mach wpt-manifest-update to pick up change from part a. r=me
--HG--
extra : rebase_source : 614ff91cfe76497ff174b8616383dca01978fc9e
2018-08-07 15:00:06 -07:00
Kris Maglione
b9e9588050 Bug 1481021: Part 2 - Stop loading SpecialPowers into frame script scopes. r=bz,jmaher,aswan
Loading SpecialPowers into frame scripts has side-effects, detailed in part 1,
which are undesirable. The main side-effect that I'm trying to get rid of here
is the force-enabling of permissive COWs in frame script scopes, which is
blocking changes that I need to make elsewhere. But both that and the scope
pollution it causes are likely to allow code to work when running in
automation which fails in real world usage.

This patch changes our special powers frame scripts to load specialpowers.js
and specialpowersAPI.js as JSMs, which run in their own global, but define
most of the same properties on our frame script globals.

Most other callers still load those scripts via <script> tags or the subscript
loader, and should ideally migrated in a follow-up. But even so, this patch
still gives us a cleaner separation of the frame script and non-frame-script
loading code.

MozReview-Commit-ID: CR226gCDaGY

--HG--
extra : rebase_source : fa253abde2029ec09c724404106d83623f064875
2018-08-07 14:03:21 -07:00
Kris Maglione
c1969dbca2 Bug 1481021: Part 1 - Fix tests that rely on permissive COWs or SpecialPowers side-effects in frame script scopes. r=bz
Right now, a lot of test code relies on side-effects of SpecialPowers being
loaded into frame script globals. In particular:

- It forces permissive COWs from those scopes, which allows frame scripts to
  pass objects from those scopes to unprivileged content that they otherwise
  wouldn't.
- It imports a bunch of helper modules and WebIDL globals which would
  otherwise not be available.

Fortunately, this seems to only impact test code at this point. But there's a
real down-the-road risk of it impacting shipping code, which ends up working
in automation due to the side-effects of SpecialPowers, but failing in real
world use.

MozReview-Commit-ID: G27eSSOHymX

--HG--
extra : rebase_source : c528dffe3a54eec75ad6cb358980b783b00eb4a4
2018-08-07 14:13:06 -07:00
Brindusan Cristian
381e833a9d Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-08 00:58:40 +03:00
Brindusan Cristian
f8555a213f Merge inbound to mozilla-central. a=merge 2018-08-08 00:51:43 +03:00
Mike Hommey
01f69bda76 Bug 1481373 - Work around clang miscompilation of a non-virtual thunk to HttpChannelChild::AsyncCall on x86. r=valentin 2018-08-08 06:31:40 +09:00
Jeff Gilbert
c95b959d03 Bug 1481283 - Use SamplingState for both WebGLTexture and WebGLSampler state. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D2795

--HG--
extra : moz-landing-system : lando
2018-08-07 19:12:09 +00:00
Ed Lee
613dc273cb Bug 1481559 - Add search filter, search pref and bug fixes to Activity Stream r=ursula
MozReview-Commit-ID: ANMt3NGC8HY

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

--HG--
extra : moz-landing-system : lando
2018-08-07 18:55:31 +00:00
Masatoshi Kimura
2a18be87fb Bug 1481433 - ifdef-out the entire TestDLLEject.cpp. r=froydnj
--HG--
extra : rebase_source : 3fe4e30beae5ea7e2ee17b7e3b47c189a1c31b4e
2018-08-08 03:24:46 +09:00
Jason Laster
6e18346528 Bug 1481320 - Update Debugger Frontend v79. r=dwalsh
This reverts commit 76e05705338bb79a7cd9882f69804b580a0167e3.
2018-08-07 16:48:01 -04:00
Jean-Yves Avenard
b66c9b2ac1 Bug 1481166 - Enable SourceBuffer.changeType by default. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D2770
2018-08-07 22:46:14 +02:00
Jean-Yves Avenard
b6cff64392 Bug 1481397 - P2. Update test expectations. r=jgraham
Also, enable changeType MSE tests.

Depends on D2837

Differential Revision: https://phabricator.services.mozilla.com/D2870
2018-08-07 22:46:14 +02:00
Jean-Yves Avenard
5e17996c2a Bug 1481397 - P1. Properly recalculate highest start timestamp when samples are removed. r=bryce
Summary: When removing frames from the trackbuffer we may remove frames outside the original removal interval as we must remove all frames depending on the removed frames.

Differential Revision: https://phabricator.services.mozilla.com/D2837
2018-08-07 22:46:14 +02:00
Emilio Cobos Álvarez
f3e5678c1a Bug 1481514: Teach some places in ESM to walk the flattened tree. r=smaug
PresShell does this already.

I updated the scroll / drag code as well, but I need to admit I didn't figure
out how to write a test for it. The rest of the codepaths are needed for the
added test to pass.

Differential Revision: https://phabricator.services.mozilla.com/D2871
2018-08-07 22:43:23 +02:00
Emilio Cobos Álvarez
82a8b81f17 Bug 1481500: Teach EnterLeaveDispatcher about the flattened tree. r=smaug
We shouldn't fire mouseenter / leave based on the light tree, but the
flattened tree, the same way as the rest of the hover code works.

Differential Revision: https://phabricator.services.mozilla.com/D2866
2018-08-07 22:42:10 +02:00
Kartikaya Gupta
9d5983979c Bug 1480433 - Update for changes in WR PR 2947. r=jrmuizel
MozReview-Commit-ID: 2GqCI7QXnr7
2018-08-07 14:47:02 -04:00
Kartikaya Gupta
7879461f7f Bug 1480433 - Update for API changes in WR PR 2948. r=jrmuizel
MozReview-Commit-ID: Linx9qsVeAb
2018-08-07 14:46:56 -04:00
Kartikaya Gupta
a2333f3464 Bug 1480433 - Update Cargo lockfiles and re-vendor rust dependencies. r=jrmuizel
MozReview-Commit-ID: FUDEEkJZeK
2018-08-07 14:46:40 -04:00
Kartikaya Gupta
56cfeb9660 Bug 1480433 - Update webrender to commit c939a61b83bcc9dc10742977704793e9a85b3858. r=jrmuizel
MozReview-Commit-ID: 8msYpcE1tCx
2018-08-07 14:44:43 -04:00
Tom Tromey
1ca6fd6782 Bug 1478184 - fix handling of html comments in parseDeclarations; r=gl
parseDeclarations was ignoring html comment tokens, but in fact they
should not be treated any differently from other CSS tokens.

MozReview-Commit-ID: 27Mxt5zbSSJ

--HG--
extra : amend_source : 91e47bbf6951ac9dd4709ac10c49ff51c1781ce8
2018-08-07 13:03:34 -07:00
Olli Pettay
1617b3d39a Bug 1481501 - cleanup AttrArray, r=mrbkap
--HG--
extra : rebase_source : 51faf5ebfd6225eaaed90fb2f50c63184a9516a5
2018-08-07 22:11:11 +03:00
Olli Pettay
7315a671e1 Bug 1481399 - rename nsAttrAndChildArray to AttrArray, r=mrbkap
--HG--
rename : dom/base/nsAttrAndChildArray.cpp => dom/base/AttrArray.cpp
rename : dom/base/nsAttrAndChildArray.h => dom/base/AttrArray.h
extra : rebase_source : 488f4d9c87bf337686abfa98e79466343a9e6685
2018-08-07 22:07:26 +03:00