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

570761 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 9f3b446bd0 servo: Merge #19317 - style: Move property allowance tests to PropertyId::parse_into (from emilio:property-allowed-in); r=SimonSapin
It's not only more consistent (since we have a proper ParserContext there), but
also fixes a bunch of bugs where Gecko accidentally exposes and allows setting
internal state because of conversions from nsCSSPropertyID to PropertyId.

This adds the extra complexity of caring about aliases for longer, but that's
probably not a big deal in practice, since we have PropertyDeclarationId.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3864f320e8c6ff707d5b11fe46d67c0677cd112a

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 41922d46e6c30b5ec9f5adebceac0978ab35b6e0
2017-11-21 07:47:52 -06:00
Csoregi Natalia 2bccdfa7a0 Backed out 2 changesets (bug 1022925) for failing browser/base/content/test/static/browser_all_files_referenced.js r=backout on a CLOSED TREE
Backed out changeset edbf6d586c9a (bug 1022925)
Backed out changeset 44f9fc2f03bb (bug 1022925)

--HG--
rename : browser/extensions/formautofill/addressmetadata/addressReferences.js => browser/extensions/formautofill/content/addressReferences.js
2017-11-21 17:00:09 +02:00
Munro Mengjue Chiang 7afd6261d5 Bug 1418871 - release RWLock before return if CreateCapabilityMap failed. r=jib
MozReview-Commit-ID: 7wPGf4Dxjq5

--HG--
extra : rebase_source : 1bb561a454f4a26d0d8f40aa1efef7aaab1fe572
2017-11-20 15:04:42 +08:00
Nicholas Nethercote 633725db69 Bug 1418467 - Privatize PrefHashEntry::m{Default,User}Value. r=glandium
MozReview-Commit-ID: 9Fzaf4ifF0N

--HG--
extra : rebase_source : 739933d801bfa7dc4580f5d1bd3c81e5d3f07c2e
2017-11-18 07:40:01 +11:00
Nicholas Nethercote 00d85378fb Bug 1418467 - Add PrefHashEntry::SetValue(). r=glandium
It's a horrible method, but the horribleness was pre-existing. I hope to make
it nicer in a follow-up bug.

MozReview-Commit-ID: 3tMTEeBNVax

--HG--
extra : rebase_source : b21d80ed6468b7c22689df64c1ae1bdda49a2a06
2017-11-18 07:38:24 +11:00
Nicholas Nethercote 48a1e0788f Bug 1418467 - Partly move value getting into PrefHashEntry. r=glandium
MozReview-Commit-ID: 4ouh3XFxPZr

--HG--
extra : rebase_source : d71c1db9a979bbd9fc8b1e0ed385e04b7cdb27cb
2017-11-18 07:28:29 +11:00
Nicholas Nethercote ce0ad5b0c0 Bug 1418467 - Add PrefHashEntry::UserValueToStringForSaving(). r=glandium
This moves part of pref_savePrefs() into PrefHashEntry.

This requires moving StrEscape() higher up to avoid a forward declaration.

Note that clang-format insists on indenting an unrelated comment, I don't know
why.

MozReview-Commit-ID: 7gww3r7t9y4

--HG--
extra : rebase_source : 63f19bb2c556cc806cc6ce43e70ac6c95e6d67bc
2017-11-18 07:27:06 +11:00
Nicholas Nethercote 236478c605 Bug 1418467 - Move pref_ValueChanged() into PrefValue. r=glandium
And invert its sense, renaming as Equals(), because that is easier to think
about.

The patch also reorders some conditions so that
HasDefaultValue()/HasUserValue() is tested before Equals(). This isn't strictly
necessary, but it reads better.

MozReview-Commit-ID: JeGrevDwqKz

--HG--
extra : rebase_source : 575758e11d7e66226fe196f92f2dd355b1444d1d
2017-11-18 07:19:42 +11:00
JW Wang a920cf49b3 Bug 1418219 - merge NotifyDataLength() and NotifyDataStarted(). r=bechen,gerald
MozReview-Commit-ID: g857eQ4YVK

--HG--
extra : rebase_source : 45e71baa300772442bba43f39eacefb571a523c9
extra : intermediate-source : d674e5a676212dae59b12e8173802be40de77bf7
extra : source : 21f73b0a0e59b7575794b317719abe7a39a984e0
2017-11-16 12:05:19 +08:00
Edgar Chen bf0a0f5b38 Bug 1415761 - Catch the exception and rethrow it after invoking custom elements reactions; r=bz
The spec was unclear on how CEReactions interact with thrown exceptions; see https://github.com/whatwg/html/issues/3217.
The spec is now being clarified in https://github.com/whatwg/html/pull/3235.

MozReview-Commit-ID: 521HprTRS7k

--HG--
extra : rebase_source : 107d331203d0d16062fa061569e822d3c6d5f2c9
2017-11-17 17:44:18 +08:00
Gijs Kruitbosch f647b500f2 Bug 1401477 - limit autoscroll popup coordinates so we always display it full-size, instead of having the popup code constrain its size to fit on-screen, r=dao
MozReview-Commit-ID: 6XQNfkkjadC

--HG--
extra : rebase_source : 50795a86671b1b4a19f8141f6fff6d7268d1c9e4
2017-11-13 16:06:33 +00:00
Edouard Oger 0154c0f443 Bug 1416320 - Do a quick sync before going to sleep. r=markh
MozReview-Commit-ID: I36uvEFlEz5

--HG--
extra : rebase_source : 93812879d3ea19042356e51672f7f464e30e9ee5
2017-11-10 14:09:44 -05:00
Masayuki Nakano 806984a06a Bug 1417492 - HTMLEditRules::TryToJoinBlocks() should no do nothing when left list node and right list node are not descendant of each other r=m_kato
We hit assertion which were added by bug 1414713.  That tells us an ancient bug.

There is comment which claims that we should move all list items in the right
list node to left list node if the list nodes should be merged.  However, this
has never been done actually since 2002.  The code tried to move *some* list
items in the right list node to the list list node.  However, retrieving first
list item at an offset almost always failed because the offset variable has
never been initialized.

If we believe the comment, we should move all children of the right list node
to the left list node.  However, until we get a testcase to reach this case,
we should keep current behavior, i.e., do nothing, for unexpected regression.

MozReview-Commit-ID: 1r81q1m44oW

--HG--
extra : rebase_source : fc02520f76440d5900fec0517aa6bcd188e1a14f
2017-11-18 16:12:44 +09:00
Cosmin Sabou 959009f1a8 Backed out changeset 23fbfd83e957 (bug 1416320) for ESlint failure at gecko/services/sync/modules/policies.js:558:71 on a CLOSED TREE 2017-11-21 07:26:51 +02:00
Anthony Ramine b957047e49 servo: Merge #19310 - Update clap to 2.27.1 (from servo:bumps); r=KiChjang
This brings bitflags 0.9.1 to clap, which removes bitflags 0.7.0.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4d5ff42751ed25ebdc3f298d89acb7eaf58572e5

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 36bb86929c90eadca1f49981d472a96bbf2d9c1a
2017-11-20 22:04:35 -06:00
Edouard Oger ab35b46c98 Bug 1416320 - Do a quick sync before going to sleep. r=markh
MozReview-Commit-ID: I36uvEFlEz5

--HG--
extra : rebase_source : 1910ac25084f6a8c37a6d21accf17da974d56493
2017-11-10 14:09:44 -05:00
Jim Chen 676e0a6e5c Bug 1416310 - 5. Remove GeckoLayerClient.java and update generated bindings; r=jchen
Remove GeckoLayerClient.java since it's no longer used, and update
auto-generated JNI bindings. r=me for trivial patch.

MozReview-Commit-ID: CiNPLLkh3VJ

--HG--
extra : rebase_source : 0cddae4f8914dd6f6a0631a7e69701828476f2b8
2017-11-20 17:17:02 -05:00
Jim Chen a845c063bf Bug 1416310 - 4. Don't use GeckoLayerClient in native code; r=rbarker
Use LayerSession::Compositor or NativePanZoomController to call back
into Java from nsWindow.

MozReview-Commit-ID: 9JUKAE5XQK1

--HG--
extra : rebase_source : 9d6861b9d641e6abb6b6f94f5f9c4b3661ff071c
2017-11-20 17:17:02 -05:00
Jim Chen 85057e2e9a Bug 1416310 - 3. Merge GeckoLayerClient into other classes; r=rbarker
Move the GeckoLayerClient JNI callbacks to LayerSession.Compositor. Move
the rest of the viewport code to LayerView. Finally, move the input
event synthesis code to NativePanZoomController.

MozReview-Commit-ID: 1FEAM43KcwL

--HG--
extra : rebase_source : af2ded170a79f13afbb1f690ae466e77c7145ff6
2017-11-20 17:17:02 -05:00
Jim Chen 75a417ee33 Bug 1416310 - 2. Use per-GeckoView event to handle scroll-to-focused-input; r=rbarker
Instead of sending an event through the global EventDispatcher in
GeckoLayerClient, switch to using the per-GeckoView EventDispatcher in
GeckoInputConnection, to handle scroll-to-focused-input-on-resize. This
lets us implement the same functionality for standalone GeckoView.

The patch also fixes some small bugs including unregistering
not-registered events, not scrolling when switching input focus, and
inadvertent scrolling when not showing the keyboard.

MozReview-Commit-ID: 20OZP9dMXtI

--HG--
extra : rebase_source : d9dee0fd8b3d01147b8b2eda5154c380d0f167dd
2017-11-20 17:17:01 -05:00
Jim Chen bbe7b4e34c Bug 1416310 - 1. Remove getMatrixForLayerRectToViewRect; r=rbarker
Patch gets rid of `LayerView.getMatrixForLayerRectToViewRect`, and just
uses `LayerView.getZoomFactor` directly when calculating the matrix in
GeckoInputConnection. This also lets us avoid the `isCompositorReady`
call on a non-UI thread. To get the correct offset, we need the screen
bounds from Gecko, so it's passed to Java as the first element in the
rect array. Using bounds from Gecko lets us avoid having to deal with
things like the dynamic toolbar animator ourselves.

MozReview-Commit-ID: 6I61SZGyQyO

--HG--
extra : rebase_source : d576fb7ef9a42de10b14db662e5c4833f16f6312
2017-11-20 17:17:00 -05:00
Mike Hommey e760c78ddc Bug 1419217 - Change comparison functions for red-black trees. r=njn
- This makes all of them return an enum, quite similar to rust.
- This makes all of them derive from a single implementation of an
  integer comparison.
- This implements that integer comparison in terms of simple operations,
  rather than "smart" computation, which turns out to allow compilers
  to do better optimizations.
  See https://blogs.msdn.microsoft.com/oldnewthing/20171117-00/?p=97416

--HG--
extra : rebase_source : 89710d7954f445d43e6da55aaf171b1f57dce5fc
2017-11-21 09:11:54 +09:00
Manish Goregaokar 8dd74554ea servo: Merge #19274 - Fetch cancellation (from Manishearth:xhr-cancel); r=jdm
This PR implements cancellation for fetch, and uses it for XHR. This means that fetch clients can now send a message to the fetch task asking for the network request to be aborted.

Previously, clients like XHR had abort functionality but would implement it by simply ignoring future messages from the network task; and would not actually cancel the network fetch.

Source-Repo: https://github.com/servo/servo
Source-Revision: 00b3612fe9045f1cb6ba6c89ba7801642a6fa2c9

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 4ab32f3b8477c9f2157490eeeb76683e5a5d98f7
2017-11-20 20:48:17 -06:00
KuoE0 65de3f260a Bug 1419247 - Allow Stringify() to support nsSize. r=mtseng
MozReview-Commit-ID: 5OU6Db5z29S

--HG--
extra : rebase_source : 6cebd66f1cd0ca248e18a5f81cb63347d00c9e6a
2017-11-20 17:39:38 +08:00
Paul Bone 572d5164f3 Bug 1410276 - Add a canary field to nsStringBuffer r=bz
This version of the patch hopefully causes fewer performance regressions.
It might be good to apply this and catch some more assertions.

--HG--
extra : rebase_source : b8674308d581bed4baf6f64a9dd23f2cf995028b
2017-11-09 15:17:35 +11:00
Steve Fink a1edd33ebf Bug 1417267 - Output structured logs for jstests and jit-tests in automation, r=jonco
--HG--
extra : rebase_source : e428c4f582b6e6b50de3709fd2e1a0106ca23262
extra : source : a83b373d2d2ec45343f1612929881e00c099843e
2017-11-14 15:36:47 -08:00
Steve Fink 270cf4bba9 Bug 1366083 - diagnostic patch for ObjectValue(nullptr), r=jonco
--HG--
extra : rebase_source : f04c02b595415b00bbf5e56efc9a3166d45bc3cb
extra : source : 3059e975eef8c81c720d9450bd0792fdd501d6d6
2017-11-14 12:14:17 -08:00
Nika Layzell b4c0dcb142 Bug 1418048 - Part 3: Accept callbacks passed to async-returning SendXXX methods as rvalue references on a CLOSED TREE, a=bustage
MozReview-Commit-ID: 7M1uuWr0fMM
2017-11-20 19:11:48 -05:00
Marco Bonardo ec456e695c Bug 1395508. r=dao
MozReview-Commit-ID: 8jH9dyj5JZU

--HG--
extra : rebase_source : bb6a05188c49c281be6fc405ec155936ab42c603
2017-11-08 15:42:21 +01:00
Jan de Mooij 6e1de765f0 Bug 1417688 followup - Use #ifdef DEBUG instead of DebugOnly<> to work around MSVC bustage. r=red CLOSED TREE 2017-11-21 13:45:55 +01:00
Jan de Mooij 5e6f27bb61 Bug 1418844 followup - Use pre-decrement instead of post-decrement to fix leaks. r=tcampbell 2017-11-21 13:42:32 +01:00
Ted Mielczarek fd96776cb6 bug 1407374 - move hunspell dictionary copying to LOCALIZED_FILES in moz.build. r=nalexander
MozReview-Commit-ID: 833pqKcr4T9

--HG--
extra : rebase_source : 55503dc46fe99cb0e5b9b07915e10e091d65d403
extra : source : d9110808927225f45a7667f5048e6b2dfd2f2242
2017-11-13 15:45:12 -05:00
Ted Mielczarek b589758aab bug 1419055 - Fix FasterMake backend handling of FINAL_TARGET_FILES with wildcards in filename. r=nalexander
This patch fixes a bug in the FasterMake backend and adds a new
test_fastermake.py file to add a test for the behavior.

The FasterMake backend didn't handle wildcards in file names present in
FINAL_TARGET_FILES properly. For an entry like:

FINAL_TARGET_FILES.foo += ['*.xyz']

It would wind up trying to install the files to `dist/bin/foo/*.xyz/`, a
path with a literal asterisk in it. The code seems to have been written
assuming that wildcards would only be present in directory components of
the path. This change fixes this specific case, although it's possible that
it still doesn't handle all permutations of wildcards properly.

MozReview-Commit-ID: rk2tSyDyIu

--HG--
extra : rebase_source : c8f0cfdaa6b957df70bb528af9b0b816b387840e
2017-11-20 11:35:39 -05:00
Cervantes Yu 1ba4e86d19 Bug 1416703 - Part 8: Remove dead security prefs in all.js. r=dveditz
MozReview-Commit-ID: 1wpITF2xbyK

--HG--
extra : rebase_source : 26cdaeed17adc2249ea5aa1cba4392f557a44c4c
2017-11-14 19:20:53 +08:00
Cervantes Yu d88ae56a5d Bug 1416703 - Part 7: Remove some dead prefs in all.js. r=baku
This removes from all.js some dom, browser, autocomplete, ui, and other prefs
that are no longer accessed in our code.

MozReview-Commit-ID: JGoBZ2GUbPD

--HG--
extra : rebase_source : cc87f28ca547ac5568a6df0dd5c3561712dc149d
2017-11-14 18:20:38 +08:00
Cervantes Yu 36d040eb2b Bug 1416703 - Part 6: Remove dead gfx prefs in all.js. r=nical
MozReview-Commit-ID: ARKn2l9xNqs

--HG--
extra : rebase_source : cd7954f8785ab9aa9b5515732300417f777831dc
2017-11-14 16:20:48 +08:00
Cervantes Yu 087da036a8 Bug 1416703 - Part 5: Remove dead prefs for profile management in all.js. r=mak
MozReview-Commit-ID: GlRtI9Xuf4R

--HG--
extra : rebase_source : ccb7120e9836484f6bf248ae12c7d17284ad5c66
2017-11-14 16:17:29 +08:00
Cervantes Yu 95b4c711d1 Bug 1416703 - Part 4: Remove dead devtools prefs in all.js. r=jdescottes
MozReview-Commit-ID: 8IbaRrY3dfK

--HG--
extra : rebase_source : 116bfe0fd284cd1edbd7d07513bf97a4c9bf5910
2017-11-14 16:14:16 +08:00
Cervantes Yu c4f82d6bd7 Bug 1416703 - Part 3: Remove dead media prefs in all.js. r=cpearce,jesup
MozReview-Commit-ID: KIVAnQPTvCp

--HG--
extra : rebase_source : 983b3d79ebea8fa3bf878457931dcaf14c15595f
2017-11-14 16:10:31 +08:00
Cervantes Yu 9ea90c896d Bug 1416703 - Part 2: Remove dead prefs for printing in all.js. r=bobowen
This removes prefs for printing that are only declared in all.js but not accessed
elsewhere. Also correct the name of "print.print_in_color".

MozReview-Commit-ID: GrHNUjCiijA

--HG--
extra : rebase_source : 2d778dd6e517c10b569ff98af8da1ed9b80308e0
2017-11-14 15:10:10 +08:00
Cervantes Yu 08294f9c66 Bug 1416703 - Part 1: Remove dead accessibility prefs in all.js. r=Gijs
MozReview-Commit-ID: sKcuZ9abi0

--HG--
extra : rebase_source : 692d2bb2913f921b4a88bedca51da474b6d0b219
2017-11-14 13:55:33 +08:00
Tom Schuster cde7ee2711 Bug 1417688 - Do not call ArraySpeciesCreate for DOM proxies. r=anba,bz 2017-11-21 12:09:26 +01:00
Jan de Mooij 781378034e Bug 1418844 followup - Add message to static_assert. r=red
--HG--
extra : rebase_source : 0e8694819d5b31ab219daaf70b5b850186ce10c5
2017-11-21 12:07:36 +01:00
Jonathan Kew f6276a6775 Bug 1418724 - part 5 - Update a couple of tests to be more tolerant of variations in the exact form of the OS regional prefs. r=gandalf 2017-11-21 11:04:04 +00:00
Jonathan Kew f793736782 Bug 1418724 - part 4 - Register for notifications from macOS when the user's locale preferences are updated. r=m_kato 2017-11-21 11:03:30 +00:00
Jonathan Kew fe16ec91fd Bug 1418724 - part 3 - Make the OSPreferences service return the user's list of preferred languages from macOS, not just a single locale code. r=m_kato 2017-11-21 11:02:59 +00:00
Jonathan Kew 09faef79f5 Bug 1418724 - part 2 - Force reflow of all content when locale prefs change, so that we can pick up modifications to the preferred ordering of CJK fonts without requiring restart or page reload. r=m_kato 2017-11-21 11:02:20 +00:00
Jonathan Kew 6ac9fda68b Bug 1418724 - part 1 - Improve handling of default font prefs for CJK languages, to recognize a potential ordered list of preferred locales from the OS, not just a single selected locale. r=m_kato 2017-11-21 11:01:46 +00:00
Ted Campbell 78a8f17527 Bug 1418842 - Support JS_OOM_BREAKPOINT on MSVC. r=sfink
MozReview-Commit-ID: CHLvYjKkP7n
2017-11-19 14:35:00 +02:00
Ted Campbell 09601dae12 Bug 1418844 - (2) Check all lengths in ScriptBytecodeHasher. r=jandem
When de-duping SharedScriptData, check length of each region of data
buffer instead of just total length to avoid potential collisions.

MozReview-Commit-ID: 5fJIqSNOuON
2017-11-19 14:47:00 +02:00