479184 Commits

Author SHA1 Message Date
Mike Hommey
c5caa62fdf Bug 1278456 - Add the tooltool GCC library directory to LD_LIBRARY_PATH on Linux builds. r=mshal
Build slaves on automation are based on Centos 6, which doesn't have a
recent enough version of libstdc++ for our new requirements. But since
we're building with a recent GCC or clang with its own libstdc++, we do
have such a libstdc++ available somewhere, and the compiler picks it
when invoking the linker.

Problems start happening when we execute some of the built programs
during the build, like host tools (e.g. nsinstall), or target programs
(xpcshell, during packaging). In that case, we need the compiler's
libstdc++ to be used. Which required adding the GCC or clang library
directory to LD_LIBRARY_PATH.

Unconveniently enough, the clang 3.5 tooltool package we're using for
ASAN builds until we can update to at least 3.8 (bug 1278718) doesn't
contain libstdc++.so. So for those builds, pull the GCC package from
tooltool as well, and pick libstdc++ from there.
2016-06-12 18:52:15 +09:00
Mike Hommey
aadf5fb0df Bug 1278456 - Bump libstdc++ requirement to 3.4.16 (4.6.1). r=froydnj
Similarly to the considerations about glibc, the Linux compatibility matrix
(https://developer.mozilla.org/en-US/Firefox/Linux_compatibility_matrix)
tells us no distro with Gtk+3 3.4 has a version of libstdc++ older than
4.6.

The data in the matrix doesn't go to that level of detail, but Ubuntu
12.04 LTS, being the only one with version 4.6 (others have at least
4.7), it's worth noting it has version 4.6.3. Which means we can safely
require libstdc++ symbols version 3.4.16 (which were added in 4.6.1).

This will allow us to remove a lot of the stdc++ compatibility hacks.
2016-06-12 18:51:32 +09:00
Mike Hommey
a898d16968 Bug 1278456 - Bump glibc requirement to 2.12. r=froydnj
The requirement for glibc has been set to version 2.7 for a long while.

Spidermonkey uses the pthread_setname_np symbol, which is only available
since glibc 2.12. So far, we've been fortunate that the symbol doesn't
end up in libxul, or tests that link to js directly, because the symbol
is eliminated as being called by effectively dead code.

There are multiple reasons why this is going to change, one of which
being changes to the way things are linked, that will make the linker
not eliminate that code in some cases. Another is that eventually, the
separation of build systems between js and top-level is going to fade,
and the glibc checks, which apply to all gecko binaries, will also apply
to js binaries. They currently are not happening, and would fail because
of pthread_setname_np if they were.

Taking a step back, as of version 46, the mozilla.org builds require at
least Gtk+3 3.4. Which means the requirements for the underlying system
have received a dramatic bump, and it's time to revisit the requirements
for binary compatibility.

I went through all my notes from all the recent times binary compatibility
has been considered, and put together a compatibility matrix on MDN from
that data as well as more recent data that I could find here and there,
about the major non-rolling-release distros (RHEL, Fedora, SuSE, Debian,
Ubuntu)
https://developer.mozilla.org/en-US/Firefox/Linux_compatibility_matrix

Considering the data there, none of the distros that have at least Gtk+3
3.4 have a glibc older than 2.13. The list of symbols that 2.13 provides
that 2.12 doesn't have is not large enough, though, to really care about
depending on 2.13.
2016-06-12 18:51:23 +09:00
Carsten "Tomcat" Book
3b5e1843a7 Merge mozilla-central to mozilla-inbound 2016-06-12 11:31:50 +02:00
Carsten "Tomcat" Book
c6816bf0df merge mozilla-inbound to mozilla-central a=merge 2016-06-12 11:26:13 +02:00
Gabriele Svelto
a7b46c973d Backed out changeset c1dd7376263e (bug 1262852) which caused crashdumps from plugin hangs to be without a signature. 2016-06-12 00:25:25 +02:00
Saad Quadri
54056e201c Bug 1278158 - Allowing filling login forms with an inputElement but without loginFormForFill. r=MattN
MozReview-Commit-ID: 2aZCvMpH1eH

--HG--
extra : transplant_source : M3%B5i.FM%99%84%07%7E%E2%81%08y%AA%DC%BE%3C%ED
2016-06-08 13:59:05 -07:00
Thauã Silveira
dd4f3dccc6 Bug 1275570 - "Add Telemetry probe to see how often users enter print preview, and how many simplify the view". r=mconley 2016-06-08 13:14:00 +02:00
Kevin Lam
e730d38cc4 Bug 1245952 - Corrected comment in localization note to reference the corresponding string. r=mcomella 2016-06-08 18:08:00 +02:00
Jonathan Kingston
43172a8229 Bug 1248639 - Adding in context menu icons for gtk layout. r=jaws
MozReview-Commit-ID: 4eFIxsmTUOR

--HG--
extra : transplant_source : %14E%98%01%28%BF%05%5Es%EFC%E8%97%8F%A8p%87%84%EA%21
2016-06-09 22:09:16 +01:00
Nicholas Nethercote
01a3b82ac4 Bug 1267551 (part 12) - Use MOZ_MUST_USE even more in js/src/jit/. r=h4writer.
This catches a few missing checks.

--HG--
extra : rebase_source : c70e85efe29461f577794e7fb795d9dc2ed0f024
2016-06-08 16:10:45 +10:00
Masayuki Nakano
9fdc31aea3 Bug 1278014 part.14 Rename SelectionType::SELECTION_URLSTRIKEOUT to SelectionType::eURLStrikeout r=smaug
MozReview-Commit-ID: 7AqeDbHxGE2

--HG--
extra : rebase_source : 2dada2c98e1186aa7f5699b8d11033eae50ba2c6
2016-06-09 20:58:56 +09:00
Masayuki Nakano
a0eb51f54d Bug 1278014 part.13 Rename SelectionType::SELECTION_URLSECONDARY to SelectionType::eURLSecondary r=smaug
MozReview-Commit-ID: C2IW7nqjEkD

--HG--
extra : rebase_source : a64cd80650fe51dbc5586511ad8c3287a0ec3225
2016-06-09 20:47:48 +09:00
Masayuki Nakano
ebf3bc1862 Bug 1278014 part.12 Rename SelectionType::SELECTION_FIND to SelectionType::eFind r=smaug
MozReview-Commit-ID: BZxBnCDBghi

--HG--
extra : rebase_source : 099d1043c7e69f3c49a2d4e34190cbd7c4532107
2016-06-09 20:35:20 +09:00
Masayuki Nakano
61a6a5f987 Bug 1278014 part.11 Rename SelectionType::SELECTION_ACCESSIBILITY to SelectionType::eAccessibility r=smaug
MozReview-Commit-ID: 2nU4KQB5S7N

--HG--
extra : rebase_source : 8bb098b292fa92833e86fd65be62819844e0829e
2016-06-09 20:32:36 +09:00
Masayuki Nakano
10f047dba5 Bug 1278014 part.10 Rename SelectionType::SELECTION_IME_SELECTEDCONVERTEDTEXT to SelectionType::eIMESelectedClause r=smaug
MozReview-Commit-ID: 8v3mqcYorOI

--HG--
extra : rebase_source : a6823273c161eabbfa9e49e689154e547c14a106
2016-06-09 19:29:29 +09:00
Masayuki Nakano
aa3d2a6ce9 Bug 1278014 part.9 Rename SelectionType::SELECTION_IME_CONVERTEDTEXT to SelectionType::eIMEConvertedClause r=smaug
MozReview-Commit-ID: 5UNqhB2ZEcZ

--HG--
extra : rebase_source : 74d41ddf5496bdc50306bf916251df4f8d65a65b
2016-06-09 19:14:17 +09:00
Masayuki Nakano
ff86f10a4c Bug 1278014 part.8 Rename SelectionType::SELECTION_IME_SELECTEDRAWTEXT to SelectionType::eIMESelectedRawClause r=smaug
MozReview-Commit-ID: DgprOxg87K6

--HG--
extra : rebase_source : 2f655353845292c4e8028f6e43f0dbbbfea11b68
2016-06-09 19:03:40 +09:00
Masayuki Nakano
569677d2f1 Bug 1278014 part.7 Rename SelectionType::SELECTION_IME_RAWINPUT to SelectionType::eIMERawClause r=smaug
MozReview-Commit-ID: BRe10Lyx5mt

--HG--
extra : rebase_source : e57239239fe8029040ce49faff9e37c5ad0b8305
2016-06-09 18:51:49 +09:00
Masayuki Nakano
a1636168ba Bug 1278014 part.6 Rename SelectionType::SELECTION_SPELLCHECK to SelectionType::eSpellCheck r=smaug
MozReview-Commit-ID: 4n2jEVax37O

--HG--
extra : rebase_source : eb8c0dbedfeac83de330ccef874525dea355b52c
2016-06-09 18:37:36 +09:00
Masayuki Nakano
d960ef26d5 Bug 1278014 part.5 Rename SelectionType::SELECTION_NORMAL to SelectionType::eNormal r=smaug
MozReview-Commit-ID: AAdxTTKEvrk

--HG--
extra : rebase_source : 82e10db6b8b17d4f571625e34bb3c8f1905ef58a
2016-06-09 18:35:22 +09:00
Masayuki Nakano
b58c08cb8f Bug 1278014 part.4 Rename SelectionType::SELECTION_NONE to SelectionType::eNone r=smaug
MozReview-Commit-ID: BRfzs8sColP

--HG--
extra : rebase_source : a5190cb20c263b01205e1ff75c76b2970c229b4e
2016-06-09 18:07:18 +09:00
Masayuki Nakano
581b9986bb Bug 1278014 part.3 Define 2 constants for number of SelectionType and number of SelectionType except "none" r=smaug
This patch defines two constants kSelectionTypeCount and kPresentSelectionTypeCount.  The former is same as nsISelectionController::NUM_SELECTIONTYPES.  The latter is kSelectionTypeCount - 1 for excluding SELECTION_NONE.  The latter is useful in some loops which handle all selection types except SELECTION_NONE.

Note that this patch fixes a bug of nsFrameSelection.  That doesn't treat SELECTION_NONE as a selection (see the definition of index), however, it defines redundant item and doesn't use it actually.  Additionally, it computes invalid selection type in each loop.  Therefore, without this patch, debug build hits MOZ_ASSERT() in ToSelectionType(RawSelectionType).

Note that these constants are defined as anonymous enum because we cannot define as const (or static) even with extern.  If we'd try to do it, it caused link error or not available in nsFrameSelection.cpp as constant value since they were not initialized if they were initialized in nsSelection.cpp.  Therefore, these constants are defined as enum items but using "k" prefix.

MozReview-Commit-ID: H6sH7NBEXlE

--HG--
extra : rebase_source : fd517d5fc2e2d5dc2f96313e2802fd1719817af7
2016-06-11 11:12:26 +09:00
Masayuki Nakano
00591135a4 Bug 1278014 part.2 Define mozilla::SelectionType as an enum class and use it instead of RawSelectionType as far as possible r=smaug
This patch defines mozilla::SelectionType as an enum class.  This is safer than nsISelectionController::SELECTION_* since setting illegal value to its variable is checked at build time.  So, as far as possible, this should be used everywhere (but of course, this isn't available in scriptable interfaces).

And also this implements some useful methods for managing SelectionType and RawSelectionType which are implemented in layout/nsSelection.cpp because nsISelectionController is implemented by both PresShell and nsTextEditorState.  Therefore, implementing one of them may make hard to find them.  On the other hand, nsSelection.cpp is a better file name to look for them.

Note that this patch creates mozilla::Selection::RawType() for binding.  Native code should keep using Selection::Type() but the binding code needs to use RawType() due to impossible to convert from SelectionType to RawSelectionType without explicit cast.

MozReview-Commit-ID: 81vX7A0hHQN

--HG--
extra : rebase_source : d9f88e217c713c60d1c2578ce6421c73ccba8650
2016-06-11 11:06:37 +09:00
Nicolas Chevobbe
80aa7658fd Bug 1240038 - Listen for changes when a StyleSheetActor is created. r=tromey
A listener was added for stylesheet changes only if the stylesheet already
contributed to the page before the modification. So if there was a stylesheet
without any rule matching a node of the page, when a rule was created in it for
the current selected node in the markup view, the rule view wasn't refreshed.
The fix here is to emit an event, from the TabActor, when a StyleSheetActor is created,
and listen to such event to watch for changes in it, in order to update the rule view.
Modify an existing rule view/stylesheet editor sync test to make sure this bug is fixed.


MozReview-Commit-ID: H3szbUnchQP

--HG--
extra : transplant_source : %F7%E0%D2%8B%B3%D2%C3%1F%F8%88%03%AA%10Q%E4%B8h%0C%BE_
2016-06-07 22:28:45 +02:00
Drew Willcoxon
05d0f2d0ee Bug 1252509 - Use a sliding panel overlay from the downloads panel to display the available actions. r=jaws
MozReview-Commit-ID: FhRlxcPeWu3
2016-06-10 22:08:59 -07:00
Phil Ringnalda
f115c8ce7b Merge m-c to f-t 2016-06-10 18:49:05 -07:00
Brian Grinstead
70988d77e5 Bug 1266478 - Eslint fixes followup;r=me
MozReview-Commit-ID: 2BtKqZ23Qna
2016-06-10 16:51:47 -07:00
Brian Grinstead
ad19bb6b11 Bug 1266478 - Integrate Menu API with inspector;r=pbro
This patch converts the inspector's context menu implementation away from
directly using XUL menus, and updates a number of tests to match.

MozReview-Commit-ID: L8aL23BUmXS
2016-06-10 15:52:27 -07:00
Nick Fitzgerald
ff7200291a bug 1265723 - Decouple the MemoryFront from the MemoryActor; r=ejpbruel 2016-06-10 13:28:15 -07:00
Nick Fitzgerald
323a754b9a Bug 1279302 - Decouple the ReflowFront from the ReflowActor; r=ejpbruel 2016-06-10 13:28:15 -07:00
Andrzej Hunt
9bc92c22aa Bug 1279598 - Fix checkstyle trailing space issues r=me 2016-06-10 12:26:32 -07:00
Panos Astithas
592fc3ac55 Disable browser_CaptivePortalWatcher.js on Windows for intermittent failures (bug 1279491). r=bustage
MozReview-Commit-ID: LXYKoIq1OfU
2016-06-10 20:26:59 +03:00
Carsten "Tomcat" Book
ff5673acd6 Backed out changeset 61442f7ad442 (bug 1264489) for breaking fennec nighlys 2016-06-10 16:35:05 +02:00
Carsten "Tomcat" Book
828e527fb4 Backed out changeset 97074800423c (bug 1264489) 2016-06-10 16:34:49 +02:00
Carsten "Tomcat" Book
4ee1ed2b8f merge mozilla-inbound to central a=merge
--HG--
extra : amend_source : 10247ace8885c608987dcf31d47368e0dec09b19
2016-06-10 15:39:23 +02:00
Carsten "Tomcat" Book
9878cdd37a merge fx-team to mozilla-inbound a=merge 2016-06-10 15:34:37 +02:00
Julian Descottes
7bd66d252a Bug 1279441 - fix HTMLTooltip closing after click on inner iframe;r=bgrins
MozReview-Commit-ID: EggheTpU2y3

--HG--
extra : rebase_source : 5c6a678776292446aeb36a0555f89a5e943d252e
2016-06-10 11:24:04 +02:00
J. Ryan Stinnett
51611069ed Bug 1279515 - Update ESLint plugin version after rule change. r=jdescottes
MozReview-Commit-ID: ECSIVMfsGHL
2016-06-10 11:28:03 -05:00
Dão Gottwald
836ac9cc86 Bug 1279476 - Fix search arrow background styling in about:home and about:newtab. r=florian 2016-06-10 18:25:50 +02:00
Gijs Kruitbosch
c7b3a300d9 Bug 1271775 - shut up eslint warning about return value, rs=bustage
MozReview-Commit-ID: ESoog14WDSw

--HG--
extra : rebase_source : b0321f9911090894d6a1167d267289fb64e33a6c
2016-06-10 10:11:51 +01:00
Panos Astithas
8cb64e5de1 Fix an intermittent failure in browser_popupNotification_4.js (bug 1041724). r=florian
MozReview-Commit-ID: 7OjaeL0WGk6
2016-06-10 12:11:47 +03:00
Justin Wood
c3467fda07 Bug 1171736 - fix single locale l10n nightly bustage. r=rail over IRC. a=KWierso
MozReview-Commit-ID: LKE3O31lTjm

--HG--
extra : rebase_source : c64004dd170fb14855ff8f5303abb55f058c6257
2016-06-09 14:04:53 -04:00
Carsten "Tomcat" Book
afff301b32 Backed out changeset 5c836acf3197 (bug 906420) on developer request by baku
--HG--
extra : rebase_source : 9f109cdb706feef6d2bcd9a2e71f8c4d3c17ebdf
2016-06-09 15:30:53 +02:00
Carsten "Tomcat" Book
cec713e0c7 Backed out changeset e3615a839821 (bug 906420)
--HG--
extra : rebase_source : f9898c9163ce45b9ecfeff88a0f140e890f40ef6
2016-06-09 15:30:37 +02:00
Carsten "Tomcat" Book
ed14bc0dce Backed out changeset 18b3c95f1a38 (bug 906420)
--HG--
extra : rebase_source : 2cb14884f71aa8a41e56c935abe93755b0b0d8db
2016-06-09 15:30:35 +02:00
Justin Wood
fc905af611 Bug 1171736 - Stop clobbering the compare-locales dir, since we're using in-tree now. r=rail a=Tomcat
MozReview-Commit-ID: GWrtAZ4OXeC
2016-06-09 08:59:15 -04:00
Masayuki Nakano
17f667a2e2 Bug 1278014 part.1 Rename SelectionType in nsISelectionController.idl to mozilla::RawSelectionType r=smaug
mozilla::SelectionType will be an enum class. Therefore, we need to rename SelectionType with a word "raw" since it's a type for raw nsISelectionController::SELECTION_*.

MozReview-Commit-ID: K8SO0bbpv0Y

--HG--
extra : rebase_source : 56e3ac852657ef4795d718d2da09b16903c2e66c
2016-06-07 22:42:06 +09:00
Mats Palmgren
bdd70f5b19 Bug 1279641 - [css-grid] Make 'span' an invalid <custom-ident> in line name lists. r=dholbert 2016-06-11 20:42:03 +02:00
Jonathan Watt
483ce4fb50 Bug 1279628, part 3 - Replace the last gfxASurface::CheckSurfaceSize call, and remove gfxASurface::CheckSurfaceSize. r=mstange 2016-06-10 13:32:01 +01:00