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

15894 Коммитов

Автор SHA1 Сообщение Дата
Ben Kelly 2c5666c6d8 Bug 1450266 P1 Remove nsGlobalWindowInner::CleanUp() method in favor of FreeInnerObjects(). r=smaug 2018-04-03 17:10:16 -07:00
Ciure Andrei 5ffac2bcd3 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-04-04 00:58:50 +03:00
Ciure Andrei 7208a2fee8 Merge inbound to mozilla-central. a=merge 2018-04-04 00:54:16 +03:00
Haik Aftandilian c6b21edd12 Bug 1437281 - OSX dragging image to desktop changes OSX File associations r=mystor
On Mac, when dragging an image, add the image request's MIME type to
the transfer so that the MIME-extension check can be done in the
parent process to avoid content sandboxing issues.

MozReview-Commit-ID: 3cb4fCr6GnL

--HG--
extra : rebase_source : 43720237b467765401b5504c57bbc1b43d4dfdc0
2018-03-27 14:55:33 -07:00
Dave Townsend e2dffad4ac Bug 1448500: Add speculative request content policy type. r=bz, r=kmag
Adds a new TYPE_SPECULATIVE to nsIContentPolicy uses it as the type for
speculative connection channels from the IO service. I believe I've added it to
all the content policies in tree to make sure it behaves the same as TYPE_OTHER
used to.

The webextension test shows that the webextension proxy API sees speculative
lookups requested through the IO service.

MozReview-Commit-ID: DQ4Kq0xdUOD

--HG--
extra : rebase_source : d9460fdac118bc68f0db79749a16f181b580f2e7
2018-03-23 15:27:08 -07:00
Brian Grinstead a5543400b1 Bug 1446247 - Pass namespace into IsCustomElementName to allow for non-dashed XUL elements;r=e7358d9c+590837,smaug
This will make it possible to migrate existing bindings without also needing to
mass-rewrite frontend code at the same time.

MozReview-Commit-ID: IBBqC4eeDDX

--HG--
extra : rebase_source : e901ac665208b3a683668c1bb33a26dcf479580c
2018-03-29 09:34:56 -07:00
arthur.iakab a54422ebb7 Merge mozilla-central to autoland 2018-04-03 12:39:24 +03:00
Boris Zbarsky 9bb77bdfc7 Bug 1450418. Get rid of nsIDOMScreen. r=qdot
MozReview-Commit-ID: A5Rq0BSQt4V
2018-04-03 00:42:41 -04:00
Johann Hofmann 6d11b10c57 Bug 1450315 - Remove document.allowUnsafeHTML. r=bz
This attribute was added in bug 1432966 when we started sanitizing
chrome usage of innerHTML to allow devtools to use custom attributes
in React via dangerouslySetInnerHTML.

Devtools removed its usage of dangerouslySetInnerHTML in bug 1434155, so
document.allowUnsafeHTML is no longer used and can be removed.

MozReview-Commit-ID: 8xTVZDmPqRa

--HG--
extra : rebase_source : 3d427133ccb8975163b4459af57b5d96ef54c93e
2018-03-31 10:27:19 +02:00
Boris Zbarsky fcba7ea91b Bug 1447483 and bug 1448850 followup to fix unification-hidden and now-revealed build bustage causing a CLOSED TREE. r=bkelly 2018-04-03 15:38:20 -04:00
Peter Van der Beken 5e6f3328ec Bug 1448850 - Remove nsIMessageListener and nsIMessageListenerManager. r=bz.
--HG--
extra : rebase_source : 2938f6e1cb9078a6d45a8d58db0f6bf70e461b9c
2018-02-16 15:28:31 +01:00
Peter Van der Beken 001dd2aa3b Bug 1448850 - Empty nsIMessageSender. r=bz.
--HG--
extra : rebase_source : 267648b64b9fcfc4217cf59aad524a27fecd5b82
2018-02-16 10:34:21 +01:00
Peter Van der Beken 01a1cdcd31 Bug 1448850 - Remove nsIMessageBroadcaster. r=bz.
--HG--
extra : rebase_source : c9ef8d762347b3c71dd5cfeffafbfbb81eb6e042
2018-02-14 17:35:39 +01:00
Peter Van der Beken 355e71640d Bug 1448850 - Remove nsISyncMessageSender. r=bz.
--HG--
extra : rebase_source : a240b840b0514671565bb4980cf7642ff06749ef
2018-02-10 11:20:51 +01:00
Peter Van der Beken 634aaa5c2e Bug 1448850 - Remove nsIMessageManagerGlobal. r=bz.
--HG--
extra : rebase_source : a1efbc58c4b379b77b9a4e06625597c403053bd1
2018-03-26 16:10:45 +02:00
Peter Van der Beken ae3b234726 Bug 1448850 - Empty nsIContentFrameMessageManager and remove nsIInProcessContentFrameMessageManager::CacheFrameLoader. r=bz.
--HG--
extra : rebase_source : 1d6d9c6b12fdcccdd8e71be0310c5bd7bef07524
2018-02-10 00:25:45 +01:00
Peter Van der Beken 94ce46b0ba Bug 1448850 - Remove nsIFrameScriptLoader. r=bz.
--HG--
extra : rebase_source : 51925aa9b2c3cb53f9dff83c0f7f683507fd2683
2018-02-09 23:31:39 +01:00
Peter Van der Beken 02d487b70c Bug 1448850 - Remove nsIProcessScriptLoader. r=bz.
--HG--
extra : rebase_source : 7fe189ba9eafe423ebb710771d3c2be94225e745
2018-02-09 22:26:26 +01:00
Peter Van der Beken 7d074b504a Bug 1448850 - Remove nsIGlobalProcessScriptLoader. r=bz.
--HG--
extra : rebase_source : 8dd0b46ed2f5c6b726275142151f4c165b43fe71
2018-02-09 15:59:02 +01:00
Peter Van der Beken 156753e507 Bug 1448850 - Remove nsIContentProcessMessageManager. r=bz.
--HG--
extra : rebase_source : 94ed787dd1bd8b2352f45ccfb1e2f255be07c185
2018-02-09 16:02:37 +01:00
Brian Grinstead 81b95b0b38 Bug 1451340 - Don't attempt to RegisterUnresolvedElement for native anonymous content;r=smaug
The webconsole UI generates a large number of scrollbars, and considering their children as
potential Custom Elements causes a slowdown when setting innerHTML="" when devtools closes.

MozReview-Commit-ID: 2QCcXCnTHA2

--HG--
extra : rebase_source : 5226e5689195a047ebcb9903b4565df13b6b1aa0
2018-04-05 12:01:18 -07:00
Mike Conley 99ad6c3027 Bug 1450171 - Make promiseDocumentFlushed assertions make more sense. r=bz
--HG--
extra : rebase_source : bab585373542b75be0c81c2d4d16d9013d497e38
2018-04-03 10:27:18 -04:00
Emilio Cobos Álvarez 109ffb9beb Bug 1420680: Remove the mechanism to buffer CSP violations. r=bz
With the previous patch it's unused.

MozReview-Commit-ID: 4EKufeNu0Jz
2018-04-03 16:22:51 +02:00
Emilio Cobos Álvarez a4433a4de8 Bug 1420680: Rework how the loadability of font-faces is computed. r=jfkthame,bz
This reworks bug 1440561 so that we only precompute loads that belong to our
user font set, avoiding messing up with fonts in the cache that belong to other
pages.

The loadability of a font is precomputed in PreTraverse in the same way as we
did, but only for the fonts that we may end up loading. This is stored in
FontFaceSet now.

Also, the principal shenanigans that this code did are reworked to be explicit
about when the document principal changes in ResetToURI, instead of having a
member around and a mutable variable. This makes the code easier to follow.

MozReview-Commit-ID: 9ofTbaLDUF7
2018-04-03 16:22:43 +02:00
Nicholas Nethercote 1f8589ab7c Bug 1449827 - Optimize static atom use in nsTreeSanitizer. r=hsivonen
The various AtomsTables in nsTreeSanitizer only contain static atoms. Knowing
this, we can optimize things:

- They can contain raw nsStaticAtom pointers instead of refcounted nsAtom
  pointers.

- When looking up, we can/must first check if the atom we are looking for is
  static. If not, we know it can't be in the table. This is done by the new
  Contains() method.

This change also lets us add more `const` to various places that interact with
the tables.

MozReview-Commit-ID: EFxWN2GU78L

--HG--
extra : rebase_source : f2a0bdbb4c5179dd396476263e6a6b57adb13360
2018-03-29 15:51:39 +11:00
Nicholas Nethercote 6d1da3fee2 Bug 1449827 - Introduce a typedef `AtomsTable` within nsTreeSanitizer. r=hsivonen
This is much shorter than nsTHashtable<nsRefPtrHashKey<nsAtom>>, which is
repeated often.

MozReview-Commit-ID: 85MR0PQ6klI

--HG--
extra : rebase_source : b9d157b2deb68f4d9aee94bdcff6737caf4336ba
2018-03-29 15:51:39 +11:00
Nicholas Nethercote 1b4b4f5a56 Bug 1449827 - Use `nsStaticAtom* const` instead of `nsStaticAtom** const` in nsTreeSanitizer. r=hsivonen
MozReview-Commit-ID: 4tk4BHbEpdt

--HG--
extra : rebase_source : fa8a152364fb343880f912afed2fa34aaa27aa89
2018-03-29 15:51:39 +11:00
Narcis Beleuzu 981e7f5421 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-31 01:28:52 +03:00
Ben Kelly 48efa4db3f Bug 1447871 P3 Make nsIGlobalObject::ForEachEventTargetObject() protect against side effects that might delete other DETH objects. r=asuth 2018-03-30 11:25:48 -07:00
Ben Kelly 5937e67051 Bug 1447871 P1 Call DisconnectFromOwner() on service worker binding objects in FreeInnerObjects(). r=asuth 2018-03-30 11:25:47 -07:00
Ciure Andrei 5d841a3421 Merge inbound to mozilla-central. a=merge 2018-03-30 01:06:18 +03:00
Emilio Cobos Álvarez 55b77aee5c Bug 1449502: Cleanup a bit more the selector cache and CSSOM methods. r=xidorn
MozReview-Commit-ID: 32FgbGFUdCM
2018-03-29 17:12:55 +02:00
Neil Deakin 6a995d0462 Bug 1448018, remove ContainerBoxObject which is only used to access the docshell, but bug 1448018 made the docshell accessible from the frameloader instead so the container box object is no longer being used. Change some editor tests which just access the docShell directly rather than through the box object, r=bz 2018-03-29 10:44:52 -04:00
Emilio Cobos Álvarez e81a508a48 Bug 1435632: Fix the logic to do layout stuff after reassigning a slot. r=smaug,xidorn
The dirty bit fiddling is nontrivial, but it's pretty much what we do for
invalidation and allows to keep this incrementally easily.

The only caller that we cared about for the GetFlattenedTreeParent check in
DestroyFramesForAndRestyle was the old ShadowRoot invalidation functions that
went away.

MozReview-Commit-ID: GmgPPJ6d2qX
2018-03-29 12:34:38 +02:00
Christoph Kerschbaumer 4197b7d96d Bug 1439713 - Update tests relying on nsIContentPolicy. r=bz 2018-03-29 11:14:58 +02:00
Christoph Kerschbaumer a929955d1f Bug 1439713 - Change nsIContentPolicy shouldLoad to take an <uri, loadInfo> pair instead of the various args. r=bz 2018-03-29 12:16:23 +02:00
Boris Zbarsky c43dfe1ad8 Bug 1449404 part 5. Move the cycle collected refcount on content nodes up to nsIContent. r=smaug 2018-03-28 18:07:40 -04:00
Boris Zbarsky 0aa422913e Bug 1449404 part 4. Get rid of a few virtual nsIContent methods. r=mccr8
The HasTextForTranslation implementation was just moved, with the nodetype
check up front dropped because that's enforced statically now.
2018-03-28 18:01:47 -04:00
Boris Zbarsky 4370006c40 Bug 1449404 part 3. Get rid of nsIContent::AppendTextTo. r=mccr8 2018-03-28 18:01:47 -04:00
Boris Zbarsky cd4761ffdb Bug 1449404 part 2. Get rid of nsIContent::AppendText. r=mccr8 2018-03-28 18:01:46 -04:00
Boris Zbarsky 693169e324 Bug 1449404 part 1. Get rid of nsIContent::SetText. r=mccr8 2018-03-28 18:01:46 -04:00
Boris Zbarsky 70b26cdb6c Bug 1449393. Devirtualize some nsINode bits. r=mccr8 2018-03-28 18:01:46 -04:00
Boris Zbarsky 75860ea92d Bug 1445005. Remove the eventMode bits from frameloader. r=qdot 2018-03-28 18:01:46 -04:00
Boris Zbarsky 9bdcd1eca8 Bug 1444872. Remove support for the 'type' parameter to document.open. r=qdot 2018-03-28 18:01:46 -04:00
Gurzau Raul 8d268c6ce7 Merge mozilla-central to inbound. a=merge CLOSED TREE
--HG--
rename : toolkit/components/extensions/ext-permissions.js => toolkit/components/extensions/parent/ext-permissions.js
2018-03-29 01:00:42 +03:00
Gurzau Raul d117255a14 Merge inbound to mozilla-central. a=merge 2018-03-29 00:55:16 +03:00
Olli Pettay be34eacad1 Bug 1441277 - nsINode needs better documentation on GetComposedDoc vs GetUncomposedDoc, r=annevk 2018-03-28 19:51:14 +03:00
Cosmin Sabou 619e0c5b90 Backed out 3 changesets (bug 1449321, bug 1449566, bug 1449565) as per developer request.
Backed out changeset c31de7e26809 (bug 1449565)
Backed out changeset 72f9188800af (bug 1449566)
Backed out changeset 763277b299e4 (bug 1449321)

--HG--
extra : rebase_source : 212b357a3079dff30845a5f82e47b94e2d7f93cd
2018-03-28 18:10:11 +03:00
Jonathan Watt 41622cb3a7 Bug 1449321 - Remove the IsServo and IsGecko methods from the style system code. r=emilio 2018-03-23 16:01:34 +00:00
Tom Ritter 449237fc51 Bug 1378552 - Reduce the liklihood of inadvertently misusing NullPrincipal::Create(). r=ckerschb
NullPrincipal::Create() (will null OA) may cause an OriginAttributes bypass.
We change Create() so OriginAttributes is no longer optional, and rename
Create() with no arguments to make it more explicit about what the caller is doing.

MozReview-Commit-ID: 7DQGlgh1tgJ
2018-03-22 13:36:20 -05:00
Xidorn Quan efc0cdde02 Bug 1447828 part 8 - Remove remaining uses of StyleBackendType as well as the type itself. r=emilio
MozReview-Commit-ID: 6sh4eKvDpRF

--HG--
extra : rebase_source : 7d83f2b2d4e2739333016ed82754bf3a4a700de4
extra : source : 147ca562a24652c3f30add793213db70aff65e9e
2018-03-29 02:34:34 +11:00
Xidorn Quan 5c55e4b983 Bug 1447828 part 7 - Remove StyleBackendType uses from PreloadedStyleSheet. r=emilio
MozReview-Commit-ID: L37tnRAAJbQ

--HG--
extra : rebase_source : 1d073c4fadcc8372b5afe55f648bcb1c276f4de2
extra : source : 09e1b57c52fbfe3145b47d80ac098c487970d8b4
2018-03-29 02:34:34 +11:00
Xidorn Quan d3b8ac27c8 Bug 1447828 part 5 - Remove StyleBackendType uses from nsStyleSheetService. r=emilio
MozReview-Commit-ID: 2yQqwVPnvdE

--HG--
extra : rebase_source : 90f58d5726cb85e9bbcf56bc2eaf29c85940ddbe
extra : source : 8ffba0152d4bd16f87d2ddefefacb7081a46443b
2018-03-29 02:34:34 +11:00
Xidorn Quan 3b8cc6c6ef Bug 1447828 part 4 - Remove StyleBackendType uses from Loader. r=emilio
MozReview-Commit-ID: 8DbjibZE3Dw

--HG--
extra : rebase_source : aa664ee40199b5358e304e076c8d6853e496d7a8
extra : source : 06be08613cf88b6963033929ff5ac0d82a6327b1
2018-03-29 02:33:01 +11:00
Xidorn Quan 1cf8082e67 Bug 1447828 part 3 - Remove StyleBackendType uses from MediaList. r=emilio
MozReview-Commit-ID: 9sG73iLeBw4

--HG--
extra : rebase_source : a2626f6d1f8af02caeb7f3d37b7d258b4544b62d
extra : source : 2f443463446897080b85ac0da5b7a9ea6ccc9de2
2018-03-29 02:31:46 +11:00
Jonathan Watt 68e78b291f Bug 1449321 - Remove the IsServo and IsGecko methods from the style system code. r=emilio
--HG--
extra : source : 763277b299e42d8ee7eafede027ee690b66a7a2a
2018-03-23 16:01:34 +00:00
Narcis Beleuzu 00fbf95c3b Backed out changeset baf5f1356969 (bug 1446522) for clipboard failures on /test_bug1012662_noeditor.html. CLOSED TREE 2018-03-28 14:25:57 +03:00
Gijs Kruitbosch a140dc6382 Bug 1446522 - don't return NS_ERROR_FAILURE for cut/copy/paste even when there's no selection, r=enndeakin+6102
MozReview-Commit-ID: AhToM4sAjJn

--HG--
extra : rebase_source : 83b5b97fc8ca0aa264c313953d3cd82014675f7b
2018-03-26 20:18:05 +01:00
Cosmin Sabou 6e054fe297 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-03-28 12:52:57 +03:00
Cosmin Sabou b25da47eb2 Merge inbound to mozilla-central. a=merge 2018-03-28 12:49:56 +03:00
Xidorn Quan e1ecaae43e Bug 1449390 - Remove Rule::GetType() and its corresponding constants. r=emilio
MozReview-Commit-ID: 5r64ATHUAux

--HG--
extra : rebase_source : 9a593b6ed1a1006bfac031c3b47b06a7e28605b4
2018-03-28 14:22:01 +11:00
Emilio Cobos Álvarez 32f0cfbe75 No bug - remove duplicated condition likely due to merge mess. r=me
MozReview-Commit-ID: AO7nmkUIs82
2018-03-28 03:17:59 +02:00
Masayuki Nakano ec04470e25 Bug 1448876 - Get rid of nsIClipboardDragDropHooks and nsIClipboardDragDropHookList interfaces r=bz
nsIClipboardDragDropHooks and nsIClipboardDragDropHookList allow XUL apps
to customize drag and drop operation and paste operation.  However, this
feature was used only by ChatZilla and it doesn't work on Gecko anymore.
So, we can get rid of them from our tree.

MozReview-Commit-ID: Ibs3V1gI8Ry

--HG--
extra : rebase_source : 83428293d59aaca432d76c71b214aa7799f7f9de
2018-03-26 23:56:53 +09:00
Xidorn Quan 2d757b0424 Bug 1449089 part 3 - Remove pref layout.css.scope-pseudo.enabled. r=emilio
It was never effective in Stylo anyway.

MozReview-Commit-ID: EF7NnS6uxOO

--HG--
extra : rebase_source : 8d924fad9958cf12c746156241c51c3a6488020f
2018-03-28 09:41:04 +11:00
Xidorn Quan 5e4279ed26 Bug 1449089 part 1 - Make :-moz-native-anonymous and :-moz-use-shadow-tree-root matches in Rust code. r=emilio
:-moz-native-anonymous can just use is_in_native_anonymous_subtree()
which is an existing function duplicating IsInNativeAnonymousSubtree().

IsRootOfUseElementShadowTree() in C++ code only has a single reference
from nsCSSPseudoClasses::MatchesElement() so we can just move it to the
Rust side. And actually Rust code has existing duplicate logic for
blocks_ancestor_combinators().

MozReview-Commit-ID: 8M1hHrYJT6Y

--HG--
extra : rebase_source : bf53ac7d8b15b0d1f7447a6056986d89b1cb4e57
2018-03-28 09:41:04 +11:00
Margareta Eliza Balazs adebb06ac1 Merge inbound to mozilla-central. a=merge 2018-03-28 00:48:11 +03:00
Xidorn Quan afea770358 Bug 1448728 part 3 - Remove mention of servo in memory report as it's the only style system now. r=njn
MozReview-Commit-ID: CJl0LboV1Gj

--HG--
extra : source : e468e93bc9cf4171197f79fa7db6b5ac6bfc07ea
2018-03-28 10:44:49 +11:00
Xidorn Quan 160053e9ab Bug 1448728 part 2 - Remove style sizes for the old style system from nsWindowSizes.h. r=njn
MozReview-Commit-ID: 5FqJWoCjlto

--HG--
extra : source : 261d5942b8ee9fb178726bef0691d6ec70e72b6c
2018-03-28 10:44:49 +11:00
Xidorn Quan 1962625a79 Bug 1448728 part 1 - Make popular headers not include nsWindowSizes.h. r=njn
MozReview-Commit-ID: EC5J9Im3gfu

--HG--
extra : source : 9fa9209aeeb00009143c5c21f21210c93184e61f
2018-03-28 10:44:49 +11:00
Margareta Eliza Balazs ecdbb83fa1 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-28 01:00:31 +03:00
Boris Zbarsky 4373a04574 Bug 1446246 part 2. Combine HTMLConstructor and CreateXULOrHTMLElement into a single function. r=peterv
This fixes an observable bug we had due to doing the steps in a different order
from the spec: the 'prototype' get can have side-effects so needs to happen
after some of the other sanity checks.

MozReview-Commit-ID: 83zNhqfqFRu
2018-03-27 15:49:02 -04:00
Olli Pettay 27dc0e2db0 Bug 1441404, return early when appending null string to a text fragment, r=baku
--HG--
extra : rebase_source : 597d6424e3cfc1abdc667aebb311fee4425c8fde
2018-03-27 19:24:53 +03:00
Andreea Pavel cc6473cbb9 Merge mozilla-central to autoland. a=merge 2018-03-27 13:43:44 +03:00
Bogdan Tara 39d9b048b9 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-27 12:16:26 +03:00
Bogdan Tara 43ccd8d773 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-27 12:15:05 +03:00
Bogdan Tara 302a55b534 Merge inbound to mozilla-central. a=merge 2018-03-27 12:12:57 +03:00
Boris Zbarsky df07d2d834 Bug 1447890 part 5. Remove nsISelection::RemoveAllRanges. r=mystor
MozReview-Commit-ID: EeMje9KW6An
2018-03-27 00:35:23 -04:00
Boris Zbarsky 24781001eb Bug 1447890 part 4. Remove nsISelection::GetRangeCount. r=mystor
MozReview-Commit-ID: FypNZE0oQiW
2018-03-27 00:35:22 -04:00
Boris Zbarsky eefd412514 Bug 1447890 part 3. Remove nsISelection::GetRangeAt. r=mystor
MozReview-Commit-ID: GhtZwsciRL4
2018-03-27 00:35:22 -04:00
Boris Zbarsky 74e28b0d19 Bug 1447890 part 2. Remove nsISelection::RemoveRange. r=mystor
MozReview-Commit-ID: JXq5FYNNXPJ
2018-03-27 00:35:22 -04:00
Boris Zbarsky 54d1f87ff4 Bug 1447890 part 1. Remove nsISelection::AddRange. r=mystor
MozReview-Commit-ID: 1JNLZp7tbII
2018-03-27 00:35:22 -04:00
Boris Zbarsky f803b0085b Bug 1447889 part 13. Remove unused nsIDOMRange bits. r=mystor
MozReview-Commit-ID: CjtfHTtcviJ
2018-03-27 00:35:22 -04:00
Boris Zbarsky 2367e5d3ff Bug 1447889 part 12. Remove nsIDOMRange::ToString. r=mystor
MozReview-Commit-ID: 8TDYC3f4ENn
2018-03-27 00:35:22 -04:00
Boris Zbarsky cffc291dfc Bug 1447889 part 11. Remove nsIDOMRange::CloneRange. r=mystor
The GetSelection changes are so we have a Selection that we can get an nsRange
from via GetRangeAt, so we can call nsRange::CloneRange.

MozReview-Commit-ID: 6rqdJ29Yyuc
2018-03-27 00:35:21 -04:00
Boris Zbarsky 86c4629290 Bug 1447889 part 10. Remove nsIDOMRange::DeleteContents. r=mystor
MozReview-Commit-ID: IoXz0pS6zAa
2018-03-27 00:35:21 -04:00
Boris Zbarsky 1731f12f9d Bug 1447889 part 9. Remove nsIDOMRange::CompareBoundaryPoints. r=mystor
MozReview-Commit-ID: 29swD9AoqoF
2018-03-27 00:35:21 -04:00
Boris Zbarsky 3906df8d57 Bug 1447889 part 8. Remove nsIDOMRange::SelectNode/SelectNodeContents. r=mystor
MozReview-Commit-ID: 2hbF6pT31Xd
2018-03-27 00:35:21 -04:00
Boris Zbarsky 6a7475413e Bug 1447889 part 7. Remove nsIDOMRange::Collapse. r=mystor
MozReview-Commit-ID: LLiXK8IpUdY
2018-03-27 00:35:21 -04:00
Boris Zbarsky b94366962a Bug 1447889 part 6. Remove nsIDOMRange::SetStart/End. r=mystor
MozReview-Commit-ID: 8yOZMWBexsN
2018-03-27 00:35:21 -04:00
Boris Zbarsky d03d46b01e Bug 1447889 part 5. Remove nsIDOMRange::GetCommonAncestorContainer. r=mystor
MozReview-Commit-ID: 18bnPYjRld5
2018-03-27 00:35:21 -04:00
Boris Zbarsky 696d273ef4 Bug 1447889 part 4. Remove nsIDOMRange::GetStart/EndContainer/Offset. r=mystor
I got a bit carried away with fixing up consumers to use nsINode...  But as a
result removing these methods all together made sense.

MozReview-Commit-ID: 2z9Q6D7GY92
2018-03-27 00:35:21 -04:00
Boris Zbarsky 2ad0b16a31 Bug 1447889 part 3. Use Selection and nsRange more in nsDocumentEncoder. r=mystor
MozReview-Commit-ID: 2PYuoa1PFKL
2018-03-27 00:35:20 -04:00
Boris Zbarsky 5abddeaf58 Bug 1447889 part 2. Remove the XPCOM goop for creating Selection. r=mystor
It's unused; we never create these things by contract or classid.

MozReview-Commit-ID: 3Jsyb6QHlJt
2018-03-27 00:35:20 -04:00
Boris Zbarsky 0245595d7e Bug 1447889 part 1. Change nsCopySupport to work with Selection a bit more. r=mystor
MozReview-Commit-ID: B8HePBcalWU
2018-03-27 00:35:20 -04:00
Boris Zbarsky 17509bc9da Bug 1449019. Actually propagate out exceptions from the innerHTML getter. r=smaug
I moved the IgnoreErrors decl so it would come after the OOMReporter decl and I
could add the new conversion operator.

MozReview-Commit-ID: B1S6DXmZfvE
2018-03-26 16:41:43 -04:00
Henri Sivonen 1837451778 Bug 1448585 - Use NS_LITERAL_STRING for DEFAULT_HOME_PAGE. r=mystor.
MozReview-Commit-ID: tOooRnYDQG

--HG--
extra : rebase_source : 099f49ff4f1c2c2070d7dda44019d3d4e9d94b3f
2018-03-24 21:12:47 +02:00
Henri Sivonen a671e141fa Bug 1448581 - Use AppendPrintf() in CharacterData::ToCString(). r=mystor.
MozReview-Commit-ID: IXaKH8T6gQ

--HG--
extra : rebase_source : 57c7a30c6d56d350f84ef25bb33cd06bbb080600
2018-03-24 21:00:38 +02:00
Xidorn Quan 32f4a411bc Bug 1449039 part 12 - Keep only necessary params for CSS_PROP definitions. r=emilio
MozReview-Commit-ID: 6LG9WjXemno

--HG--
extra : rebase_source : 47c0512e0c87f7875419740f45d1c9ea83c8286f
2018-03-27 09:54:20 +11:00
Jonathan Watt 82ebebe276 Bug 1448714 - Fix up comments referring to 'style context' after the rename of nsStyleContext. r=emilio 2018-03-23 13:49:21 +00:00
Coroiu Cristina f7507f7dd5 Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-03-27 01:33:50 +03:00
Coroiu Cristina d6a8625ca7 Merge autoland to mozilla-central a=merge 2018-03-27 00:37:50 +03:00
Coroiu Cristina ed9d3656c8 Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-03-26 23:58:59 +03:00
Coroiu Cristina 8915d0accf Backed out changeset 608119812c07 (bug 1437281) on request from haik a=backout 2018-03-26 23:53:06 +03:00
Boris Zbarsky 98a683f9e1 Backed out changeset 1023e033bfa6 (bug 1132934) because it hasn't been reviewed yet.
MozReview-Commit-ID: LXefIp2OG6Q
2018-03-26 16:47:31 -04:00
Boris Zbarsky 0ce4de30db Bug 1132934 part 1. Actually propagate out exceptions from the innerHTML getter. r=smaug
MozReview-Commit-ID: KEqsx836qQn
2018-03-26 16:41:43 -04:00
Henri Sivonen 5be2b559ca Bug 1448584 - Remove nsContentUtils::CopyNewlineNormalizedUnicodeTo() as dead code. r=mccr8.
MozReview-Commit-ID: HqHtANlHk41

--HG--
extra : rebase_source : 7751fd6deb74e5cf8b802587e3295c220d5d39a0
2018-03-24 21:06:33 +02:00
Emilio Cobos Álvarez 152f1f8377 Bug 1448526: followup: Fix remaining macro declaration on a CLOSED TREE. r=me
MozReview-Commit-ID: X2Sx55WbWt
2018-03-26 11:50:38 +02:00
Xidorn Quan 051a0fc278 Bug 1448526 part 2 - Make nsStyleStructList.h not generated. r=emilio
nsStyleStructList.h was initially made generated in bug 873368 to avoid
manually maintaining boilerplate for if-dispatch, while the if-dispatch
was replaced by jump table in bug 1171842, so the boilerplate went away.

However, in bug 1122781 (before bug 1171842), boilerplate for dependency
check, so it still needs to be generated.

The dependency table is removed in the previous patch, so we no longer
have any boilerplate in the style struct list, and thus it doesn't need
to be generated anymore.

MozReview-Commit-ID: GkbJZ98ojbE

--HG--
extra : rebase_source : a148b97c051bb6c88846cf6ba617c4edef70ca24
extra : source : f1c7d19cde195fb90ac2627d16ed69d020de01b9
2018-03-26 20:09:17 +11:00
Emilio Cobos Álvarez 0bad8b1acc Bug 1448688: followup: Remove unused StyleDataType. r=me
MozReview-Commit-ID: DnjOxoEbSoP
2018-03-26 09:49:27 +02:00
Emilio Cobos Álvarez 8fcda0e92d Bug 1448690: Remove IsStyledByServo. r=xidorn
MozReview-Commit-ID: I3MDbo2Yu7d
2018-03-26 09:39:26 +02:00
Emilio Cobos Álvarez 2265ef0801 Bug 1448688: Remove RestyleTracker, ComputedStyle::AsServo, old style system element bits. r=xidorn
MozReview-Commit-ID: ALiOngGqozN
2018-03-26 09:38:07 +02:00
Henri Sivonen ebe845c3c9 Bug 1448586 - Avoid useless use of NS_LITERAL_CSTRING when prefixing query string with question mark. r=smaug.
MozReview-Commit-ID: Cy8zkNWjsXM

--HG--
extra : rebase_source : 7d8669b096a0f7ca7a3788f82ba66c9cacdb93b8
2018-03-24 21:16:51 +02:00
Coroiu Cristina c42eefb39e Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-03-26 23:57:54 +03:00
Brindusan Cristian 46ea40feeb Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-26 00:56:41 +03:00
Jonathan Watt 384c345f21 Bug 1448294 - Clean up naming of 'styleContext' variables after the big nsStyleContext rename. r=emilio
Reviewers: emilio

Bug #: 1448294

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

MozReview-Commit-ID: KJq2i9nrg7y
2018-03-25 20:49:58 +02:00
Jonathan Watt a61676cc19 Bug 1448337 - Remove RuleNodeCacheConditions.h. r=emilio 2018-03-25 20:43:47 +02:00
Narcis Beleuzu 47581f78e2 Backed out 2 changesets (bug 1448294, bug 1448337) for wpt and reftest failures on /mathml
Backed out changeset 180051cfe357 (bug 1448294)
Backed out changeset c188176f3289 (bug 1448337)
2018-03-25 21:31:08 +03:00
Jonathan Watt 21bff4e120 Summary: Bug 1448294 - Clean up naming of 'styleContext' variables after the big nsStyleContext rename. r=emilio
Reviewers: emilio

Bug #: 1448294

Differential Revision: https://phabricator.services.mozilla.com/D796
2018-03-22 13:49:21 +00:00
Jonathan Watt 35387a6577 Bug 1448337 - Remove RuleNodeCacheConditions.h. r=emilio 2018-03-22 08:44:07 +00:00
Hiroyuki Ikezoe efaf572d90 Bug 1447870 - Don't flush throttled animations in nsIDOMWindowUtils.updateLayerTree. r=mattwoodrow
updateLayerTree() is called from the callback of MozAfterPaint in
reftest-content.js all the time except when we specify reftest-no-sync-layers
or reftest-no-flush.  If there is a throttled animation,
FlushPendingNotifications flushes the animation, thus it will fire another
MozAfterPaint event.  It means we will end up waiting for the throttled
animation to finish.  This reiteration MozAfterPaint events can be easily
observed in WebRender since WebRender fires MozAfterPaint event without
checking invalidation change.  Whereas current Gecko fires MozAfterPaint only
if invalidation change happens and reftests for such throttled animations
specify the same value for 'from' and 'to' value, so it hasn't been a problem
there.

The FlushPendingNotifications in updateLayerTree() was introduced in bug
1083635 <https://hg.mozilla.org/mozilla-central/rev/5bebfbefb3c2> to
sync-decode images so it shouldn't matter if there are still throttled
animations.

MozReview-Commit-ID: B9KgNCX0kWq

--HG--
extra : rebase_source : 7e40a94b7ead05c708f21fb4bc897d50becd74dc
2018-03-22 14:08:29 +09:00
Ciure Andrei 707795264d Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-25 00:41:31 +02:00
Jean-Yves Avenard 87fa7068d5 Bug 1432779 - P4. Remove the concept of preferred layout. r=padenot,r=kamidphish
Channel layout is derived by the content being played. The concept of preferred layout is meaningless. Either we have a layout defined, or we don't. There's no in-between.

So we remove it.

MozReview-Commit-ID: CSCAInNmzMS
2018-03-24 10:57:59 +01:00
Boris Zbarsky de9297b4bf Bug 1448048. Restrict the window.Components shim to non-nightly-only to see whether sites actually use it. r=mccr8
MozReview-Commit-ID: 6W1nEyKGlER
2018-03-23 12:53:48 -04:00
Haik Aftandilian ce6d9e36aa Bug 1437281 - OSX dragging image to desktop changes OSX File associations r=mystor
When dragging an image, add the image request's MIME type to the transfer
so that the MIME-extension check can be done in the parent process.

Move the MIME-extension check to the parent process to avoid
issues caused by content process sandboxing.

MozReview-Commit-ID: 3cb4fCr6GnL

--HG--
extra : rebase_source : ec49b8c83613be844fe4cd88a5024ac41a845199
2018-03-22 14:04:23 -07:00
Gurzau Raul f2571e02d0 Backed out changeset 94a8e9c4c345 (bug 1448048) for Robocop failures on Android on a CLOSED TREE 2018-03-23 23:29:02 +02:00
Boris Zbarsky 0327e321d5 Bug 1448048. Restrict the window.Components shim to non-nightly-only to see whether sites actually use it. r=mccr8
MozReview-Commit-ID: 6W1nEyKGlER
2018-03-23 12:53:48 -04:00
Margareta Eliza Balazs 190225b29c Backed out changeset 794ee6857d83 (bug 1421070) for 15 failures in toolkit/components/payments/test/mochitest/test_ObservedPropertiesMixin.html on a CLOSED TREE
--HG--
extra : amend_source : 0574ce1b5b6a6e8735245684eb8e9ec7b0ac2647
2018-03-23 03:42:25 +02:00
Noemi Erli 1270a21724 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-23 01:00:18 +02:00
Emilio Cobos Álvarez e341b20ec4 Bug 1447483: Merge nsStyleContext and ServoStyleContext, rename to ComputedStyle. r=jwatt on a CLOSED TREE
MozReview-Commit-ID: JPopq0LudD
2018-03-22 20:06:24 +01:00
Emilio Cobos Álvarez 5dd797f154 Back out changeset b683bb3f22a1 (Bug 1447483) for not landing with all the files. r=me on a CLOSED TREE
This reverts commit 1808914126bb9f9e4a82d2c3d7ac961885fe7d62.

MozReview-Commit-ID: 5skESBseEvo
2018-03-22 20:05:22 +01:00
Emilio Cobos Álvarez ca5ac79cca Bug 1447483: Merge nsStyleContext and ServoStyleContext, rename to ComputedStyle. r=jwatt
MozReview-Commit-ID: JPopq0LudD
2018-03-22 19:48:42 +01:00
Boris Zbarsky fc0fab9262 Bug 1062418 part 2. Clean up the bits that got moved from nsWindowSH. r=mystor
MozReview-Commit-ID: HGy6CHx4sCP
2018-03-21 23:18:51 -04:00
Boris Zbarsky 9efac1eb98 Bug 1062418 part 1. Move the remaining nsWindowSH bits into nsGlobalWindowInner. r=mystor
For now we preserve the current code structure and function signatures to make
review simpler.  That's about to get cleaned up.

MozReview-Commit-ID: 4epLHQiEwDV
2018-03-21 23:18:51 -04:00
Boris Zbarsky 631e1b2354 Bug 1442360 part 3. Remove nsScriptNamespaceManager, since now it's all dead code. r=peterv
MozReview-Commit-ID: DHRz2frjmT5
2018-03-21 23:18:51 -04:00
Boris Zbarsky cd263b1997 Bug 1442360 part 2. Remove support for the JavaScript-global-property category. r=peterv
MozReview-Commit-ID: 2iWivSDrDQB
2018-03-21 23:18:51 -04:00
Boris Zbarsky 30d7175859 Bug 1442360 part 1. Change InstallTrigger to not use the JavaScript-global-property category. r=kmag
test_bug609794.html was testing a behavior that the method before the current
method of attaching InstallTrigger to windows depended on.  We don't really
need that behavior, which is good, because this change is not producing it.

MozReview-Commit-ID: GPzif89UYYl
2018-03-21 23:18:51 -04:00
Boris Zbarsky df6c05a122 Bug 1442039 part 14. Remove nsDOMClassInfoID.h. r=peterv
MozReview-Commit-ID: 6pZs1XI1oSd
2018-03-21 23:13:30 -04:00
Boris Zbarsky a885ed36b0 Bug 1442039 part 13. Remove the now-pointless nsWindowSH::NameStructEnabled. r=peterv
MozReview-Commit-ID: 9lawfsdyyZq
2018-03-21 23:13:29 -04:00
Boris Zbarsky fec44334c8 Bug 1442039 part 12. Remove various unused static stuff from nsDOMClassInfo. r=peterv
MozReview-Commit-ID: Imt658SuM9w
2018-03-21 23:13:29 -04:00
Boris Zbarsky c6138aa191 Bug 1442039 part 11. Remove all the non-static bits from nsDOMClassInfo. r=peterv
MozReview-Commit-ID: 7J8hsPuYtPa
2018-03-21 23:13:29 -04:00
Boris Zbarsky 78d58e60ed Bug 1442039 part 10. Remove now-unused nsEventTargetSH. r=peterv
MozReview-Commit-ID: WocCkriliI
2018-03-21 23:13:29 -04:00
Boris Zbarsky f4173f97eb Bug 1442039 part 9. Remove now-unused NS_GetDOMClassInfoInstance. r=peterv
MozReview-Commit-ID: 5JpNuBq5RUg
2018-03-21 23:13:29 -04:00
Boris Zbarsky 9d7bf3da5c Bug 1442039 part 8. Remove now-unused eTypeClassConstructor type of nsGlobalNameStruct. r=peterv
GetXPCProto is now static and not called, so needs to go too.

MozReview-Commit-ID: I6DilDx2e2m
2018-03-21 23:13:29 -04:00
Boris Zbarsky ba414c683e Bug 1442039 part 7. Remove now-unused nsScriptNameSpaceManager::RegisterClassName. r=peterv
MozReview-Commit-ID: 9mpz8o29WGp
2018-03-21 23:13:29 -04:00
Boris Zbarsky a59087c90e Bug 1442039 part 6. Remove now-unused classinfo bits for DOMConstructor and DOMPrototype. r=peterv
Also removes various code that stops compiling this way and static functions
that are now unused.

MozReview-Commit-ID: KHYxly2c3Id
2018-03-21 23:13:29 -04:00
Boris Zbarsky 11f383d860 Bug 1442039 part 5. Remove the now-dead nsDOMConstructor class. r=peterv
The only caller of nsDOMConstructor::nsDOMConstructor is
nsDOMConstructor::Create which has no callers.

Also removes the now-unused nsDOMConstructorSH class.

MozReview-Commit-ID: GgOO8ugXFKb
2018-03-21 23:13:28 -04:00
Boris Zbarsky 8dba9ff598 Bug 1442039 part 4. Remove the dead code in nsDOMClassInfo::PostCreatePrototype. r=peterv
We only have classinfo left for DOMConstructor and DOMPrototype, both of which
use nsDOMConstructorSH, which overrides PostCreatePrototype.

To avoid -Werror build failures, this changeset also removes static functions
that were only reachable from PostCreatePrototype.

MozReview-Commit-ID: JpJOuMHAAuo
2018-03-21 23:13:28 -04:00
Boris Zbarsky 9ece08d572 Bug 1442039 part 3. Stop trying to resolve DOMConstructor on Xrays. r=peterv
We don't resolve it normally, because nsDOMConstructorSH overrides
PostCreatePrototype to be a no-op, so nsWindowSH::GlobalResolve never actually
defines the relevant property on the window.  We also hide it in
nsWindowSH::NameStructEnabled.  But in the Xray-to-window case we attempt to
define it.  We shouldn't do that.

MozReview-Commit-ID: 3tnMnSQuvuT
2018-03-21 23:13:28 -04:00
Boris Zbarsky 0165407079 Bug 1442039 part 2. Remove the now-unused eTypeClassProto type for nsGlobalNameStruct. r=peterv
MozReview-Commit-ID: H65oe2v7Gxt
2018-03-21 23:13:28 -04:00
Boris Zbarsky b4c95ed91e Bug 1442039 part 1. Remove the now-useless nsScriptNameSpaceManager::RegisterClassProto function. r=peterv
The only caller is nsDOMClassInfo::RegisterClassProtos.  The only caller of
that is nsDOMClassInfo::Init.  In nsDOMClassInfo::Init this is called after we
have done the RegisterClassName call for "DOMConstructor".

Since the only bits of classinfo left are DOMConstructor and DOMPrototype, and
both use nsIDOMDOMConstructor as their interface, we call RegisterClassProto
with "DOMConstructor" as aClassName, find the existing nsGlobalNameStruct, and
return without doing anything.  So this entire codepath can be removed.

MozReview-Commit-ID: JfXmIex7tLC
2018-03-21 23:13:28 -04:00
Boris Zbarsky 9a6232110b Bug 1442137 part 6. Remove the now-always-false mChromeOnly and mAllowXBL flags in nsGlobalNameStruct. r=peterv
MozReview-Commit-ID: GarrbE696Sq
2018-03-21 23:13:28 -04:00
Boris Zbarsky 36512637c1 Bug 1442137 part 5. Remove the unused NS_DEFINE_CHROME_XBL_CLASSINFO_DATA macro and then-unused mChromeOnly flag in nsDOMClassInfoData. r=peterv
MozReview-Commit-ID: 9P44FU8ISSw
2018-03-21 23:13:28 -04:00
Boris Zbarsky ee26fbc893 Bug 1442137 part 4. Remove the JavaScript-global-privileged-property category from the script namespace manager
MozReview-Commit-ID: LRljHWSKyCx
2018-03-21 23:13:28 -04:00
Boris Zbarsky d5d97c1d57 Bug 1442137 part 3. Remove code that only ran when nsDOMConstructor::IsConstructable() returned true, since it always returns false now. r=peterv
MozReview-Commit-ID: 6bTgNSRzxuS
2018-03-21 23:13:27 -04:00
Boris Zbarsky abdd583095 Bug 1442137 part 2. Remove the now-unused eTypeExternalConstructor global name struct type. r=peterv
MozReview-Commit-ID: qb3mHnC5Ql
2018-03-21 23:13:27 -04:00
Boris Zbarsky ec3bea99f1 Bug 1442137 part 1. Remove support for the JavaScript-global-constructor category in the script namespace manager. r=peterv
MozReview-Commit-ID: 3tcvwufvXS3
2018-03-21 23:13:27 -04:00
Boris Zbarsky 5b5356eada Bug 1445006. Remove the scriptable version of FrameLoader::LoadURI. r=mystor
MozReview-Commit-ID: 4UY2dtk5kpR
2018-03-21 22:43:17 -04:00
Boris Zbarsky d989f864ea Bug 1444143 part 14. Rename nsIFrameLoader.idl to nsIFrameLoaderOwner.idl. r=mystor
MozReview-Commit-ID: 1XpEjoFLSQh

--HG--
rename : dom/base/nsIFrameLoader.idl => dom/base/nsIFrameLoaderOwner.idl
2018-03-21 22:43:17 -04:00
Boris Zbarsky 35d4bc91ec Bug 1444143 part 13. Remove nsIFrameLoader. r=mystor
MozReview-Commit-ID: 4LG8nIePsMH
2018-03-21 22:43:17 -04:00
Boris Zbarsky e15f8f10ff Bug 1444143 part 12. Remove use of nsIFrameLoader from XPIDL files. r=mystor
MozReview-Commit-ID: 8pZ655SgrZ0
2018-03-21 22:43:17 -04:00
Boris Zbarsky 6011abc74a Bug 1444143 part 11. Remove unused nsIFrameLoaderOwner::GetFrameLoaderXPCOM. r=mystor
There are no JS implementations of nsIFrameLoaderOwner, so we can mark it builtinclass.

MozReview-Commit-ID: 5z2f6fUrqaS
2018-03-21 22:43:17 -04:00
Boris Zbarsky 357aae06ff Bug 1444143 part 9. Remove nsIFrameLoader::LoadURI. r=mystor
MozReview-Commit-ID: fSRCzBiHUE
2018-03-21 22:43:16 -04:00
Boris Zbarsky ebf5282891 Bug 1444143 part 8. Remove nsIFrameLoader::LoadFrame. r=mystor
MozReview-Commit-ID: Ackil1mtVy0
2018-03-21 22:43:16 -04:00
Boris Zbarsky 1f1d1c0a81 Bug 1444143 part 7. Remove nsIFrameLoader::Destroy. r=mystor
MozReview-Commit-ID: GObbSTCrjad
2018-03-21 22:43:16 -04:00
Boris Zbarsky 4e7d30f872 Bug 1444143 part 6. Remove nsIFrameLoader::Get/SetEventMode. r=mystor
MozReview-Commit-ID: Jvevh2puiLY
2018-03-21 22:43:16 -04:00
Boris Zbarsky 8ce517e191 Bug 1444143 part 5. Remove nsIFrameLoader::GetOwnerIsMozBrowserFrame. r=mystor
MozReview-Commit-ID: 6IfTdTvDZtm
2018-03-21 22:43:16 -04:00
Boris Zbarsky 909a57edd7 Bug 1444143 part 4. Remove nsIFrameLoader::GetDepthTooGreat. r=mystor
MozReview-Commit-ID: GIdz853oVd3
2018-03-21 22:43:16 -04:00
Boris Zbarsky f3d0adf134 Bug 1444143 part 3. Remove nsIFrameLoader::GetTabParent. r=mystor
MozReview-Commit-ID: 2AgXdhJiunG
2018-03-21 22:43:16 -04:00
Boris Zbarsky 9cb6df0dac Bug 1444143 part 2. Remove nsIFrameLoader::GetDocShell. r=mystor
The change from "docShell" to "mDocShell" for the SetName call in the
OwnerIsMozBrowserFrame case in nsFrameLoader::MaybeCreateDocShell is a
drive-by correctness fix for a bug the rename of "docShell" to "parentDocShell"
caught: setting the name of our _parent_ docshell based on the name attr of our
owner makes no sense.

MozReview-Commit-ID: DwnWt8jTokV
2018-03-21 22:43:15 -04:00
Boris Zbarsky 810e12d143 Bug 1444143 part 1. Remove unused stuff from nsIFrameLoader. r=mystor
MozReview-Commit-ID: 3FpiEo2pxjr
2018-03-21 22:43:15 -04:00
Boris Zbarsky e6805c67dd Bug 1447098 part 3. Add some FromNode overloads for different arg types. r=mystor
Some condition functions are faster on subclasses of nsINode than on nsINode itself.
2018-03-21 17:39:04 -04:00
Boris Zbarsky 258352c8a8 Bug 1447098 part 2. Rename the NS_IMPL_FROMCONTENT macros to NS_IMPL_FROMNODE. r=mystor 2018-03-21 17:39:04 -04:00
Boris Zbarsky 29d232e53f Bug 1447098 part 1. Rename FromContent on various DOM classes to FromNode. r=mystor
MozReview-Commit-ID: 202nkbmkwfR
2018-03-21 17:39:04 -04:00
arthur.iakab 5e8092339a Merge mozilla-central to inbound
--HG--
rename : browser/base/content/test/general/bug364677-data.xml => browser/components/feeds/test/bug364677-data.xml
rename : browser/base/content/test/general/bug364677-data.xml^headers^ => browser/components/feeds/test/bug364677-data.xml^headers^
rename : browser/base/content/test/general/test_bug364677.html => browser/components/feeds/test/test_bug364677.html
rename : services/sync/tps/extensions/tps/bootstrap.js => services/sync/tps/extensions/tps/components/tps-cmdline.js
rename : testing/talos/talos/pageloader/bootstrap.js => testing/talos/talos/pageloader/components/tp-cmdline.js
rename : testing/talos/talos/startup_test/sessionrestore/addon/bootstrap.js => testing/talos/talos/startup_test/sessionrestore/addon/SessionRestoreTalosTest.js
rename : testing/talos/talos/talos-powers/bootstrap.js => testing/talos/talos/talos-powers/components/TalosPowersService.js
rename : tools/quitter/bootstrap.js => tools/quitter/QuitterObserver.js
extra : rebase_source : 5801e95a945b54754f27571e7b211e1eac132d67
2018-03-21 22:27:21 +02:00
arthur.iakab abcb47d8cc Merge inbound to mozilla-central. a=merge 2018-03-21 21:13:11 +02:00
Miko Mynttinen 65c6bee9d6 Bug 1445302 - Replace TArray.RemoveElementAt(TArray.Length() - 1) pattern with TArray.RemoveLastElement() or TArray.PopLastElement() r=froydnj
MozReview-Commit-ID: rGjabnP2iz

--HG--
extra : rebase_source : 1ef6c5ce028ac9ebd9f3176d57835c43fe46bada
2018-03-13 14:51:33 +01:00
Adrian Wielgosik af8740d569 Bug 1447392 - Remove all members from nsIDOMNodeList. r=bz
MozReview-Commit-ID: 68xF7CTMpKB

--HG--
extra : rebase_source : 28b9c5e31d1c93b5c56743e12909eb749e8688f9
2018-03-20 19:02:08 +01:00
Tarek Ziadé 255bc818dc Bug 1443443 - Extend PContent to retrieve Performance Counters in the parent process - r=baku
Adds the IPDL layer to asynchronously retrieve in the parent process the performance counters.

MozReview-Commit-ID: RbKstNx8pi

--HG--
extra : rebase_source : d7c00f2ef16623dbbd88ede0f6636ca56501e151
2018-03-20 20:07:41 +01:00
Cosmin Sabou 6f9a8dd015 Backed out changeset fae7d9814403 (bug 1443443) for mochitest browser-chrome failure on browser_test_performance_metrics.js
--HG--
extra : rebase_source : 03d120899e3898ec18e2fd226973f38d438a156a
2018-03-20 20:31:01 +02:00
Tarek Ziadé 3073443de2 Bug 1443443 - Extend PContent to retrieve Performance Counters in the parent process - r=baku
Adds the IPDL layer to asynchronously retrieve in the parent process the performance counters.

MozReview-Commit-ID: RbKstNx8pi

--HG--
extra : rebase_source : f81058b9bdd67c2f77bb5cd45d3838bc12f406ea
2018-03-20 17:19:32 +01:00
Catalin Badea ec64c538e5 Bug 1445792 - Merge nsIWindowMediator_44 back into nsIWindowMediator. r=dbaron 2018-03-20 05:27:00 -04:00
Andrea Marchesini e650094aad Bug 1447422 - Better check on aDocument in nsContentUtils::WarnScriptWasIgnored, r=smaug 2018-03-21 11:57:27 +01:00
Emilio Cobos Álvarez a0d49d986b Bug 1447611: Cleanup prefs that do nothing now. r=jwatt
Still more followup cleanup to come.

MozReview-Commit-ID: 83j7DTVb0Ti
2018-03-21 19:13:56 +01:00
Csoregi Natalia d6c6d38406 Backed out 4 changesets (bug 1447611) for mass failures due to --enable-stylo removal. CLOSED TREE
Backed out changeset c6193142bbcf (bug 1447611)
Backed out changeset 01ada1c5a95f (bug 1447611)
Backed out changeset 86c9fed44da2 (bug 1447611)
Backed out changeset bb84ac6e1468 (bug 1447611)
2018-03-21 19:01:07 +02:00
Emilio Cobos Álvarez f8eadb8613 Bug 1447611: Cleanup prefs that do nothing now. r=jwatt
Still more followup cleanup to come.

MozReview-Commit-ID: 83j7DTVb0Ti
2018-03-21 17:25:00 +01:00
Peter Van der Beken f5754d679a Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
--HG--
extra : rebase_source : 5911f91bd7a63cd3603494e087e3858bd0527500
2018-03-01 20:19:56 +01:00
Jonathan Watt f6c1f57fe8 Bug 1397795 part 3 - Don't rely on opaque widgets not having overflow. r=mstange
MozReview-Commit-ID: GJNDwQUjfEr
2018-02-19 16:00:32 +00:00
Jonathan Watt a39f30cb97 Bug 1397795 part 2 - Crashtest for box-shadow. r=mstange
MozReview-Commit-ID: 8zEK1R77znx
2018-02-19 13:14:46 +00:00
Tiberius Oros e66ec58abf Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-21 12:10:46 +02:00
Emilio Cobos Álvarez f7522ae728 Bug 1447358: Unifdef the old style system code. r=jwatt
Summary:
This has been automatically generated using:

  http://dotat.at/prog/unifdef/

And:

find $OBJDIR -type f -name '*.h' |
while read FILE; do
  echo "$FILE"
  unifdef -m -DMOZ_STYLO -UMOZ_OLD_STYLE "$FILE";
done

find $OBJDIR -type f -name '*.cpp' |
while read FILE; do
  echo "$FILE"
  unifdef -m -DMOZ_STYLO -UMOZ_OLD_STYLE "$FILE";
done

MozReview-Commit-ID: I4NdKqbMXzJ

Reviewers: jwatt

Bug #: 1447358

Differential Revision: https://phabricator.services.mozilla.com/D779
2018-03-21 10:20:34 +01:00
Emilio Cobos Álvarez 48957d62c0 Bug 1446954: Cleanup !stylo and styloVsGecko test expectations. r=xidorn
MozReview-Commit-ID: J2glxiCWBVn
2018-03-20 11:29:51 +01:00
Boris Zbarsky 89ea512161 Bug 1446711 part 7. Switch the nsIDOMMouseEvent::MOZ_SOURCE_* constants over to MouseEventBinding. r=qdot
We can't include MouseEventBinding.h in MouseEvents.h because that produces
this include loop:

MouseEventBinding.h -> UIEventBinding.h ->
nsGlobalWindow.h -> nsGlobalWindowInner.h -> nsRefreshDriver.h ->
AnimationEventDispatcher.h -> AnimationComparator.h -> Animation.h ->
EffectCompositor.h -> PseudoElementHashEntry.h -> Element.h ->
PointerEventHandler.h -> MouseEvents.h -> MouseEventBinding.h

MozReview-Commit-ID: 6FNksGil7uD
2018-03-20 00:16:06 -04:00
Nicholas Nethercote b719af74df Bug 1446865 - Move nsAtomListUtils. r=froydnj
It seems silly to have a tiny utils class with a single function in its own
module. This patch moves it into nsStaticAtom.h/nsAtomTable.cpp. It also
renames nsAtomListUtils as nsStaticAtomUtils. Finally, it uses templates to
remove the need for the `aCount` parameter at callsites.

MozReview-Commit-ID: DvJVoZFv89c

--HG--
extra : rebase_source : 1f1dd27d56e46c71c30c10102ac6132a721e23d1
2018-03-20 11:44:28 +11:00
Emilio Cobos Álvarez 500ff7c746 Bug 1446342: Don't include forms in the scope chain for XBL datetime bindings. r=smaug
Reviewers: smaug

Bug #: 1446342

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

MozReview-Commit-ID: HK7nChYf0X6
2018-03-20 01:34:09 +01:00
Andreea Pavel 7062e6b6a2 Merge mozilla-inbound to mozilla-central. a=merge 2018-03-20 00:39:56 +02:00
Boris Zbarsky 69094fdaea Bug 1446533 part 7 typo fix to reopen the CLOSED TREE. r=bzbarsky
MozReview-Commit-ID: 9sDS8YhQgge
2018-03-19 16:10:06 -04:00
Boris Zbarsky d05e564049 Bug 1446710. Get rid of nsIDOMXULCommandEvent. r=qdot
MozReview-Commit-ID: C2C6oWtagG3
2018-03-19 15:50:37 -04:00
Boris Zbarsky 9ae8969557 Bug 1446530. Change CloneDataNode to return already_AddRefed<CharacterData>. r=mystor
MozReview-Commit-ID: 1Clh4fG3GAq
2018-03-19 15:50:16 -04:00
Boris Zbarsky 2f66e620e3 Bug 1446533 part 12. Remove nsIDOMCharacterData. r=mystor
MozReview-Commit-ID: KXex3Rjcire
2018-03-19 15:47:42 -04:00
Boris Zbarsky 8dfe726ebb Bug 1446533 part 11. Remove remaining nsIDOMCharacterData uses in range code. r=mystor
MozReview-Commit-ID: 8YLea3SmQQU
2018-03-19 15:45:58 -04:00