Commit Graph

608302 Commits

Author SHA1 Message Date
Jan de Mooij
fc69dc387b Bug 1481793 part 3 - Assert cross-compartment wrappers don't wrap other CCWs. r=luke
--HG--
extra : rebase_source : 0c46484c8271ca11aa1c2fcf22833a72c14022af
2018-08-09 13:34:40 +02:00
Jan de Mooij
ae8dfe71f2 Bug 1481793 part 2 - Do a CheckedUnwrap in JS_StructuredClone. r=luke
--HG--
extra : rebase_source : 765d3c0be208b6aabc2db0c2aef52a31914b97c8
2018-08-09 13:34:40 +02:00
Jan de Mooij
5149585ee0 Bug 1481793 part 1 - Use assertSameCompartment instead of AutoRealm in JSStructuredCloneWriter::write. r=luke
--HG--
extra : rebase_source : b22d34f26062550f76a8017503c90ae2152c35d2
2018-08-09 13:34:40 +02:00
Masayuki Nakano
a5cfed23c5 Bug 1481153 - part 4: Should stop hacking the result of TSFTextStore::GetTextExt() when Win10 build 17643 only in Nightly or early Beta r=m_kato
We should get feedback from each CJKT testers at least one cycle after Win10
RS5 is released.  Until then, we should not stop hacking GetTextExt() result
in late Beta nor Release builds.
2018-08-07 21:30:52 +09:00
Masayuki Nakano
d928c7f7e1 Bug 1481153 - part 3: Make TSFTextStore::MaybeHackNoErrorLayoutBugs() hack even on Win10 build 17643 or later when Microsoft Pinyin or Microsoft Wubi is active r=m_kato
Microsoft Pinyin and Microsoft Wubi (Simplified Chinese TIPs) work better on
Windows 10 Build 17643 or later (i.e., TS_E_NOLAYOUT bug is fixed).  However,
they sometimes do not show candidate window, perhaps, the reason is something
stateful bug in them.  Therefore, we still need to hack the result of
GetTextExt() until they fix this bug.
2018-08-07 15:09:31 +09:00
Masayuki Nakano
4cb7504106 Bug 1481153 - part 2: Rewrite TSFTextStore::MaybeHackNoErrorLayoutBugs() with switch-case statement with TSFStaticSink::ActiveTIP() r=m_kato
Currently, TSFTextStore::MaybeHackNoErrorLayoutBugs() checks pref to enable
hack first, then, check if active TIP is the target of pref.  This was intended
to save comparison cost of GUIDs.  However, we don't need to worry about the
cost and that was not makes sense since all prefs are true by default.

So, this patch makes the big if-elseif blocks with switch-case with
TSFStaticSink::ActiveTIP().  Then, each case block starts to check if
- if Windows still TS_E_NOLAYOUT bug of GetTextExt().
- if corresponding pref is true.

Note that this duplicates some code for making the code look easier.
E.g., eMicrosoftOfficeIME2010ForJapanese case is duplicated from
the eMicrosoftIMEForJapanese case.  eMicrosoftPinyin and eMicrosoftWubi case
is duplicated from the eMicrosoftChangJie and eMicrosoftQuick case.
2018-08-07 14:12:13 +09:00
Masayuki Nakano
1bb7f99732 Bug 1481153 - part 1: Make TSFStaticSink cache active TIP rather than checking it every time with GUID comparison r=m_kato
As we know, GUID comparison is not cheap if it's required a lot.  Unfortunately,
we need to check it more in TSFTextStore::MaybeHackNoErrorLayoutBugs() and
it's called a lot.  So, even though mapping from GUID to TIP is expensive,
we should do it only once.  Note that most users won't change IME during a
browser session, so, running this expensive method once must be reasonable.
On the other hand, we don't allow to make damage to start up performance,
we should avoid to do it as far as possible.  For example, when we need to
check if active TIP is a specific TIP, we should check current language.
2018-08-06 22:29:14 +09:00
David Heiberg
c9661e61a3 Bug 1476661 - Ensure H2 dependencies are packaged alongside wptserve where needed, r=jgraham
MozReview-Commit-ID: 5tbXeHsvNI5
2018-08-09 11:38:37 +01:00
David Heiberg
f3fd76cbbf Bug 1473648 [wpt PR 11806] - [WIP] Prototype HTTP/2.0 Server, a=testonly
Automatic update from web-platform-tests[WIP] Implemented a prototype H2 Server that can establish HTTP/2.0 connections on port 9000, and serve directories.

* Added event handling for ConnectionTerminated

* Added backwards compatibility with HTTP/1.1 Python handler files.

* Made it so a command line flag is needed to start the H2 server, and it is no longer started by default.

* Refactored compatibility checking when launching HTTP/2.0 server

* Created H1 and H2 handler variants, keeping shared logic in a base class

* Added a `raw_headers` field to the H2Headers object, so that the non-converted keys are exposed

* Added basic multithreading support. Requests now get placed in a thread to finish handling, whilst server listens
for more requests/windows updates.

* Created a ConnectionGuard object for the H2 connection object for thread safety as per jgraham's suggestion

--
Vendored in h2 and its dependencies

--

wpt-commits: 8ccd0cdbb51f89e1c45f16b7843dca1ffca37c91, 0e78a45d9f8ebe9d0f0978d6c2fe59a512e9865b
wpt-pr: 11806
MozReview-Commit-ID: 8qojXnrrAN0
2018-08-09 11:38:36 +01:00
Tiberius Oros
fae00acf70 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-09 13:06:13 +03:00
Tiberius Oros
aff5d4ad5d Merge inbound to mozilla-central. a=merge 2018-08-09 13:02:05 +03:00
Ms2ger
3fe0944e13 Bug 1481436 - Run jstests on changes to wpt; r=sfink 2018-08-09 11:30:56 +02:00
Martin Stransky
4854321662 Bug 1481385 - Calculate bitmap mask size with stride. r=lsalzman
--HG--
extra : amend_source : 950b8705896cbe861366f1ea80f657d5debd097a
2018-08-09 12:10:18 +03:00
Tiberius Oros
10a8cd5f4e Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-09 09:25:15 +03:00
Andreea Pavel
47e0464703 Backed out changeset b4b3be038ab8 (bug 1413546) for failing win testing\firefox-ui\tests\functional\sessionstore\test_restore_windows_after_windows_shutdown.py on a CLOSED TREE 2018-08-09 09:22:25 +03:00
Tiberius Oros
1d1b8fc551 Backed out changeset b5ba45e6ac73 (bug 1480349) requested by igoldan 2018-08-09 08:56:35 +03:00
Hal Wine
d56280bad5 Bug 675428 - register Firefox to handle mailto URLs in Windows r=mhowell
At least in Win10, Firefox is not an option to configure as a mailto handler.

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

--HG--
extra : moz-landing-system : lando
2018-08-08 20:56:45 +00:00
Jeff Gilbert
e97241ae22 Bug 1481983 - Don't mix && and ||. r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D2982

--HG--
extra : moz-landing-system : lando
2018-08-09 01:34:12 +00:00
Miko Mynttinen
04a1360805 Bug 1413546 - Fix e10s logic in nsLayoutUtils::AreRetainedDisplayListsEnabled() and set layout.display-list.retain.chrome to true r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D2953

--HG--
extra : moz-landing-system : lando
2018-08-08 22:02:34 +00:00
Emilio Cobos Álvarez
1fbd784d00 Bug 1481601 - Remove now-useless aPreallocateChildren from nsINode::Clone() and friends. r=bzbarsky
Since sed on multiple lines ended up being such a pain and I didn't end up
writing a script for this because I didn't think it'd end up being so boring, I
may have made a couple cleanups here and there as well...

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

--HG--
extra : moz-landing-system : lando
2018-08-08 23:58:44 +00:00
Xidorn Quan
34de342864 Bug 1464786 - Implement flow-relative values for resize property. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D2908

--HG--
extra : moz-landing-system : lando
2018-08-08 23:40:06 +00:00
Justin Wood
48b3246876 Bug 1481018 - While here Remove unused beetmover defines, that are only a source of confusion. r=tomprince
This beetmover transform is only relevant for Fennec and *-Source platforms at this time.

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

--HG--
extra : moz-landing-system : lando
2018-08-08 20:57:00 +00:00
Rob Wu
4189b1a81e Bug 1280370 - Remove unneeded DomainIsWildcard check r=mixedpuppy
The DomainIsWildcard check is already covered by MatchesDomain.

--HG--
extra : rebase_source : 9d279d219cfeedf6ae2b81c34d5a592e56e8648e
2018-08-08 18:56:53 +02:00
Tom Tung
8c51efc4db Bug 1481753: Remove redundant lines for flipping the flag and checking the storage limits. r=janv
Tags: #secure-revision

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

--HG--
extra : rebase_source : c2cce729d205dc61ce41b9540db1784813dc44c1
2018-08-08 15:43:46 +02:00
Tiberius Oros
76124f4ec0 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-09 09:26:43 +03:00
Matt Woodrow
0ea228cfd7 Bug 1480695 - Add telemetry to record how frequently we encounter a cross-origin <iframe> within a filter. r=mstange,Nika 2018-08-09 16:30:39 +12:00
Coroiu Cristina
aca41ab710 Backed out changeset a18c257cf35d (bug 1480695) for build bustage at build/src/obj-firefox/dist/include/nsDisplayList.h 2018-08-09 07:49:46 +03:00
Matt Woodrow
6e927e7e6d Bug 1480695 - Add telemetry to record how frequently we encounter a cross-origin <iframe> within a filter. r=mstange,Nika 2018-08-09 16:30:39 +12:00
Dorel Luca
5ef9c6f716 Backed out changeset e8023a02b6c2 (bug 1478909) on dev's request 2018-08-09 04:58:04 +03:00
Jeff Gilbert
8e0436b208 Bug 1478909 - Make funcName implicit for WebGL calls. - r=kvark
MozReview-Commit-ID: Gv77SnHZcGb
2018-08-08 16:15:12 -07:00
Daniel Varga
14af3949fc Backed out 3 changesets (bug 1480631) for failure at /home/cltbld/workspace/build/tests/talos/talos/run_tests.py
Backed out changeset ed7dba433629 (bug 1480631)
Backed out changeset dd64a5e6d4df (bug 1480631)
Backed out changeset 910a805c960d (bug 1480631)
2018-08-09 01:46:40 +03:00
Ted Campbell
3d03b347e6 Bug 1479900 - Part 2: Refactor GC relocation to use a reserved flag. r=sfink
This refactors gc::Cell derived types to start with a uintptr_t-sized
field with the low bits reserved for the GC and uses these bits for
relocation mechanism.

- JSString now stores flags in a uintptr_t. On 32-bit platforms, a
  second field is used to hold length.
- Redefine JSString flag bit positions to avoid cell reserved bits.
- Forwarded Cells are now indicated by a reserved flag instead of a
  magic invalid-pointer-like value.
- gc::RelocationOverlay now extends gc::Cell
- Update js::Symbol, js::Scope and js::BigInt fields to be compatible.

MozReview-Commit-ID: Cs5OavbHmqK
2018-08-08 18:16:43 -04:00
Ted Campbell
c8528d6865 Bug 1479900 - Part 1: Use accessor methods for JSString::flags/length. r=sfink
Add accessor methods so that underlying storage strategy can be changed
later. This patch should not change current behaviour.

MozReview-Commit-ID: IRA53TQShe6
2018-08-08 18:16:42 -04:00
Daniel Varga
31ff8cd9c8 Merge mozilla-central to mozilla inbound. a=merge 2018-08-09 01:10:56 +03:00
Mike Hommey
d99b52b6ed Fix up for bug 1481727, because operator priorities are fucked up in C/C++. r=bustage on a CLOSED TREE 2018-08-09 07:07:14 +09:00
Mike Hommey
7be4cc3526 Fix up clang-tidy after bug 1480631. r=bustage 2018-08-09 06:37:11 +09:00
Mike Hommey
6fe1432f2e Bug 1480631 - Switch Linux builds to clang. r=froydnj
This change switches most CI builds to clang, with a few exceptions:
- valgrind builds, until bug 1481670 is figured out.
- PGO and nightly builds, until that's fully tested.
- coverage builds, per bug 1471339 comment 17.
- base toolchain builds, to keep some builds on GCC even when we're
  fully switched to clang.
- any build that doesn't use build/unix/mozconfig.linux (e.g. probably
  all those driven by autospider.py, maybe others).
2018-08-09 06:08:19 +09:00
Mike Hommey
29e5f32cce Bug 1480631 - Copy 32-bits libraries from gcc to clang. r=froydnj
We already copy the 64-bits libraries, but don't copy the 32-bits
libraries, which prevents building for linux32 by default.

Incidentally, this also makes the clang build system build the 32-bits
compiler-rt libraries, allowing e.g. 32-bits PGO.
2018-08-09 06:08:12 +09:00
Mike Hommey
6d197a0707 Bug 1481719 - Disable profile-instr-out-of-date warnings explicitly rather than allowing all warnings where they appear. r=dmajor 2018-08-09 06:07:33 +09:00
Mike Hommey
fe9dd50d7f Bug 1481727 - Fix an elfhack corner case after bug 1423822. r=froydnj
Bug 1423822 moved the injected code section before the .text section.
When linking with lld, the text section is usually page aligned, and
starting a PT_LOAD. We inject code at the beginning of the PT_LOAD,
which means the PT_LOAD is going to be extended at least a page
downwards. And it means the preceding PT_LOAD can't finish in that same
page, so the overhead of the injected code is needs to account for the
page alignment.
2018-08-09 06:04:30 +09:00
Nathan Froyd
49dcc19d92 Bug 1481505 - add aarch64 bits to DEFINES and DSO_LDOPTS; r=dmajor
Not having _ARM64_ in DEFINES makes any number of things go wrong.
2018-08-08 16:37:05 -04:00
Boris Zbarsky
d8e2ac7bc0 Bug 1102679 followup. Restore failure annotation that should not have been removed. r=bzbarsky 2018-08-08 16:25:47 -04:00
Dorel Luca
931957468b Backed out changeset f893f5da2e63 (bug 1465491) for failing Devtools on devtools/client/debugger/new/test/mochitest/browser_dbg_rr_breakpoints-01.js
--HG--
extra : rebase_source : 285f8fdaf658f93f18b642799dddc4d65cffc23c
2018-08-08 22:50:34 +03:00
Xidorn Quan
aa0eed2685 Bug 1481781 followup - Fixup order in properties-db.js on a CLOSED TREE.
--HG--
extra : source : 278775698907f55a8874cd797483a4b54680ee85
2018-08-08 23:20:04 +10:00
Matthew Gaudet
daab071c17 Bug 1480493 - Remove initializer kind from JSOP_NEWINIT r=arai
Differential Revision: https://phabricator.services.mozilla.com/D2675

--HG--
extra : moz-landing-system : lando
2018-08-08 00:01:52 +00:00
Jesse Schwartzentruber
abc4b27cb4 Bug 1475573 - Create --enable-fuzzing debug build job for Android x86 firefox. r=nalexander,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D2428

--HG--
extra : moz-landing-system : lando
2018-08-07 17:53:57 +00:00
Daisuke Akatsuka
d26c328974 Bug 1477597 - Part 4: Add inspect button. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D2765

--HG--
extra : rebase_source : 490aa5f758c8d7bc9a64d2b3a2ffe6a112bb3cb3
2018-08-06 15:20:13 +09:00
Daisuke Akatsuka
37ff44b1ed Bug 1477597 - Part 3: Update UI when tabs are updated. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D2764

--HG--
extra : rebase_source : 5a36a6d8e9a870f96db5556968a6699f93fba7cb
2018-08-06 14:45:03 +09:00
Daisuke Akatsuka
e6ba0ba4c2 Bug 1477597 - Part 2: Show tabs. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D2763

--HG--
extra : rebase_source : 941023f857ec2e6ac907c6ad4a74260d66b73f65
2018-08-06 13:00:56 +09:00
Daisuke Akatsuka
671f2d73bd Bug 1477597 - Part 1: Implement a mechanism to dispatch tabs. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D2762

--HG--
extra : rebase_source : 1476f0e11a15e7de8748947f178b07077124ed27
2018-08-06 13:00:36 +09:00