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

17799 Коммитов

Автор SHA1 Сообщение Дата
Gurzau Raul 390957966b Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-24 00:08:02 +02:00
Nathan Froyd efd709bd4f Bug 1447744 - don't implement nsINamed for mozilla::Runnable when it's unused; r=erahm
We only use nsINamed on runnables for certain kinds of telemetry, and
those kinds of telemetry aren't being gathered on RELEASE_OR_BETA
builds.  We effectively make nsINamed::GetName a no-op when we're not
collecting said telemetry.  But implementing nsINamed does have a cost:
the vtable of every runnable (and we have hundreds of subclasses of
mozilla::Runnable) will contain pointers for GetName (and extra pointers
for QueryInterface/AddRef/Release), and all those pointers times all
those subclasses adds up quickly.  Let's not implement nsINamed when
nsINamed isn't going to be used.

This change saves ~100K of binary size on x86-64 Linux; the savings
should be similar on other 64-bit systems, and ~50K on 32-bit systems.
2018-03-23 14:53:55 -04:00
Narcis Beleuzu cd3a1211e2 Merge inbound to mozilla-central. a=merge 2018-03-23 11:51:38 +02:00
Noemi Erli 1270a21724 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-23 01:00:18 +02:00
Noemi Erli b32b2756aa Merge inbound to mozilla-central. a=merge 2018-03-23 00:53:07 +02:00
Petr Sumbera c5a5409300 Bug 1446272 - Provide ResidentUniqueDistinguishedAmount() for Solaris. r=froydnj 2018-03-22 06:14:19 -07:00
Nicholas Nethercote d81eb773d4 Bug 1445892 - Remove nsDirectoryService::sOS_HomeDirectory atom. r=froydnj
nsGkAtoms::Home and nsDirectoryAtoms::sOS_HomeDirectory are duplicate static
atoms. This patch comments out the latter to remove the duplication.

MozReview-Commit-ID: LGkjZn0zaoz
2018-03-22 19:07:40 +11:00
Timothy Guan-tin Chien 8bc65dd64e Bug 1446157 - Remove unused grippy binding r=enndeakin+6102
MozReview-Commit-ID: KWC9HpTzig

--HG--
extra : rebase_source : 7b6b24330d072d5126851c63614ba91f4315ddc9
2018-03-20 17:21:19 +08:00
Boris Zbarsky 35d4bc91ec Bug 1444143 part 13. Remove nsIFrameLoader. r=mystor
MozReview-Commit-ID: 4LG8nIePsMH
2018-03-21 22:43:17 -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
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
Paul Adenot 816186a405 Bug 1447622 - Add a way to output raw MOZ_LOG, without prefixes. r=erahm
MOZ_LOG=modules:4,raw now outputs the log without prefixes with the thread name
and date and stuff, just the exact string that was specified.

MozReview-Commit-ID: HACT5EM4BFm

--HG--
extra : rebase_source : 93590ee405f013791ad63565be6e6d83cad3567f
extra : source : d79d7130b28275c8eb2a475bdc685a345b070888
2018-03-21 12:11:17 +01:00
Kris Maglione 5edc701bb6 Bug 1446585: Remove support for resource entries in bootstrapped chrome.manifest files. r=aswan,MattN,k88hudson
MozReview-Commit-ID: EjymzU6koYX

--HG--
extra : rebase_source : 7b4fc250b5be0f2c16f3797eafb61e7c3955309d
2018-03-16 20:18:46 -07: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
David Keeler bd19496187 bug 1437128 - enforce that NSS_Shutdown succeeds on debug, non-android platforms (to prevent NSS resource leaks) r=erahm
--HG--
extra : rebase_source : dc6871d6fd3be8e6b186c78df2435e151bc1e61a
extra : amend_source : 59ca2abfcd04a8741ef14d65f8385ed9469aec70
2018-02-09 12:11:15 -08:00
Boris Zbarsky 837dc7eaaa Bug 1446711 part 8. Get rid of nsIDOMMouseEvent. r=qdot
MozReview-Commit-ID: 2FK1MA4LGZj
2018-03-20 00:16:07 -04:00
Boris Zbarsky 1a7c5067ca Bug 1446851. Get rid of nsIDOMWheelEvent. r=qdot
We can't include WheelEventBinding.h in MouseEvents.h because that produces
this include loop:

WheelEventBinding.h -> 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 -> WheelEventBinding.h

MozReview-Commit-ID: 5KNwH69aJYW
2018-03-20 00:16:05 -04:00
Nicholas Nethercote 2211e2da6f Bug 1446865 - Rename various AddRefTable() functions as RegisterStaticAtoms. r=froydnj
These functions no longer perform any refcounting, so the existing names are
misleading.

MozReview-Commit-ID: LX55e0bUP8N

--HG--
extra : rebase_source : 89a3da577325286c1d31723acfd4153754f49703
2018-03-20 13:01:30 +11:00
Nicholas Nethercote db20ce5cdf Bug 1446865 - Introduce nsStaticAtomUtils::Lookup. r=froydnj
This function captures a common usage pattern, generalizing the existing
IsMember() function.

MozReview-Commit-ID: 5Pt7kqyGD6Y

--HG--
extra : rebase_source : b03e4cc8f5a4a25da9236420f4b64493664b70e0
2018-03-20 13:01:28 +11: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
Narcis Beleuzu 15414c4ffe Merge nozilla-central to autoland. a=merge CLOSED TREE 2018-03-23 12:04:15 +02:00
Henri Sivonen 21af10d5f4 Bug 1445692 - Remove UTF8InputStream. r=froydnj
MozReview-Commit-ID: 1az5nkKTkru

--HG--
extra : rebase_source : 6a21b4dad71ea351a51c741977b36dfb562c608b
2018-03-14 20:53:18 +02:00
Andreea Pavel 62b7a93603 Backed out 3 changesets (bug 1446157) for browser chrome failures at browser/base/content/test/static/browser_all_files_referenced.js on a CLOSED TREE
Backed out changeset 2491f8caeffa (bug 1446157)
Backed out changeset be65061c2d72 (bug 1446157)
Backed out changeset de560a993de1 (bug 1446157)
2018-03-22 18:49:31 +02:00
Timothy Guan-tin Chien aa45f889db Bug 1446157 - Remove unused grippy binding r=enndeakin+6102
MozReview-Commit-ID: KWC9HpTzig

--HG--
extra : rebase_source : 382083ebb3fd2d1b10c70df314bd67ce5ded1f08
2018-03-20 17:21:19 +08:00
Andrew McCreight 81b1d1c977 Bug 1447849 - Eliminate the anonymous union from XPTTypeDescriptor. r=njn
For bug 1438688, I need to statically initialize all of the data types
in xpt_struct.h. It turns out that the approach I was using for unions
is C99 and not C++. While for some reason Clang and GCC are okay with
that, MSVC is not.

One of the unions is a gnarly anonymous union in
XPTTypeDescriptor. However, every arm of this union is either 1 or 2
uint8_t, so I think it is reasonable to eliminate the union and
replace it with two fields, mData1 and mData2. I've fixed up the
places that read this data to use accessor methods with nice asserts
about the tag on the variant, so if anything I think that part is
nicer.

The code in xpt_struct.cpp that writes to this data is maybe less
nice, but I'm deleting it in bug 1438688 so I think that's okay. We
also lose some detail in the comments about the relationship between
what is stored in memory compared to what is stored on disk, but I
think that's okay, too.

MozReview-Commit-ID: DGi19f8HnMi

--HG--
extra : rebase_source : e3535ecb3d7f02bdb643df153e8aba3e106d9104
2018-03-21 16:35:55 -07:00
Andreas Pehrson 8bb83ab05d Bug 1351655 - Log which SharedThreadPools are not yet destroyed on shutdown-threads. r=froydnj
We risk a shutdown hang without any clues if a dangling reference somewhere
keeps a SharedThreadPool alive past xpcom-shutdown-threads. This because
xpcom-shutdown-threads waits for all SharedThreadPool to be destroyed before
advancing shutdown further. nsCycleCollector::Shutdown comes after
xpcom-shutdown-threads so it is possible that a reference-cycle unexpectedly
keeps a SharedThreadPool alive and blocks shutdown indefinitely.

This patch attempts to help diagnose future cases like this by printing which
SharedThreadPools we are going to wait for to stderr.

MozReview-Commit-ID: CwTApYUMikA

--HG--
extra : rebase_source : f29d04508cf492c82d65f324d7b1990849a0da13
2018-01-23 11:40:37 +01:00
Boris Zbarsky 5f74b75e04 Bug 1446850. Get rid of nsIDOMMouseScrollEvent. r=qdot
MozReview-Commit-ID: ZT9E3Fhtw0
2018-03-19 15:50:56 -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 5c19641a68 Bug 1446709. Get rid of nsIDOMScrollAreaEvent. r=qdot
MozReview-Commit-ID: IXixthbqXqM
2018-03-19 15:50:22 -04:00
Boris Zbarsky 5b34d749e4 Bug 1446708. Get rid of nsIDOMFocusEvent. r=qdot
MozReview-Commit-ID: ChTQpN6EzdC
2018-03-19 15:50:19 -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 b990bb4bdb Bug 1446599 part 4. Remove nsIDOMProcessingInstruction. r=mystor
MozReview-Commit-ID: EZVcDlMO3ev
2018-03-19 15:15:40 -04:00
Boris Zbarsky 4fa4d2a7f5 Bug 1446598 part 2. Get rid of nsIDOMComment. r=mystor
MozReview-Commit-ID: GGXPQnlwuUM
2018-03-19 15:15:39 -04:00
Boris Zbarsky 46cdbdc51b Bug 1433566 part 13. Remove nsIDOMText. r=mystor
MozReview-Commit-ID: DvaZ96j5exf
2018-03-19 15:15:39 -04:00
Samuel Thibault 39ed413777 Bug 1346535 - atk: Introduce U+FEFF characters to match AT-SPI offsets with DOM offsets. r=surkov, r=dbaron 2018-03-16 15:57:00 -04:00
Bogdan Tara 7eb4cdd58d Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-17 12:34:09 +02:00
Boris Zbarsky 4fbe59c404 Bug 1445417 part 4. Remove nsIDOMDragEvent. r=mystor
MozReview-Commit-ID: 6hQ7mHLaLcx
2018-03-16 22:25:25 -04:00
Adrian Wielgosik 87a72d3f51 Bug 1446515 - Remove nsIDOMFileList. r=bz
MozReview-Commit-ID: 4ab1e6NTcOB

--HG--
extra : rebase_source : 09388e531e2bcc6a133cc1ec76946a79ddf2bcb0
2018-03-16 20:55:32 +01:00
Dorel Luca 17320c327a Backed out changeset a66043ecf949 (bug 1346535) for build bustages 2018-03-17 00:08:00 +02:00
Samuel Thibault 57a8fb9615 Bug 1346535 atk: Introduce U+FEFF characters to match AT-SPI offsets with DOM offsets r=surkov 2018-03-16 05:11:00 +02:00
Gurzau Raul 3057041352 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-16 19:58:27 +02:00
Andrew McCreight d423a14b35 Bug 1446200 - Add a helper method to encode Method flags. r=froydnj
Most of the classes in xpt.py define a helper method to encode the
values of the flags into a byte, but for some reason Method does
not. It'll be useful to have one for Method for the C++ backend I am
working on.

MozReview-Commit-ID: ESi1CnstbN2

--HG--
extra : rebase_source : 23822e7770e9a3d1b5a2359ae9753f950af3a121
2018-03-15 15:46:08 -07:00
Gijs Kruitbosch 4fe837deef Bug 1445990 - fix initialization of blocklist service in non-browser apps, r=florian
MozReview-Commit-ID: GK4SA8gJ8Pf

--HG--
extra : rebase_source : ad3ff814d634e885da37e16801d701fd79f78ea3
2018-03-15 16:16:11 +00:00
Boris Zbarsky 46fc331568 Bug 1446097. Switch to "set" as the canonical nsGkAtoms name of the string "set", so it matches the actual tag name "set" in SVG. r=hsivonen,njn
Most of the noise is from the fact that clang-format on parser/html/*.{h,cpp}
reformatted all sorts of stuff.  Not running it caused lots of format changes
from the generator... I guess we changed the format rules since the last time
this got run?

MozReview-Commit-ID: IA2G87zUIKN
2018-03-16 11:26:06 -04:00
Sebastian Hengst 1e30b1a1f4 Bug 1445926 - Only run GTest TestThreadMetrics if RELEASE or BETA are not set. r=tarek
MozReview-Commit-ID: I04MxVtBqa1

--HG--
extra : rebase_source : d8971343d76448341e9ca6de80de18eee79d95f0
2018-03-15 13:54:13 +01:00
Coroiu Cristina 2e50512ba8 Backed out changeset 3b82709eca8a (bug 1445990) for xpcshell failures at js/xpconnect/tests/unit/test_defineModuleGetter.js on a CLOSED TREE 2018-03-16 04:27:22 +02:00
Gijs Kruitbosch 1badfb149e Bug 1445990 - fix initialization of blocklist service in non-browser apps, r=florian
MozReview-Commit-ID: GK4SA8gJ8Pf

--HG--
extra : rebase_source : bb45570e7ede79d2efc8bef6da6e9fd2ab1f998e
2018-03-15 16:16:11 +00:00
Coroiu Cristina 51fd916771 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-03-16 01:43:13 +02:00
Noemi Erli 4472289127 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-03-15 19:43:12 +02:00
Adrian Wielgosik 27009d1b15 Bug 1445408 - Remove nsIDOMClientRect. r=bz
MozReview-Commit-ID: HP4E3cADa8i

--HG--
extra : rebase_source : caffa42f22f6c25d62d080aa6f65e5105ad263e9
2018-03-13 14:19:17 +01:00
Kyle Machulis e9c55b249d Bug 1406206 - Remove extraneous else block from cycle collection macros; r=froydnj
clang-tidy is complaining about an extra else in
NS_INTERFACE_MAP_ENTRIES_CYCLE_COLLECTION. Not hurting anything, but
could be cleaned up anyways.

MozReview-Commit-ID: 36Lkdhs3fyN

--HG--
extra : rebase_source : 74088c9c2668f43d55133be240d4591880b60dab
2018-03-14 15:36:59 -07:00
Adrian Wielgosik bb82957302 Bug 1445408 - Remove nsIDOMClientRectList. r=bz
MozReview-Commit-ID: 22sQNVs0wFP

--HG--
extra : rebase_source : f96617033678e372a32971517300182dd4c3ac57
2018-03-01 17:14:26 +01:00
shindli 9bfc016707 Merge inbound to mozilla-central. a=merge 2018-03-15 12:15:17 +02:00
Ryan VanderMeulen 0007daf65b Backed out changeset 1ec0f839a905 (bug 1086964) for mass Win7 debug test failures. 2018-03-14 20:35:43 -04:00
Ryan VanderMeulen 3f80fd8acc Bug 1086964 - Remove uses of no_pgo that are no longer needed. r=dmajor 2018-03-14 18:18:32 -04:00
Andreea Pavel 363ad2007d Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-03-15 00:11:42 +02:00
Andreea Pavel 067622ac36 Merge mozilla-inbound to mozilla-central. a=merge on a CLOSED TREE 2018-03-15 00:07:17 +02:00
Nicholas Nethercote e303a46fae Bug 1445142 - Remove DefaultAtoms. r=froydnj
Now that nsGkAtoms is in xpcom/, we can call nsGkAtoms::AddRefAtoms() from
NS_InitAtomTable(), which removes the need for DefaultAtoms, and also removes a
duplicate static atom.

MozReview-Commit-ID: CyfvnvZomzZ

--HG--
extra : rebase_source : 53ead62323a340038c1b4594b1a3eb225aa19626
2018-03-14 11:11:02 +11:00
Nicholas Nethercote 23f8a3de52 Bug 1445142 - Move nsGkAtoms into xpcom/. r=froydnj
This list of atoms isn't particularly DOM-ish, and having it in xpcom/ will
help with the next patch.

MozReview-Commit-ID: 1Y3Fhn9lNbh

--HG--
rename : dom/base/nsGkAtomList.h => xpcom/ds/nsGkAtomList.h
rename : dom/base/nsGkAtoms.cpp => xpcom/ds/nsGkAtoms.cpp
rename : dom/base/nsGkAtoms.h => xpcom/ds/nsGkAtoms.h
extra : rebase_source : 0a0f6ab4432e0d58ea4662299b750a8c52325ad5
2018-03-14 11:10:55 +11:00
Nathan Froyd 10b5e09d51 Bug 1440166 - actually avoid races in refcount logging with named classes; rs=erahm 2018-03-14 17:03:52 -04:00
Nathan Froyd 1732506d79 Bug 1440166 - avoid races in refcount logging with named classes; r=mccr8 2018-03-14 09:49:19 -04:00
Nathan Froyd 075adc9ec6 Bug 1445584 - add a move assignment operator for nsCOMPtr; r=gerald
Somehow we didn't have this before.  The lack thereof was causing us to
do unnecessary things during event dispatch.
2018-03-14 08:22:30 -04:00
arthur.iakab 8976abf9ca Merge inbound to mozilla-central. a=merge 2018-03-14 12:00:13 +02:00
Boris Zbarsky 12b661df01 Bug 1445140 part 5. Remove nsIDOMDocumentType. r=mystor
MozReview-Commit-ID: B6iktNYbWn9
2018-03-13 16:24:01 -04:00
Boris Zbarsky dae236c7cb Bug 1444686 part 14. Remove nsIDOMDataTransfer. r=mystor
MozReview-Commit-ID: BLi4w10clkP
2018-03-13 16:24:01 -04:00
Adrian Wielgosik 43a3ada8a9 Bug 1418077 - Remove nsIDOMHTMLFormElement. r=bz
MozReview-Commit-ID: 9eQxvfIMB22

--HG--
extra : rebase_source : f75e043da542b567e31d15db25791c738b275a09
2018-03-14 21:42:25 +01:00
Andreea Pavel 46575fad3b Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-03-15 00:10:23 +02:00
Jan-Ivar Bruaroey 2a02bb226b Bug 1445533 - Use for(:) in MozPromise code. r=gerald
MozReview-Commit-ID: BsKR2o25hIQ

--HG--
extra : rebase_source : b150952128e9e7ad3ccc6603b1584dde40b82c5f
2018-03-13 19:13:18 -04:00
Jan-Ivar Bruaroey 608cdac3cb Bug 1445533 - Remove a refcount in MozPromise::Steal(), and use MakeRefPtr a few places. r=gerald
MozReview-Commit-ID: 2jFzxiqBVpc

--HG--
extra : rebase_source : 54947af96e3fc6abb51e73e1ace4b49a6a95fc46
2018-03-13 09:55:01 -04:00
Andrew Osmond 03ddb93873 Backed out changeset 8f16d20b0a3b (bug 1433351) for build bustage on a CLOSED TREE. 2018-03-15 11:18:35 -04:00
Ryan VanderMeulen 5383105dd9 Bug 1086964 - Remove uses of no_pgo that are no longer needed. r=dmajor 2018-03-14 18:18:32 -04:00
Andrew Osmond 866a8daa39 Bug 1433351 - Add nsBaseHashtable::EntryPtr::OrRemove method to abort nsBaseHashtable::LookupForAdd on miss. r=froydnj
In SourceSurfaceImage::GetTextureClient, we use LookupForAdd. This is
because we typically will create a new TextureClient if there isn't
already one created. This creation can fail because the size is too big,
or we don't have the memory available for it. Unfortunately LookupForAdd
is an infallible operation; it is expected we will always add something
to the hashtable if we don't find an entry. This patch adds an OrRemove
method to cover the corner case where we are unable to complete the
insertion.
2018-03-15 10:33:40 -04:00
arthur.iakab 6153368440 Merge mozilla-central to autoland 2018-03-14 12:16:00 +02:00
Tarek Ziadé 86edd52973 Bug 1437438 - Add a performance counter to track scheduler activity - r=farre,froydnj
Adds a PeformanceCounter class that is used in DocGroup and WorkerPrivate
to track runnables execution and dispatch counts.

MozReview-Commit-ID: 51DLj6ORD2O

--HG--
extra : rebase_source : b481c9aa3b735569722bb7472872ec2d22adcb89
2018-03-06 10:19:19 +01:00
Boris Zbarsky 20e0796330 Bug 1447472 part 3. Remove nsIDOMNSEvent. r=qdot
MozReview-Commit-ID: HT1gskFxEZL
2018-03-26 14:53:53 -04:00
Boris Zbarsky 37b111ac2a Bug 1447472 part 2. Remove nsIDOMCustomEvent. r=qdot
MozReview-Commit-ID: 3NPqLIU8cka
2018-03-26 14:53:51 -04:00
Boris Zbarsky 5f1deca99d Bug 1447472 part 1. Remove nsIDOMNotifyPaintEvent. r=qdot
MozReview-Commit-ID: J019gX9963D
2018-03-26 14:53:47 -04:00
Boris Zbarsky 5b0b5358d6 Bug 1446527 part 6. Remove nsIDOMUIEvent. r=qdot
MozReview-Commit-ID: 7GbifGJQUtQ
2018-03-26 14:53:03 -04:00
David Major 608b569690 Bug 1447742: Understand movups in 32-bit DLL interceptor. r=handyman 2018-03-22 14:20:36 -04:00
Narcis Beleuzu 298d1d55b5 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-13 12:36:54 +02:00
Andrew McCreight 47cc3bb70c Bug 1445073 - Pass XPTInterfaceDirectoryEntry into xptiInterfaceEntry::Create(). r=njn
Also, I set some flags in the ctor instead of later and I also removed
a comment which refers to SetHeader(), which does not exist any more.

MozReview-Commit-ID: 27mcRTnanrZ

--HG--
extra : rebase_source : ec87aed9fa46c2202b607cbcdb4c8347eaa50949
2018-03-12 11:17:48 -07:00
ffxbld 99df6dad05 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2018-03-12 13:20:48 +00:00
Andreea Pavel 7d4b5748e1 Backed out 2 changesets (bug 1435899) for failing android at modules/libpref/test/unit/test_defaultValues.js pn a CLOSED TREE
Backed out changeset 925adb267211 (bug 1435899)
Backed out changeset f22f1ab67c5a (bug 1435899)
2018-03-09 23:14:32 +02:00
Andrea Marchesini 3c1d84b33c Bug 1435899 - Close underlying stream in NonBlockingAsyncInputStream sooner. r=froydnj
--HG--
extra : rebase_source : 64473e8f71f826e7d6a3fd2324cbef98b60b133d
2018-02-27 02:03:00 -05:00
Kris Maglione afc3918d22 Bug 1443651: Don't return failure for access denied from createUnique() if file exists. r=Mossop
There are ways for Create() to return access denied for files which already
exist, particularly in the case of locked files. When it does, createUnique()
should check whether the file exists before considering the attempt a failure.

MozReview-Commit-ID: FyJTghk04jH

--HG--
extra : rebase_source : 10e6f2cb7da18e8e6d410b52a593b7455f0d76fa
2018-03-06 14:32:40 -08:00
Dorel Luca 30edeead7c Merge mozilla-central to mozilla-inbound. a=merge 2018-03-09 12:01:54 +02:00
Bas Schouten 0d91fc49fd Bug 1444200: Explicitly call the parent class default constructor from AutoTArray's copy constructor. r=froydnj
MozReview-Commit-ID: 5alSZfYJxmV
2018-03-09 05:27:14 +01:00
Nicholas Nethercote 0e2f1f5ab8 Bug 1444031 - Rename nsStaticAtom::mAtom as mAtomp. r=froydnj
Because (a) that name better indicates that it's a pointer to a pointer, and
(b) because nsStaticAtom::mString is going to be renamed as mAtom in bug
1411469.

MozReview-Commit-ID: D5tuNOstMgr

--HG--
extra : rebase_source : 9344eeea0288c8c52c069ce21e8bc55f6e0f3f6f
2018-03-08 11:42:06 +11:00
Nicholas Nethercote 8ac9830be0 Bug 1444031 - Rename Is{Static,Dynamic,HTML5}Atom. r=froydnj
By removing the "Atom" suffix, which is redundant.

MozReview-Commit-ID: 4MCX9Icfjrw

--HG--
extra : rebase_source : c3c759a508a8938b59d36dbb20448d2964b98c91
2018-03-07 15:17:34 +11:00
Andrew McCreight 48c9169246 Bug 1444129, part 7 - Rename fields of XPTMethodDescriptor. r=njn
MozReview-Commit-ID: IwOCyKOY4mR

--HG--
extra : rebase_source : 315d82cb066cbcbfe325279a33366ed7be6fe68a
2018-03-07 15:22:35 -08:00
Andrew McCreight 89bbb84e4f Bug 1444129, part 6 - Rename fields of XPTParamDescriptor. r=njn
MozReview-Commit-ID: 62OFcZ6s2kd

--HG--
extra : rebase_source : 30b263dad71433fb4665235db575d778d07fa785
2018-03-07 15:17:55 -08:00
Andrew McCreight 639c12b1b2 Bug 1444129, part 5 - Rename fields of XPTTypeDescriptor and XPTConstDescriptor. r=njn
MozReview-Commit-ID: LdDpZwKDxJH

--HG--
extra : rebase_source : 2c9f5390792885566fa91b40dc0cbc4a46c0fd42
2018-03-07 14:34:22 -08:00
Andrew McCreight f613470d37 Bug 1444129, part 4 - Rename the one field of XPTTypeDescriptorPrefix. r=njn
MozReview-Commit-ID: 4rO1xtMfHD6

--HG--
extra : rebase_source : 647fc9265ee52d32cab8aa276c64200d66442aa0
2018-03-07 14:06:31 -08:00
Andrew McCreight f7a3e0281d Bug 1444129, part 3 - Rename XPTInterfaceDescriptor fields. r=njn
MozReview-Commit-ID: C5jenxkkDgl

--HG--
extra : rebase_source : 98c588e8433009c00acf014eb58be10b73fdb8cf
2018-03-07 13:40:47 -08:00
Andrew McCreight 324e8c87a2 Bug 1444129, part 2 - Rename fields of XPTInterfaceDirectoryEntry. r=njn
MozReview-Commit-ID: 8bGFwMyzhTx

--HG--
extra : rebase_source : 3097c11e868c6868c9420b8e55893e0f7abd08de
2018-03-07 13:37:08 -08:00
Andrew McCreight 7a9835414d Bug 1444129, part 1 - Rename fields of XPTHeader. r=njn
MozReview-Commit-ID: COPpBBEbVbC

--HG--
extra : rebase_source : c5085ee2e3256516d092768d82464d9c9fd76790
2018-03-07 13:28:54 -08:00
Andrew McCreight df6b9b9b84 Bug 1444104 - Remove some NUWA related code from the manifest parser. r=froydnj
This undoes the parts of bug 977026 related to manifest parsing that
are still around.

MozReview-Commit-ID: CimJNEl8KKk

--HG--
extra : rebase_source : 7e84ff5e5a4adda66ff35044b7a873d7137e3417
2018-03-08 13:58:29 -08:00
Andrea Marchesini 5784769019 Bug 1443079 - nsScriptError.isFromPrivateWindow must match the correct value also in e10s mode, r=smaug 2018-03-13 06:40:38 +01:00
Nicholas Nethercote 68124009fc Bug 1438678 - Pass early prefs via shared memory instead of the command line. r=bobowen,jld,glandium.
This patch replaces the large -intPrefs/-boolPrefs/-stringPrefs flags with
a short-lived, anonymous, shared memory segment that is used to pass the early
prefs.

Removing the bloat from the command line is nice, but more important is the
fact that this will let us pass more prefs at content process start-up, which
will allow us to remove the early/late prefs split (bug 1436911).

Although this mechanism is only used for prefs, it's conceivable that it could
be used for other data that must be received very early by children, and for
which the command line isn't ideal.

Notable details:

- Much of the patch deals with the various platform-specific ways of passing
  handles/fds to children.

  - Linux and Mac: we use a fixed fd (8) in combination with the new
    GeckoChildProcessHost::AddFdToRemap() function (which ensures the child
    won't close the fd).

  - Android: like Linux and Mac, but the handles get passed via "parcels" and
    we use the new SetPrefsFd() function instead of the fixed fd.

  - Windows: there is no need to duplicate the handle because Windows handles
    are system-wide. But we do use the new
    GeckoChildProcessHost::AddHandleToShare() function to add it to the list of
    inheritable handles. We also ensure that list is processed on all paths
    (MOZ_SANDBOX with sandbox, MOZ_SANDBOX without sandbox, non-MOZ_SANDBOX) so
    that the handles are marked as inheritable. The handle is passed via the
    -prefsHandle flag.

  The -prefsLen flag is used on all platforms to indicate the size of the
  shared memory segment.

- The patch also moves the serialization/deserialization of the prefs in/out of
  the shared memory into libpref, which is a better spot for it. (This means
  Preferences::MustSendToContentProcesses() can be removed.)

MozReview-Commit-ID: 8fREEBiYFvc

--HG--
extra : rebase_source : 7e4c8ebdbcd7d74d6bd2ab3c9e75a6a17dbd8dfe
2018-02-16 17:54:16 +11:00
Boris Zbarsky ba4b5f9979 Bug 1444919 part 2. Remove nsIDOMClipboardEvent. r=mystor
MozReview-Commit-ID: YmJ04OiqFo
2018-03-13 00:59:24 -04:00
Cosmin Sabou aba9ad6f65 Merge inbound to mozilla-central. a=merge
--HG--
rename : mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/NavigationListenerTest.kt => mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/NavigationDelegateTest.kt
2018-03-08 05:59:30 +02:00
Nathan Froyd e7492f2d00 Bug 1443932 - part 1 - add nsIThreadManager::kThreadPoolStackSize; r=erahm
A lot of our thread pools use the default stack size for the platform
they're on, which can be rather large (8MB, usually, on Linux and OS X)
and is probably too much for the typical thread in the thread pool
regardless.  SharedThreadPool already has some logic for selecting a
reasonable stack size for worker threads; let's move that logic to
nsIThreadManager so that logic (and constant) can be shared more
broadly.  (That we already have a couple of instances of
SharedThreadPool usage solely for this constant suggests that it is a
concept that should be available in a more central location.)
2018-03-07 20:33:17 -05:00
Andrew McCreight e4b9916e1e Bug 1443951 - Remove some ancient XPTInfo logging. r=njn
MozReview-Commit-ID: KCyIEHEnMUf

--HG--
extra : rebase_source : 35936c2cd41d72d51110dbe1fd2fa238cee03106
2018-03-07 13:22:05 -08:00
Andrew McCreight 1a05744852 Bug 1442363, part 8 - Constify XPTMethodDescriptor::params. r=njn
MozReview-Commit-ID: 3PvMeJW2P50

--HG--
extra : rebase_source : a8a617e0fb58c27690bcb2cc9a3e256efaaedf07
2018-02-27 15:54:17 -08:00
Andrew McCreight 9e8f62c285 Bug 1442363, part 7 - Constify XPTInterfaceDescriptor::additional_types. r=njn
The trick here is that we read in the element type before we expand the array, so that we
can write it to the new array before it becomes constified.

MozReview-Commit-ID: 2pbpNVZ3gPZ

--HG--
extra : rebase_source : 4c07fff32ea6b1d5c60ae3e40fb869b737cab13e
2018-02-27 15:50:41 -08:00
Andrew McCreight f6a7e8a28a Bug 1442363, part 6 - Constify XPTInterfaceDescriptor::const_descriptors. r=njn
MozReview-Commit-ID: KkUqoqEP47R

--HG--
extra : rebase_source : d669720520688637129093c27d18d64c65fd6d01
2018-02-27 15:32:04 -08:00
Andrew McCreight 7566c49fc5 Bug 1442363, part 5 - Constify XPTInterfaceDescriptor::method_descriptors. r=njn
Also, change some reinterpret casts to static casts, because there was
no need for them to be reinterpret.

MozReview-Commit-ID: EtPmwxboaq9

--HG--
extra : rebase_source : 59fe2d74c8567af4d8000cb230e8dc0f8bf728ff
2018-02-27 15:28:16 -08:00
Andrew McCreight 5ba4e8d4e6 Bug 1442363, part 4 - Constify XPTInterfaceDirectoryEntry::interface_descriptor. r=njn
MozReview-Commit-ID: E4DFA4dodK3

--HG--
extra : rebase_source : 039ee0b94f33a8de7f982e97d941a3d5f0a9aaed
2018-02-27 15:23:03 -08:00
Andrew McCreight 4af3dcf674 Bug 1442363, part 3 - Constify the strings in xpt_struct.h. r=njn
MozReview-Commit-ID: LBZze0U1jvW

--HG--
extra : rebase_source : 63b892cad57a5f19aba5621d2f11ac6db27cfeb6
2018-02-27 15:15:05 -08:00
Andrew McCreight b58cc63048 Bug 1442363, part 2 - Constify XPTHeader::interface_directory. r=njn
MozReview-Commit-ID: 3oLZFtXBsV8

--HG--
extra : rebase_source : 3a8ac38d09709e0aedaa4ddbf876f073ae9131c9
2018-02-27 15:08:42 -08:00
Andrew McCreight b458c8cf4e Bug 1442363, part 1 - Constify RegisterXPTHeader(). r=njn
Once the XPT data is statically allocated, all of the pointers in
xpt_struct.h have to be made const, as well as the XPTHeader
itself. The existing consumers mostly assume things are const already,
so the bulk of the work is tweaking the deserialization code in
xpt_struct.cpp so that the final result is const. I've broken up these
changes into a set of patches.

This patch also gets rid of xptiTypelibGuts::GetHeader(), which is
never called.

MozReview-Commit-ID: FJpmNjY87SN

--HG--
extra : rebase_source : b28456625e4c80023bd350c67163085011bc7cee
2018-02-27 14:58:03 -08:00
Peter Van der Beken 5ad9618d7c Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 4: Convert MessageManager to WebIDL. r=bz.
--HG--
extra : rebase_source : aa7aa3a5f720b5a4f6ff88e41eb9e80ffb9092cd
2017-06-20 11:09:50 +02:00
Gijs Kruitbosch 8f261eb09b Bug 1439519 - fetch plugin information lazily in TelemetryEnvironment.jsm, r=chutten,florian
MozReview-Commit-ID: 9eUwq3lMdZD

--HG--
extra : rebase_source : 58963ad2dfe4450c66e920441b381bd8d073f667
2018-03-06 16:31:24 +00:00
Bogdan Tara 2680808115 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-07 12:07:19 +02:00
Bogdan Tara e3282a1fb3 Merge inbound to mozilla-central. a=merge 2018-03-07 12:03:48 +02:00
Andrew McCreight 69202ec24b Bug 1443230 - Keep hashtable of interface indexes in xpt.py. r=glandium
A lot of time is spent during the final big XPT link determining what
the index is for each interface.  Changing this to use a map
eliminates about 2/3 of the running time. This patch reduces the run
time to a little under a second on my local OSX machine.

MozReview-Commit-ID: CH4OYXtT19q

--HG--
extra : rebase_source : 6d6f755c57dcbf20112768583948f851b8bf34bf
2018-03-05 20:56:26 +00:00
Jim Chen 5c88095f46 Bug 1442255 - 7. Switch the order of fd arguments; r=jchen
Switch the order of the IPC FD argument and the crash FD argument in
e10s calls, because the IPC FD is the primary FD, and the crash FD
should be grouped with the crash annotation FD.

MozReview-Commit-ID: CAVyYAIIBPm

--HG--
extra : rebase_source : 596f590443f727d1a79582202eed122f79ae85cf
2018-03-06 13:52:50 -05:00
Nicholas Nethercote ba2ac04f54 Bug 1442433 - Make nsAtom::mString even more const. r=froydnj
MozReview-Commit-ID: ANm2nrnO4Lb

--HG--
extra : rebase_source : 444f72316f047004cddfc2eef947b122db1cb87d
2018-03-07 11:59:01 +11:00
Nicholas Nethercote 9bc7f17b9e Bug 1442433 - Make nsAtom::mString more const. r=froydnj
The patch also uses GetStringBuffer() in a couple of appropriate places.

MozReview-Commit-ID: JufCUgmO8JL

--HG--
extra : rebase_source : ecd3f17b5560b19622c86759d605fa122d70e48a
2018-03-07 11:57:54 +11:00
Nicholas Nethercote f39f6d1228 Bug 1442433 - Make some nsAtom fields `const`. r=froydnj
Also remove the unused SetKind() method.

MozReview-Commit-ID: CIh6BmN7OLI

--HG--
extra : rebase_source : 149b9e9ef1180e074b13fd5812ea8dbf2f907bb4
2018-03-05 13:54:06 +11:00
Nicholas Nethercote aa19ca1709 Bug 1442433 - Remove the refcount from static atoms. r=froydnj
The refcount is only used for dynamic atoms.

On 64-bit, this reduces sizeof(nsStaticAtom) from 24 bytes to 16 bytes, and the
on-heap size from 32 bytes to 16 bytes. This saves 42 KiB per process.

On 32-bit, this reduces sizeof(nsStaticAtom) from 16 bytes to 12 bytes, but the
on-heap size stays at 16 bytes, so memory usage is unchanged.

MozReview-Commit-ID: 7d9H7MRHN9a

--HG--
extra : rebase_source : d3eafb3aaf44a592afd6c89cd0519d043056e65a
2018-03-05 13:54:06 +11:00
Jeff Walden 8622941e2a Bug 375259 - The directory service shouldn't return an uninitialized (safely) nsILocalFile for the "Drivs" key. r=bsmedberg 11 years ago
--HG--
extra : rebase_source : efbcadc2e034bad91f1525d0c12ca9f81dedaf33
2018-03-05 13:02:25 -08:00
Kannan Vijayan 627eb6ae9a Bug 1411415 - r=bz r=fitzgen 2018-03-05 19:27:02 -05:00
Cosmin Sabou ed1b2a8736 Backed out 4 changesets (bug 1437167) for build bustages on nsUpdateDriver.cpp and WindowsMessageLoop.cpp on a CLOSED TREE.
Backed out changeset b98740e7c639 (bug 1437167)
Backed out changeset 4476e8f51fa6 (bug 1437167)
Backed out changeset c79dc40faa41 (bug 1437167)
Backed out changeset b608d2dcbb86 (bug 1437167)
2018-03-06 00:09:46 +02:00
Nika Layzell 262be91f75 Bug 1437167 - Part 1: Stop using PRIntervalTime as the argument to CondVar::Wait and Monitor::Wait, r=mstange, r=froydnj
MozReview-Commit-ID: BN18I8Q6c7S
2018-03-05 16:00:00 -05:00
Olli Pettay 2439836b37 Bug 1193394 - Part 1: Microtasks and promises scheduling. r=bevis 2017-11-17 11:01:27 +08:00
Andrew McCreight e1a6f8c267 Bug 1442295 - Add two missing includes in XPCOM. r=erahm
nsTArray.h needs mozalloc.h for moz_xmalloc

nsTStringRepr.h needs fallible.h for fallible

MozReview-Commit-ID: 9jz2pGPXMHk
2018-03-01 11:03:00 +02:00
Andrew McCreight 08c0b62676 Bug 1442403 - Stop building xpcom/typelib/xpt/ with MOZ_NO_MOZALLOC. r=glandium
This was added in bug 1081000 to support linking XPT tests, but those
tests were removed in bug 1248534, part 1, so this shouldn't be needed
any more.

MozReview-Commit-ID: I1V2XVBaMG7

--HG--
extra : rebase_source : 8e772da227782b5304b553c0ba85f96f708bea99
2018-03-01 12:59:26 -08:00
Miko Mynttinen 7ca020bee6 Bug 1441779 - Part 2: Add nsTArray::RemoveLastElement() and nsTArray::PopLastElement() r=froydnj
MozReview-Commit-ID: ENgK1CTS6Fq

--HG--
extra : rebase_source : 3468ba67dd8b45119f37a8c96cc34964f9155a40
2018-02-28 10:32:10 +01:00
Tiberius Oros 61d400da1c Merge inbound to mozilla-central. a=merge 2018-03-01 19:29:00 +02:00
Csoregi Natalia 1fd0486e23 Backed out 7 changesets (bug 1193394) for browser-chrome failures on browser_ext_popup_background.js. CLOSED TREE
Backed out changeset 9683f24ff8ec (bug 1193394)
Backed out changeset 0e7140a7c841 (bug 1193394)
Backed out changeset a0e26f6b2784 (bug 1193394)
Backed out changeset 29e1fceaf48d (bug 1193394)
Backed out changeset b8632bbbd273 (bug 1193394)
Backed out changeset a54ef2d8f896 (bug 1193394)
Backed out changeset 55c94c05c57f (bug 1193394)
2018-03-01 16:29:02 +02:00
Sebastian Hengst 6098a3cc4d merge mozilla-central to mozilla-inbound. CLOSED TREE 2018-03-01 12:29:42 +02:00
Sebastian Hengst 3a10644021 Backed out 6 changesets (bug 888600) for beta simulation failures: build bustage on Linux and Windows opt (bug 1442036) and devtools failure browser_net_view-source-debugger.js (bug 1441961). a=backout
Backed out changeset 83c87140dc3d (bug 888600)
Backed out changeset 2efb9b1753f6 (bug 888600)
Backed out changeset af5303781961 (bug 888600)
Backed out changeset 79ef59047e63 (bug 888600)
Backed out changeset 30d568d628dd (bug 888600)
Backed out changeset c7bd4c6c9741 (bug 888600)

--HG--
extra : histedit_source : 791b22f6770f4fead2f909478a93d65d85829fe0%2Cbb387309e90f53e1dde45dcf8cf4ebedcc6e5c5e
2018-03-01 11:51:09 +02:00
Florian Quèze f3ee8dd20b Bug 1433175 - more aggressive scripted patch to replace remaining Components.classes, Components.interfaces, Components.utils and Components.results uses with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:35 +01:00
Florian Quèze c714053d73 Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Sebastian Hengst 769222fadf merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : browser/base/content/tabbrowser.xml => browser/base/content/tabbrowser.js
2018-02-28 12:54:12 +02:00
Tom Ritter a7cd53b826 Bug 1441558 Do not compile the Poison IO Interposer on MinGW r=froydnj
MozReview-Commit-ID: DNkqdZNuUfK

--HG--
extra : rebase_source : b504544203fff5ab82dcc752a719772399ec6e49
2018-02-20 13:40:24 -06:00
Sebastian Hengst 9b6b3d7b3b merge mozilla-central to autoland 2018-03-01 12:27:56 +02:00
Nicholas Nethercote 50976e53e0 Bug 1441714 - Respect the 80 line char style rule better in nsAtomTable.cpp. r=froydnj
This mostly affects comments; some are too long, some could be longer.

MozReview-Commit-ID: HprR0sIDZwU
2018-02-28 10:57:18 +11:00
Nicholas Nethercote e340c5594b Bug 1441714 - Remove two unused AtomTableKey consructors. r=froydnj
MozReview-Commit-ID: FSsdDYxQHTW
2018-02-28 10:57:02 +11:00
Nicholas Nethercote f76d17db0f Bug 529808 - Remove the static atom table. r=froydnj
Various atom-related things have improved recently.

- The main atom table is now threadsafe (bug 1275755) and so can be accessed on
  any thread. It has also been split into pieces (bug 1440824), which greatly
  reduces lock contention.

- A cache has been added to the HTML5 parser (bug 1352874) that removes the
  need for most of the full table lookups.

As a result, there is no point having a separate static atom table. This patch
removes it.

MozReview-Commit-ID: 8ou1BrnPAwd

--HG--
extra : rebase_source : 0c6ab073b1a20b703705582d28731a68456741e1
2018-02-28 07:34:12 +11:00
Andrew McCreight d3c4d54b03 Bug 1441677, part 6 - Get rid of macros for nsXPTParamInfo flags. r=njn
Also, get rid of a gratuitous use of a trinary operator in
nsXPCWrappedJSClass::CallMethod, clean up the style a little, and mark
an unimplemented ctor as deleted.

MozReview-Commit-ID: Kp64sMxyRWc

--HG--
extra : rebase_source : e6082003d3759234cd5f4630b5560b14930c0a88
2018-02-27 13:36:34 -08:00
Andrew McCreight ae2f96e797 Bug 1441677, part 5 - Demacroize nsXPTMethodInfo masks. r=njn
Also, clean up the style a little and mark an unimplemented ctor as
deleted.

MozReview-Commit-ID: JqmveE6qWFa

--HG--
extra : rebase_source : 62c8249de1f52686b4dd5d2a043261d2618d7433
2018-02-27 09:49:58 -08:00
Andrew McCreight 4f8bbff9e8 Bug 1441677, part 4 - Use functions to check XPTInterfaceDescriptor::flags. r=njn
MozReview-Commit-ID: 6qcgWbetgSv

--HG--
extra : rebase_source : c0ebec9533bdcf81a263990b882595f1326e54da
2018-02-27 09:03:13 -08:00
Andrew McCreight 1f1a2fe0ba Bug 1441677, part 3 - Use a function to get the tag of an XPT type. r=njn
MozReview-Commit-ID: Bo5ZR8c9S9D

--HG--
extra : rebase_source : 96c8f4295e358c8fa06736de4cb58376c3be1d10
2018-02-27 09:42:27 -08:00
Andrew McCreight a0cddfbd87 Bug 1441677, part 2 - Move things only used in xpt_struct.cpp there. r=njn
Also, remove a few unused things.

Removing the include of xpt_arena.h from xpt_struct.h required that I
added it to two other files.

MozReview-Commit-ID: 4bMDRYt0Zxc

--HG--
extra : rebase_source : 91548b62dbf4b92bf918d196067e6fabb9a72302
2018-02-27 08:44:28 -08:00
Andrew McCreight e5a771106e Bug 1441677, part 1 - Fix spacing in xpt_struct.h. r=njn
This makes the file 2-space indented, gets rid of padding between
types and members, moves the * to the left, fixes the mode line,
license and include guards, and fixes up the first line of some of the
multiline comments. I also reordered the XPT_ANN macros to be more
consistent.

I left the padding alone for the enum-like bit flag values, as I think
it makes sense to line those up.

MozReview-Commit-ID: 877aP5eGIFm

--HG--
extra : rebase_source : 6d47ce05b47248c285597454af528ca1ae2cc830
2018-02-27 08:32:57 -08:00
Andreea Pavel d805787970 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-02-28 00:25:43 +02:00
Peter Van der Beken 6cf0e1c871 Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
--HG--
extra : rebase_source : f6f781b04923f67f60718706a78b3c4de15eca94
2018-02-22 20:22:29 +01:00
Andrew McCreight eda8c9ed75 Bug 1441255, part 2 - Don't make an extra copy of the name string in xptiInterfaceEntry. r=njn
MozReview-Commit-ID: DBOcq2ZNqKu

--HG--
extra : rebase_source : d11137e2ec6a429cd9223a722fac36dc9deeac5a
2018-02-26 11:10:16 -08:00
Andrew McCreight 2c61ab2952 Bug 1441255, part 1 - Fix argument names for xptiInterfaceEntry creation. r=njn
MozReview-Commit-ID: 27n5GsGWnPl

--HG--
extra : rebase_source : 27613c96cc042bb0335fc8a51602ec6071f57b26
2018-02-26 10:51:45 -08:00
arthur.iakab 9bffb6aa72 Merge inbound to mozilla-central. a=merge 2018-02-27 11:58:55 +02:00
Bobby Holley b54cbd7921 Bug 1440824 - Enable multiple hashtables for atoms. r=froydnj
MozReview-Commit-ID: Hj8gKPap0cR
2018-02-26 18:44:39 -08:00
Bobby Holley 62b82589a5 Bug 1440824 - Overhaul the atom infrastructure to support multiple subtables. r=froydnj
MozReview-Commit-ID: E1bcchzuMOu
2018-02-26 18:44:38 -08:00
Bobby Holley 1a54fdfd7a Bug 1440824 - Move some code around. r=froydnj
MozReview-Commit-ID: 4uMktcaYwWW
2018-02-26 18:44:38 -08:00
Eric Rahm e8e3e9a5e7 Bug 1440808 - Cleanup error handling in nsXULPrototypeDocument::Read. r=mccr8
This converts from the odd `tmp` for `rv` pattern and just returns immediately
on failure instead.

--HG--
extra : rebase_source : 1ad5882c1411e9e10f99201b6233ed87c71a20cc
2018-02-22 11:33:20 -08:00
Masatoshi Kimura 5588ef80d1 Bug 1440630 - Reduce nsIFile::ResolveAndStat() calls. r=froydnj
--HG--
extra : source : 3dc9a957980918d125d7d3872c4f86bea31da437
extra : amend_source : 1dc4c1b50fe94370abab6d2ece930803fc02bcb5
2018-02-23 21:45:41 +09:00
Adrian Wielgosik de1e0827c0 Bug 1440441 - Remove nsIDOMFormData. r=kmag,qdot
MozReview-Commit-ID: 9Y8YQBqbSnM

--HG--
extra : rebase_source : 205a3341771d99cb252516f0ffffd107e1c82e5d
2018-02-22 20:42:12 +01:00
Chris Peterson 6955347be6 Bug 1330529 - Part 4: Fold nsSetDllDirectory.h into nsWindowsMain.cpp. r=jimm
nsSetDllDirectory.h consists of just one function definition, SanitizeEnvironmentVariables, which is now only called from nsWindowsMain.cpp. nsSetDllDirectory.h used to define its namesake NS_SetDllDirectory, but the function was removed in bug 699247.

Also remove some #includes that are no longer necessary.

MozReview-Commit-ID: E8OsXycdfO8

--HG--
extra : rebase_source : d9e63a50a782ab1fb0fde24646a777b882860fb9
extra : histedit_source : 63c41846db2bb6a1def03c343e6f336373f1fba6
2018-02-13 00:52:44 -08:00
Andrew McCreight ee205d4ac0 Bug 1441217 - Use nsXPTMethodInfo instead of XPTMethodDescriptor in XPConnect. r=njn
nsXPTMethodInfo is a nicer structure to use, and this paves the way
for making the two types different, which will be needed if I make
XPTMethodDescriptor statically allocated.

Also, use the higher level accessor methods.

MozReview-Commit-ID: JbRdLU5Wwyt

--HG--
extra : rebase_source : 48f6c4e98e43c75006ceeb02bd727b59d3726681
2018-02-26 08:19:02 -08:00
Andrew McCreight 2820521bfb Bug 1441205 - XPTMethodDescriptor::result is unused. r=njn
This sounds weird, but either:
1) A method is notxpcom, so it can't be called from script and the XPT
information is unused.
2) A method is not notxpcom, in which case the result type is nsresult.

MozReview-Commit-ID: a7SRJn8PlP

--HG--
extra : rebase_source : 457051a47dd3f1f2f49b5f11ef3e5138f9d814e1
2018-02-26 08:49:19 -08:00
Sylvestre Ledru b7b13979a7 Bug 1370794 - Use bool instead of integer being casted to bool r=Ehsan
MozReview-Commit-ID: lUVFeU0Y0p

--HG--
extra : rebase_source : c2dac9c0e0345111f68aea2b9e359ad94086430d
2018-02-07 15:15:28 +01:00
Olli Pettay b7726493fb Bug 1193394 - Part 1: Microtasks and promises scheduling. r=bevis 2017-11-17 11:01:27 +08:00
Nicholas Nethercote 7ac2324679 Bug 1441430 - Provide more detail about atoms memory usage. r=froydnj
The old output had a single value: "atoms-table". The new output looks like
this:

> 649,904 B (00.39%) -- atoms
> ├──350,256 B (00.21%) -- dynamic
> │  ├──235,056 B (00.14%) ── unshared-buffers
> │  └──115,200 B (00.07%) ── atom-objects
> ├──212,992 B (00.13%) ── table
> └───86,656 B (00.05%) ── static/atom-objects

MozReview-Commit-ID: 924vUmxHAlh

--HG--
extra : rebase_source : 6c977546a69eeee62ebc87e335982e8278217484
2018-02-28 11:05:07 +11:00
Eric Rahm 694ff7ca49 Bug 1432323 - Refactor operator new in nsArrayEnumerator. r=froydnj
--HG--
extra : rebase_source : 9df6db9f17e14eff2f79cd29599b03619068cef3
2018-02-22 12:38:15 -08:00
Eugen Sawin ce66babc57 Bug 1441964 - [1.0] Return URI-load delegation success state instead of throwing. r=snorp 2018-02-28 21:02:35 +01:00
Gurzau Raul 185d1fcf42 Backed out 7 changesets (bug 1442255) for failing c1 tests on mochitest/test_browserElement_inproc_PurgeHistory.html
Backed out changeset 208c4c42f641 (bug 1442255)
Backed out changeset 6a794e14fceb (bug 1442255)
Backed out changeset 62d1c57c37b4 (bug 1442255)
Backed out changeset 5d0f72867f53 (bug 1442255)
Backed out changeset c3305648ad30 (bug 1442255)
Backed out changeset 08f906f3a0c8 (bug 1442255)
Backed out changeset d7a43e59a1b4 (bug 1442255)
2018-03-06 17:08:57 +02:00
Jim Chen 9b7b3f4565 Bug 1442255 - 7. Switch the order of fd arguments; r=jchen
Switch the order of the IPC FD argument and the crash FD argument in
e10s calls, because the IPC FD is the primary FD, and the crash FD
should be grouped with the crash annotation FD.

MozReview-Commit-ID: CAVyYAIIBPm

--HG--
extra : rebase_source : 02bf7337fa9a6d1194809c224acb4a2690fd87a3
2018-03-06 00:04:56 -05:00
Francois Marier b401105973 Bug 1439455 - Display error names instead of codes in about:url-classifier. r=gcp
This also changes a few MOZ_LOG() messages to use the error name
instead of the raw numerical nsresult value.

MozReview-Commit-ID: Jcngd0S9j2z

--HG--
extra : rebase_source : f6e974569d8845211e0b25dabef2c41dda2ca1b6
2018-02-22 17:37:53 -08:00
Jason Orendorff e7c94fff59 Bug 1439063 - Part 1: Move several public headers from js/src to js/public. r=jandem.
js/src/jsalloc.h -> js/public/AllocPolicy.h
jsalloc.cpp -> js/src/util/AllocPolicy.cpp
jsbytecode.h -> merge into js/public/TypeDecls.h
jsprf.h -> js/public/Printf.h
jsprf.cpp -> js/src/util/Printf.cpp
jsprototypes.h -> public/ProtoKey.h
jswrapper.h -> js/Wrapper.h

--HG--
rename : js/src/jsalloc.h => js/public/AllocPolicy.h
rename : js/src/jsprf.h => js/public/Printf.h
rename : js/src/jsprototypes.h => js/public/ProtoKey.h
rename : js/src/jswrapper.h => js/public/Wrapper.h
rename : js/src/jsalloc.cpp => js/src/util/AllocPolicy.cpp
rename : js/src/jsprf.cpp => js/src/util/Printf.cpp
extra : rebase_source : 98b16d94c469202eab0303a8da844f1d0b6aa809
extra : amend_source : e0b16c1077226d6fe240f4d7096537f93b43f2b8
extra : histedit_source : d94e0ba7904a7d66742c7fac43f638aaec4fa4e5
2018-02-21 10:30:19 -06:00
Paul Bone 1d1091d2ac Bug 1440205 - Print the nsStringBuffer bad canary value in hex r=jonco
--HG--
extra : rebase_source : b6c7dd75c295e061c870f6e318371ff0fb90558d
2018-02-22 15:32:42 +11:00
Tim Taubert ea6e54236f Bug 1433015 - Turn AllocReplacement gtests into death tests r=froydnj 2018-02-22 10:27:42 +01:00
Dorel Luca 9b2f91981c Backed out 6 changesets (bug 888600) for Valgrind and build bustge on a CLOSED TREE
Backed out changeset 7c8317f4ad48 (bug 888600)
Backed out changeset 5b990735f1ad (bug 888600)
Backed out changeset 9eafe225b804 (bug 888600)
Backed out changeset 16af80d6cd93 (bug 888600)
Backed out changeset a109987af625 (bug 888600)
Backed out changeset 0949dba396ad (bug 888600)
2018-02-22 13:56:43 +02:00
Dorel Luca ce3c40d6ba Merge mozilla-central to mozilla-inboud
--HG--
rename : security/certverifier/TrustOverride-AppleGoogleData.inc => security/certverifier/TrustOverride-AppleGoogleDigiCertData.inc
rename : security/manager/tools/crtshToDNStruct/crtshToDNStruct.py => security/manager/tools/crtshToIdentifyingStruct/crtshToIdentifyingStruct.py
rename : security/manager/tools/crtshToDNStruct/requirements.txt => security/manager/tools/crtshToIdentifyingStruct/requirements.txt
extra : rebase_source : 6bcbd2a80706f4f4b36bbb1e53c260ea495babf8
2018-02-22 12:10:42 +02:00
Adrian Wielgosik ed00cb8c4e Bug 1440039 - Remove nsIDOMCanvasRenderingContext2D. r=qdot
MozReview-Commit-ID: GY3DdHAfQK2

--HG--
extra : rebase_source : 1fe021831984cb64cedd8c7eba486a0d29f7d66a
2018-02-21 20:49:07 +01:00
Masatoshi Kimura dc4e17ea95 Bug 1428258 - Disallow nsIFile::GetNativePath on Windows. r=froydnj
MozReview-Commit-ID: JDryRqHcVw2

--HG--
extra : rebase_source : 228d0436c372d76d066affe9657a57bd4cda4dca
extra : source : 1dff63e6a2bb6b3190ded0c8fa748545f5d9f116
2018-01-11 22:38:33 +09:00
Andrew McCreight 30a307235f Bug 1440072 - Eliminate unused cases for XPTConstValue. r=njn
xpt.py only generates constants for a couple of the cases that
XPTConstValue supports. Eliminating the unused cases reduces the size
of this data structure from 64-bit to 32-bit, which reduces the memory
usage of xpti-working set by about 0.02MB.

MozReview-Commit-ID: 1yQkK28fPkR

--HG--
extra : rebase_source : 9d5ce81cfa213cba203ee9c72d2f7dcc8652bd31
2018-02-21 10:36:10 -08:00
Francois Marier 79391b9eea Bug 1439468 - Improve error reporting in Safe Browsing protocol parser. r=gcp
MozReview-Commit-ID: JeyCZSbdZBd

--HG--
extra : rebase_source : 84007af04f9dea05503eb44203e40079e6c7252d
2018-02-20 13:54:30 -08:00
Gurzau Raul 13030d55c1 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-21 12:06:01 +02:00
Gurzau Raul 082f8e6d89 Merge inbound to mozilla-central. a=merge 2018-02-21 12:01:33 +02:00
Jeff Walden 5472050225 Bug 1438750 - Remove mfbt/double-conversion.h, and change existing users to instead do #include "double-conversion/double-conversion.h" themselves. r=froydnj on a CLOSED TREE
--HG--
extra : amend_source : 72f066d9c75ae5ccd4d1e929896a2b12aa0ddc8c
2018-02-21 10:15:43 +02:00
Gurzau Raul 14b89a5ae5 Backed out changeset 66c1c1596bea (bug 1438750) for assertion failure at TestFloatingPoint.cpp on Windows platform 2018-02-21 08:29:50 +02:00
Andrew McCreight 7e85729b56 Bug 1439770, part 2 - Inline constant argument to InterfaceDescriptorAddTypes. r=njn
MozReview-Commit-ID: 4mCgB5NFife

--HG--
extra : rebase_source : 1ad31a68150c35dd3731a42beeb7858c86d08da8
2018-02-20 13:38:38 -08:00
Andrew McCreight 70a2273632 Bug 1439770, part 1 - Fix integer overflow in InterfaceDescriptorAddTypes. r=njn
num_additional_types is a uint8_t, so its max value is 255. 1 + 255 is
not greater than 256, so the check will pass, but then
num_additional_types += 1 will overflow in the next line.

What I think happened is that bug 1249174 part 6 introduced a bounds
check on an index (which is ok), but then part 8 repurposed this as a
bounds check on the length.

I noticed this because while writing the next patch I ended up with
  if (id->num_additional_types > 255)
and then the compiler warned that the check would never fail.

MozReview-Commit-ID: KqiaOyBjj7v

--HG--
extra : rebase_source : 47b20ad2f5e39b05f467cc5b10041070db7fa774
2018-02-20 14:44:47 -08:00
Andrew McCreight a106e111fe Bug 1438700, part 2 - Deduplicate XPT strings. r=glandium
Various strings, like nsISupports, appear many times in XPT data. This
patch adds a cache so we don't write the same string multiple times.

MozReview-Commit-ID: 6buBrXwHqQz

--HG--
extra : rebase_source : 54dea83a9134710c5600828ab68ef3f935f46afd
2018-02-15 15:41:05 -08:00
Andrew McCreight b553286f4a Bug 1438700, part 1 - Do writing of XPT names to a file via a helper class. r=glandium
The name of this class is wrong, but my next patch will make it
actually cache. This patch should not change the behavior.

MozReview-Commit-ID: CMf6Chkeex1

--HG--
extra : rebase_source : a6d5688124b75aef8ed35f811003cf49b8b4e136
2018-02-15 15:28:43 -08:00
Jeff Walden 2b6c4bedad Bug 1438750 - Remove mfbt/double-conversion.h, and change existing users to instead do #include "double-conversion/double-conversion.h" themselves. r=froydnj
--HG--
extra : rebase_source : 76ecf4ab0caf7a5367636a866512931d3fd9b962
2018-02-15 21:02:53 -08:00
Adrian Wielgosik d729e5e045 Bug 1438956 - Remove nsIDOMTimeRanges. r=bz
MozReview-Commit-ID: DAgQ0OkSxkq

--HG--
extra : rebase_source : e995b4d76186032fc048bc7b63f4e1e2aee046b4
2018-02-16 19:34:28 +01:00
Nathan Froyd 65cbfc8247 Bug 1439355 - use static_assert instead of NS_ASSERTION in nsBinaryStream.cpp; r=mystor
The intention is a little more clear with static_assert, as well as
failing sooner.  (The code is probably the same, since the compiler will
optimize out the checks as dead code, but meh.)
2018-02-20 16:34:42 -05:00
Nathan Froyd af81af55cb Bug 1439593 - micro-optimize read/write of nsIID to binary streams; r=mystor
Reading nsIIDs to binary streams requires 1 + 1 + 1 + 8 calls to Read
for the underlying stream.  With the assumption that reading to the
underlying stream for a binary stream is relatively expensive, we should
be able to do better by reading the byte array in an nsIID in a single
Read() request.  The same logic applies to writing nsIIDs.  Performing a
single operation here should not change the actual bytes read or
written.  Performing a single operation also has the virtue of
performing fewer error checks and whatnot.
2018-02-20 16:34:42 -05:00
Chris Peterson d09123f248 Bug 1436263 - Part 1: Replace `final override` virtual function specifiers with just `final`. r=froydnj
MozReview-Commit-ID: DE5HkIhsZ6D

--HG--
extra : rebase_source : 94831c1e13a840dd2ea0600f64bcf70c2bf938d9
extra : source : cf9283bf1b0bca3a6311c98e227329d451f80ecb
2018-02-05 22:46:57 -08:00
Peter Van der Beken ab910ec03f Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
--HG--
extra : rebase_source : 05d1b150ffa84931ace6dbd66385d1d014a03afe
2017-11-23 16:27:27 +01:00
Thomas Wisniewski 7c05457e0d Bug 792808 - Purge nsIXMLHttpRequest, nsIXMLHttpRequestUpload, nsIXMLHttpRequestEventTarget, nsIXHRSendable XPCOM interfaces; r=baku
MozReview-Commit-ID: 8yzCXSeyO85

--HG--
extra : rebase_source : 80f2a96df1e250ad646a20271b7d3dbebf7774e4
2017-11-19 17:11:41 -05:00
Andrew McCreight ae0559d5a5 Bug 1438707, part 6 - Remove nsXPTConstant. r=njn
It is unused.

MozReview-Commit-ID: GXPPTmPUrlj

--HG--
extra : rebase_source : 69f97ceeb0c9d4fa633153c8f882802620f416be
2018-02-15 09:54:11 -08:00
Andrew McCreight bf517283d2 Bug 1438707, part 5 - Replace XPT_ASSERT with MOZ_ASSERT. r=njn
MozReview-Commit-ID: IxLyz5pNYZ3

--HG--
extra : rebase_source : ba49cb5c456dc7a491960c23aa15dac92771f812
2018-02-14 13:09:49 -08:00
Andrew McCreight 433ebe2003 Bug 1438707, part 4 - De-macroize more XPT stuff. r=njn
MozReview-Commit-ID: 7dO4lgC614t

--HG--
extra : rebase_source : 335a807b06048e776969203776c0d172f3f0051b
2018-02-14 13:23:15 -08:00
Andrew McCreight c15a70af69 Bug 1438707, part 3 - De-macroize CURS_POINT. r=njn
MozReview-Commit-ID: CVBGPRVSF7s

--HG--
extra : rebase_source : 74cbfe8d1925caf6f24f410caaebe719624fa41a
2018-02-14 13:18:12 -08:00
Andrew McCreight 598d1fd20b Bug 1438707, part 2 - Rename CHECK_COUNT to CheckCount. r=njn
This isn't a macro, so rename it.

MozReview-Commit-ID: Ldceoxe8o0N

--HG--
extra : rebase_source : 6df42c8191cb6040779a726ffe30ed60acfb2c26
2018-02-14 13:10:23 -08:00
Andrew McCreight a459d496d7 Bug 1438707, part 1 - C++ize the XPT modelines. r=njn
These are C++ files now. This makes it so the highlighting works if
you use classes, etc.

Also, add Vim modelines.

MozReview-Commit-ID: 6fIkiTDnemt

--HG--
extra : rebase_source : 6232f6bbcf7e19763bbb6ac2cc03290eddb5e608
2018-02-15 15:58:22 -08:00