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

587611 Коммитов

Автор SHA1 Сообщение Дата
Boris Zbarsky a8a190f4e1 Bug 1447889 part 14. Remove mention of nsIDOMRange from layout/. r=mystor
MozReview-Commit-ID: JWJWGzY45ac
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
Kris Maglione fb2de139a7 Bug 1446686: Follow-up: Fix more Windows-only xpcshell failures. r=bustage
MozReview-Commit-ID: 6IfIggPRCHq

--HG--
extra : rebase_source : 293780adc1e5a1ffa671de273bf7fe53212c5cb6
2018-03-26 21:22:19 -07:00
Boris Zbarsky 455111a348 Bug 1389585. Stop giving XPCJSID DOM_OBJECT classinfo. r=kmag
These are not supposed to be exposed to content.

MozReview-Commit-ID: 3odHUn4ZlG
2018-03-22 17:08:44 -04:00
Jeff Gilbert e4e4683663 Bug 1445980 - TexStorage should validate both highest and lowest levels. - r=kvark
MozReview-Commit-ID: 3MtNEAtuadY
2018-03-26 20:37:13 -07:00
Kris Maglione dc54f72213 Bug 1446686: Follow-up: Fix Windows-only xpcshell failures. r=bustage
MozReview-Commit-ID: AIicV2wWcHB

--HG--
extra : rebase_source : 703a87dca8f84df6515c859eaaee6a7ee25c0df5
2018-03-26 19:50:10 -07:00
Nicholas Nethercote 136f284c7d Bug 1436655 - Introduce a mechanism for VarCache prefs to be defined entirely in the binary. r=glandium
Currently VarCache prefs are setup in two parts:

- The vanilla pref part, installed via a data file such as all.js, or via an
  API call.

- The VarCache variable part, setup by an Add*VarCache() call.

Both parts are needed for the pref to actually operate as a proper VarCache
pref. (There are various prefs for which we do one but not the other unless a
certain condition is met.)

This patch introduces a new way of doing things. There is a new file,
modules/libpref/init/StaticPrefList.h, which defines prefs like this:

> VARCACHE_PREF(
>   "layout.accessiblecaret.width",
>   layout_accessiblecaret_width,
>   float, 34.0
> )

This replaces both the existing parts.

The preprocessor is used to generate multiple things from this single
definition:

- A global variable (the VarCache itself).

- A getter for that global variable.

- A call to an init function that unconditionally installs the pref in the
  prefs hash table at startup.

C++ files can include the new StaticPrefs.h file to access the getter.

Rust code cannot use the getter, but can access the global variable directly
via structs.rs. This is similar to how things currently work for Rust code.

Non-VarCache prefs can also be declared in StaticPrefList.h, using PREF instead
of the VARCACHE_PREF.

The new approach has the following advantages.

+ It eliminates the duplication (in all.js and the Add*VarCache() call) of the
  pref name and default value, preventing potential mismatches. (This is a real
  problem in practice!)

+ There is now a single initialization point for these VarCache prefs.
  + This avoids need to find a place to insert the Add*VarCache() calls, which
    are currently spread all over the place.
  + It also eliminates the common pattern whereby these calls are wrapped in a
    execute-once block protected by a static boolean (see bug 1346224).
  + It's no longer possible to have a VarCache pref for which only one of the
    pieces has been setup.

+ It encapsulates the VarCache global variable, so there is no need to declare
  it separately.

+ VarCache reads are done via a getter (e.g. StaticPrefs::foo_bar_baz())
  instead of a raw global variable read.
  + This makes it clearer that you're reading a pref value, and easier to
    search for uses.
  + This prevents accidental writes to the global variable.
  + This prevents accidental mistyping of the pref name.
  + This provides a single chokepoint in the code for such accesses, which make
    adding checking and instrumentation feasible.

+ It subsumes MediaPrefs, and will allow that class to be removed. (gfxPrefs is
  a harder lift, unfortunately.)

+ Once all VarCache prefs are migrated to the new approach, the VarCache
  mechanism will be better encapsulated, with fewer details publicly visible.

+ (Future work) This will allow the pref names to be stored statically, saving
  memory in every process.

The main downside of the new approach is that all of these prefs are in a
single header that is included in quite a few places, so any changes to this
header will cause a fair amount of recompilation.

Another minor downside is that all VarCache prefs are defined and visible from
start-up. For test-only prefs like network.predictor.doing-tests, having them
show in about:config isn't particularly useful.

The patch also moves three network VarCache prefs to the new mechanism as a
basic demonstration. (And note the inconsistencies in the multiple initial
values that were provided for
network.auth.subresource-img-cross-origin-http-auth-allow!) There will be
numerous follow-up bugs to convert the remaining VarCache prefs.

MozReview-Commit-ID: 9ABNpOR16uW
* * *
[mq]: fixup

MozReview-Commit-ID: 6ToT9dQjIAq
2018-03-26 09:39:40 +11:00
Nicholas Nethercote e85bbc21df Bug 1436655 - Tweak assertions in Add*VarCache() functions. r=glandium
This avoids some repetition.

MozReview-Commit-ID: I7aD8JUCCK4
2018-03-23 15:15:20 +11:00
Nicholas Nethercote b5ed6c2349 Bug 1436655 - Tweak the comment at the top of init/all.js. r=glandium
- The first two SYNTAX HINTS are wrong, and citing the syntax is more useful
  than specifying a single example of what isn't allowed.

- The sentence about #ifdefs is wrong. (#ifdefs appear all throughout, and
  prefs are only specified once.)

- I chose a better example file.

MozReview-Commit-ID: JyYFyutqrFD
2018-03-15 14:59:29 +11:00
Nicholas Nethercote 0dfbeba283 Bug 1436655 - Rename pref_SetPref()'s aFromFile argument as aFromInit. r=glandium
Currently all pref initialization is done from file, but soon we will also be
initializing prefs from code compiled into the binary. The new name encompasses
both cases.

MozReview-Commit-ID: 5g0jfjHTvnE

--HG--
extra : rebase_source : 938b33626594992846377c5d1b684b1dbf96cb57
2018-02-14 18:50:53 +11:00
Kris Maglione d47023da3b Bug 1446686: Follow-up: Fix pending permission prompts when prompt is dismissed. r=bustage
MozReview-Commit-ID: 35tW39omECd

--HG--
extra : rebase_source : e0b2a229f1f4a2e4bd452c233469e3fd92f9b3ce
2018-03-26 19:06:00 -07:00
Kris Maglione 7d75136f52 Bug 1448221: Part 3 - Remove startup staging directory scan. r=aswan
MozReview-Commit-ID: JHA1umCQS2D

--HG--
extra : rebase_source : d360aeb165bdac1122ff27b1ea561146e48f16e7
2018-03-26 16:09:52 -07:00
Kris Maglione 99ebf2e65e Bug 1448221: Part 2 - Remove support for non-default legacy themes. r=aswan
MozReview-Commit-ID: 1v0aGG3mv3U

--HG--
extra : rebase_source : 59deb737dbb812037f4a015404bec0af6a19f9c9
2018-03-26 16:19:04 -07:00
Kris Maglione 68918bd958 Bug 1448221: Part 1 - Remove support for operations requiring restart. r=aswan
MozReview-Commit-ID: EJDAAXCpViY

--HG--
extra : rebase_source : 347150eb978f557726f62570beadc3b4d691cd7f
2018-03-26 16:11:28 -07:00
Kris Maglione 9f1e675c80 Bug 1447903: Follow-up: Sort tests in xpcshell manifest. r=me,test-only
MozReview-Commit-ID: 9gGI6r821D9

--HG--
extra : rebase_source : b3be27be10fad47398ab5bce1e7097b7780c4ea8
2018-03-26 17:36:20 -07:00
Kris Maglione 1f7eca8d2d Bug 1447903: Follow-up: Delete unused fixture add-ons. r=me
MozReview-Commit-ID: DPZhQxdxvMy

--HG--
extra : rebase_source : c3ca96814a0b5fc421462bfa2a648e907b733a2e
2018-03-25 19:04:29 -07:00
Kris Maglione 783a6eeabc Bug 1447903: Part 22 - Refactor test_dictionary.js to be less insane. r=aswan
MozReview-Commit-ID: Di3jtklRmne

--HG--
extra : rebase_source : 244368d1027459a5556ff4ba2bfd7f9b8c99e7cf
2018-03-26 16:36:43 -07:00
Kris Maglione 63f6285516 Bug 1447903: Part 21 - Update test_bug455906.js to use only bootstrapped extensions. r=aswan
MozReview-Commit-ID: 33f7WNFP5bT

--HG--
extra : rebase_source : cb753fc249f8ee1c0b92185ce16633e796d37842
2018-03-22 00:12:48 -07:00
Kris Maglione 9bedb88982 Bug 1447903: Part 20b - Update test_update.js to use only bootstrapped add-ons. r=aswan
MozReview-Commit-ID: LhRDm5asmG0

--HG--
extra : rebase_source : 2c7abdaa4478cd7f6b537fd1f21cc09942adf2ba
2018-03-25 18:27:45 -07:00
Kris Maglione 9c7fee8dcf Bug 1447903: Part 20a - Refactor test_update.js to be less insane. r=aswan
MozReview-Commit-ID: 9y7GczOSS3T

--HG--
extra : rebase_source : 72a27f33886d1d5edc1702500f4cd57987d20cb1
2018-03-26 16:41:06 -07:00
Kris Maglione 2d8e943858 Bug 1447903: Part 19b - Update test_blocklistchange.js to use only bootstrapped extensions. r=aswan
MozReview-Commit-ID: LIz2HCv9HvC

--HG--
extra : rebase_source : f6a75ed4a0682d3cc699acef36957e7d076c4c49
2018-03-22 00:05:11 -07:00
Kris Maglione f1de53294c Bug 1447903: Part 19a - Refactor test_blocklistchange.js to be less insane. r=aswan
MozReview-Commit-ID: 5tIGi4XWSeh

--HG--
extra : rebase_source : a5b4645fb439459b8189ba490eab3c31b386892e
2018-03-22 00:03:56 -07:00
Kris Maglione 319a1a316e Bug 1447903: Part 18b - Fold test_bug425657 into test_bug397778.js. r=aswan
MozReview-Commit-ID: LrsRe47g0hy

--HG--
extra : rebase_source : 7355b27871c312ca1fba62185a76b4711b289564
2018-03-21 23:37:59 -07:00
Kris Maglione 37c75f72d8 Bug 1447903: Part 18a - Update test_bug397778.js to use only bootstrapped extensions. r=aswan
MozReview-Commit-ID: 9jMZHQ3R3um

--HG--
extra : rebase_source : f31f092cccf3024e0a95f01ec10a3a41e860be7f
2018-03-21 23:33:09 -07:00
Kris Maglione e86ecd664b Bug 1447903: Part 17 - Update test_bug335238.js to use only bootstrapped extensions. r=aswan
MozReview-Commit-ID: WpgkmPV35X

--HG--
extra : rebase_source : 2c9e98d4ddb2f733b8d07c8b77759e8e3bb6a80f
2018-03-21 23:19:40 -07:00
Kris Maglione 8dbc8fdb3a Bug 1447903: Part 16 - Update test_signed_verify.js to use only bootstrapped extensions. r=aswan
MozReview-Commit-ID: H7vnuGMtNJH

--HG--
extra : rebase_source : 562595b9a35d1dd4e9c003fd8fbed5730ad42f13
2018-03-21 23:09:52 -07:00
Kris Maglione cb8ba2e2b1 Bug 1447903: Part 15 - Remove over-kill bug470377 tests. r=aswan
MozReview-Commit-ID: BZMK5RrZLgi

--HG--
extra : rebase_source : 6759233818540da4db5272f16b1016ebcb788a5e
2018-03-21 23:08:05 -07:00
Kris Maglione 46034afdc5 Bug 1447903: Part 14 - Update test_bug655254.js to use only bootstrapped extensions. r=aswan
MozReview-Commit-ID: 6OPMB9ntlVl

--HG--
extra : rebase_source : 2c03df26d5df24cbbbdd310c24edcec694577322
2018-03-21 23:02:14 -07:00
Kris Maglione d4fe29ece6 Bug 1447903: Part 13 - Update test_syncGUID.js to use only bootstrapped extensions. r=aswan
MozReview-Commit-ID: CEsf2jxbpP3

--HG--
extra : rebase_source : 4b97bb90647c73345203696ad9a1ed4c3dbbbdc2
2018-03-21 22:55:18 -07:00
Kris Maglione eeeb479e3b Bug 1447903: Part 12 - Update test_update.js to use only bootstrapped extensions. r=aswan
MozReview-Commit-ID: GHOPj0pV6Tt

--HG--
extra : rebase_source : 517c743606ce50ef7186e26702f8bdfae38fc193
2018-03-21 22:36:13 -07:00
Kris Maglione 1b849005af Bug 1447903: Part 11c - Fold test_checkcompatibility.js into test_strictcompatibility and update to use bootstrapped extensions. r=aswan
MozReview-Commit-ID: GxL9e9ZW6LX

--HG--
extra : rebase_source : 283eb0ee08bfd03c5fc0e7b9fd02f7ff129dea68
2018-03-26 16:42:54 -07:00
Kris Maglione b3a53c289d Bug 1447903: Part 11b - Update test_strictcompatibility.js to use bootstrapped extensions. r=aswan
MozReview-Commit-ID: 4DES7jiBzmF

--HG--
extra : rebase_source : dd6457134a681d977d7607ac0a3b8818be0f7450
2018-03-21 21:10:20 -07:00
Kris Maglione 899c4e398e Bug 1447903: Part 11a - Refactor test_strictcompatibility.js to be less insane. r=aswan
MozReview-Commit-ID: Ky5kIeR9Vte

--HG--
extra : rebase_source : 350babbaa1ca99dd5f8444f97e2da3fffeadcc79
2018-03-21 21:09:03 -07:00
Kris Maglione 7de30a5a72 Bug 1447903: Part 10b - Update test_cacheflush.js to only test restartless add-ons. r=aswan
MozReview-Commit-ID: ETkjchlZu2k

--HG--
extra : rebase_source : 8c279e17fc4ed6ed2549d4e47d435e8ea74683f3
2018-03-21 20:39:47 -07:00
Kris Maglione 1529052a3e Bug 1447903: Part 10a - Refactor test_cacheflush.js to not be insane. r=aswan
MozReview-Commit-ID: EqMO3gwQILE

--HG--
extra : rebase_source : 287bf6f810122199d58e3acedb058e0cc140da80
2018-03-21 20:38:37 -07:00
Kris Maglione ef1e5e3c1b Bug 1447903: Part 9b - Update test_AddonRepository*.js to use bootstrapped extensions. r=aswan
MozReview-Commit-ID: HyBMSpnRyNt

--HG--
extra : rebase_source : 1bf504ba400b56dbc21fa52770b22980cd28b7cf
2018-03-21 20:25:06 -07:00
Kris Maglione 9fb2e58059 Bug 1447903: Part 9a - Refactor test_AddonRepository*.js to be less insane. r=aswan
MozReview-Commit-ID: 9hPZDy1HOfj

--HG--
extra : rebase_source : d650944e8f6831024a95a5ea1fe9114b6776ae28
2018-03-21 20:23:48 -07:00