Backed out bdf72cebcd85 to fix a CLOSED TREE.

--HG--
extra : histedit_source : 0a3977407abecc55d5564a69531d5d6ca804cd86
Bug 1037409 - Remove some gtests that don't map to real-world scenarios. r=nicklebedev
Bug 1035092 - "bool functions shouldn't return nullptr" [r=sfink]

--HG--
extra : rebase_source : 0a0f2549b0a34c759384d8293f6227e112610147
Merge m-c to inbound
Bug 1038038 (part 1) - Reduce ShapeTable::MIN_SIZE_LOG2. r=bhackett.

An entryCount of zero is common, due to initBoundFunction(), so it's worth
choosing a value that doesn't waste too much space in that case.

--HG--
extra : rebase_source : efcf627734d3b49eab58aaaebeff16458bb7d9ad
Bug 1038038 (part 2) - Compute sizeLog2 in ShapeTable::init() better. r=bhackett.

For exapmle, currently if you have an entryCount of 9 you end up with a
capacity of 32, when 16 would be more appropriate.

--HG--
extra : rebase_source : 300cd56c2dcbbb75ae54b227a5d1cab83c424a97
Bug 1038038 (part 3) - Increase ShapeTable::MIN_ENTRIES. r=bhackett.

A linear search of 15 items is likely to be competitive with a hash table
lookup.

--HG--
extra : rebase_source : b2e0cb690610aea8bd372b4fbc50c1cc7cd9e97e
Bug 1038029 - Bad cache file is used for the LDAP C SDK, r=glandium

--HG--
extra : rebase_source : 260945940ca3eab61b1ff4ee0e206f44747e346d
Bug 1038828: Replace mozilla::pkix::der::Result with uses of mozilla::pkix::Result, r=mmc

--HG--
rename : security/pkix/lib/pkixutil.h => security/pkix/include/pkix/Result.h
extra : rebase_source : e385af4bab665627aa5d434db04830065cbc641f
Bug 1038837: Factor out mozilla::pkix::Input into a separate header, r=mmc

--HG--
rename : security/pkix/lib/pkixder.h => security/pkix/include/pkix/Input.h
rename : security/pkix/lib/pkixutil.h => security/pkix/include/pkix/Result.h
extra : rebase_source : 09bac0a183932f721cdfd32936595867e4dc26ce
Bug 1029887: Test DOM nodes blocked by NS_ERROR_TRACKING_URI (r=mmc)
Bug 1038897: pop entries off the cache until its size reaches max cache size. Input read from corresponding pref is clamped to non-negative values (r=seth)
Bug 1023547 - Fix intermittent dom/workers/test/test_promise.html failure. r=bz
Bug 1026923 - [RTSP] Change the User-Agent string of RTSP client. r=sworkman
Bug 1020416 - Add forceValidFor() and isForcedValid attribute to nsICacheEntry. r=honzab, r=michal
Bug 1026710 - Fix errors in output handling in devicemanagerADB. r=armenzg
Bug 1037519 - Allow matching pseudo-elements in inIDOMUtils.selectorMatchesElement. r=bz
Merge m-c to inbound. a=merge
Backed out changeset 38bfa2af2bd8 (bug 1023547) for making test_promise.html perma-fail.
Bug 1023547 - Fix intermittent dom/workers/test/test_promise.html failure. r=bz

--HG--
extra : transplant_source : %F5%A9%DER%BA%11%E3%2C%E3R%C8%40%F3%5E%D5%C3%A6%FE%9D%90