Commit Graph

432748 Commits

Author SHA1 Message Date
Rob Wu
812e170fe8 Bug 1287010 - Make environment of Context explicit. r=billm
- Add `envType` to BaseContext.
 - Pass an explicit envType to all `registerSchemaAPI` invocations.
 - The factories passed to `registerSchemaAPI` will be split up later, so
   that content scripts (`content_child`) and addon pages can share
   common implementations.
 - The factories that implement the addon API will also be split up,
   to separate code running in the main process (`addon_parent`) from
   code running in a child process (`addon_child`).
 - Remove the use of a hardcoded list of `namespaces` from ProxyContext.
   Now `envType` is used to specify whether an API should be activated.

MozReview-Commit-ID: Jiff8HIwG92
2016-08-16 15:51:50 -07:00
Rob Wu
42e49c6137 Bug 1287010 - Add pathObj parameter to Schemas r=billm
Local wrappers currently look up the API object over and over again
whenever a schema API is invoked. This can be optimized by re-using
the lookup result from a `shouldInject` invocation, which is passed
as the `pathObj` parameter to the wrapper methods.

This commit adds the necessary changes and tests to allow this to
happen, but does not modify the wrapper in Extension.jsm yet.

Also, this construction allows the `ChildAPIManager` to use a local
implementation if available and fall back to a remote implementation
otherwise.

MozReview-Commit-ID: C9gm7A9Zppb
2016-08-19 00:35:07 -07:00
Rob Wu
a68fdede92 Bug 1287010 - Use minimal global scope for ext-*.js scripts r=billm
Currently there is a tight coupling between registered APIs because they
share the same global scope, and the dependencies between the modules
that use these globals are not explicit. Consequently, it would be
possible for APIs to break when the registered APIs run in separate
processes, because then there are separate global scopes.
To mitigate this issue, this patch isolates the global namespaces of
API registrations in different environments, starting with the "chrome"
process. Content and addon processes will follow later.

A new JSM is introduced to avoid hidden dependencies between ext-*.js
and the script loader. ExtensionUtils.jsm would be a natural choice for
this shared utility method, but cannot be used because its local
`EventEmitter` implementation conflicts with the `EventEmitter` import
in ext-tabs.js.

So, this patch provides isolation of global variables declared through
`globals.XXX = ...`, but does not provide isolation for `Cu.import`-ed
logic. Ideally `Cu.import` should always use its second argument to
prevent inadvertent namespace pollution.

MozReview-Commit-ID: 1DTZaKOaeSE
2016-08-17 20:28:19 -07:00
Ting-Yu Chou
2b3b68fd5b Bug 1297314 - Initialize IPC union parameters to void_t for the case when RecvKeywordToURI() returns early. r=kanru
MozReview-Commit-ID: DlrROVhekSF
2016-08-24 11:23:56 +08:00
Gerald Squelart
75736c0343 Bug 1295763 - Allow ThreadSafeAutoRefCnt with XPCOM_GLUE - r=froydnj
Removed '#ifndef XPCOM_GLUE' that blocked usage of thread-safe ref-counting
from XPCOM_GLUE code.

MozReview-Commit-ID: Hm0rdTKK46l
2016-08-16 14:07:16 +10:00
Gijs Kruitbosch
6bc028f9a6 Bug 1297479 - create a pref to turn off UI to undo automatic migration for use by funnelcake builds, r=Dolske
MozReview-Commit-ID: JZQuhMxxrXU
2016-08-23 19:30:32 +01:00
Ryan VanderMeulen
5927239b10 Bug 1297276 - Fix another instance of mozilla/unused.h that snuck in.
CLOSED TREE
2016-08-25 09:31:35 -04:00
Ryan VanderMeulen
21d1859f2f Merge m-c to autoland. a=merge CLOSED TREE 2016-08-25 09:01:10 -04:00
Ryan VanderMeulen
9400093a44 Backed out changeset 649c62d13b57 (bug 1297367) for causing talos regressions.
CLOSED TREE
2016-08-25 08:41:52 -04:00
Ryan VanderMeulen
1d4f0518e6 Bug 1297276 - Fix merge bustage. a=bustage 2016-08-25 08:40:42 -04:00
Ryan VanderMeulen
dbf61a2219 Merge m-c to autoland. a=merge 2016-08-25 08:14:36 -04:00
Sebastian Hengst
c27af0e9f8 Backed out changeset eb0c3d8a6d53 (bug 1281220) for crashing in testBug1217581 in rc3. r=backout on a CLOSED TREE 2016-08-25 14:22:47 +02:00
Sebastian Hengst
e511035cb5 Backed out changeset 8ad552de5fa6 (bug 1295608) for not finding devtools/client/shared/l10n in mochitest-chrome. r=backout 2016-08-25 14:21:04 +02:00
Sebastian Hengst
411d6c9c44 Backed out changeset 3c716a5a7906 (bug 1295608) 2016-08-25 14:20:10 +02:00
Sebastian Hengst
183398778b Backed out changeset 51bd96b9f93d (bug 1295608) 2016-08-25 14:20:06 +02:00
Sebastian Hengst
d5a21ac842 Backed out changeset 85fabbd4395a (bug 1295608) 2016-08-25 14:20:02 +02:00
Sebastian Hengst
012a14263d Backed out changeset 69d2ac816444 (bug 1295608) 2016-08-25 14:19:58 +02:00
Sebastian Hengst
32faf70270 Backed out changeset 20f2ba4d1247 (bug 1295608) 2016-08-25 14:19:54 +02:00
Ryan VanderMeulen
4769e9643c Merge fx-team to m-c. a=merge 2016-08-25 08:12:26 -04:00
Ryan VanderMeulen
79935a96ec Merge inbound to m-c. a=merge 2016-08-25 08:10:52 -04:00
Sebastian Hengst
0106a3702b Backed out changeset e6adad24f5ec (bug 1294614) for failing own test test_smilCSSFromBy.xhtml on Linux pgo. r=backout 2016-08-25 13:46:01 +02:00
Sebastian Hengst
94b187bdc0 Backed out changeset e262963372ae (bug 1294614) 2016-08-25 13:45:09 +02:00
Sebastian Hengst
a38cc88799 Backed out changeset ac729cd10150 (bug 1294614) 2016-08-25 13:45:05 +02:00
Wes Kocher
17b6ec3771 Backed out 4 changesets (bug 1294660) for Windows reftest failures a=backout CLOSED TREE
Backed out changeset df48165b6b64 (bug 1294660)
Backed out changeset 617e22a259ab (bug 1294660)
Backed out changeset 06f05485b3fd (bug 1294660)
Backed out changeset 41225d00af33 (bug 1294660)
2016-08-24 16:00:02 -07:00
Matthew Noorenberghe
10cc1cef33 Bug 1296800 - test_prompt.html: Move promptAuth tests to their own test file. r=Dolske
MozReview-Commit-ID: 3BbtbT1q1VT
2016-08-24 15:37:00 -07:00
Sebastian Hengst
a39b57a438 Backed out changeset 21cd933e4c32 (bug 1289650) for crashing in e10s browser-chrome tests. r=backout on a CLOSED TREE 2016-08-24 23:17:37 +02:00
Sebastian Hengst
c42699270d Backed out changeset 9fa5ccaa8c6c (bug 1289650) 2016-08-24 23:15:49 +02:00
Sebastian Hengst
187e1ac303 Backed out changeset 1c7162137f66 (bug 1289650) 2016-08-24 23:15:44 +02:00
Sebastian Hengst
6245647f44 Backed out changeset beb32bdb4d1c (bug 1289650) 2016-08-24 23:15:39 +02:00
Sebastian Hengst
2c110674d6 Backed out changeset 4bc6e2713327 (bug 1289650) 2016-08-24 23:15:35 +02:00
Sebastian Hengst
dee4b7de13 Backed out changeset 3114c70baccf (bug 1272498) for build failures on OS X. r=backout on a CLOSED TREE 2016-08-24 21:24:50 +02:00
Sebastian Hengst
c8baf1171c Backed out changeset f517b043170b (bug 1272498) 2016-08-24 21:23:02 +02:00
Wes Kocher
09a532b81f Backed out changeset b357fab2feb4 (bug 1290619) for osx e10s crashes a=backout CLOSED TREE 2016-08-24 10:59:04 -07:00
Kearwood (Kip) Gilbert
8e84c574ad Bug 1297532 - Add Valve BSD License to about:license for OpenVR headers,r=gerv 2016-08-24 10:03:19 -07:00
Kris Maglione
dbe2425b27 Bug 1293548: Split browser_ext_pageAction_context into two files. r=me
MozReview-Commit-ID: 1Zj36K0xkX4
2016-08-23 18:18:27 -07:00
Kris Maglione
b0b7864ffc Bug 1271374: Cache-bust page URL. r=me
MozReview-Commit-ID: FAdxwoxRLMA
2016-08-23 18:00:58 -07:00
Randell Jesup
de99c33527 Bug 1255737: don't set a shutdown timer if we don't have a shutdown ticket r=pehrsons 2016-08-24 12:24:17 -04:00
Heiher
4872b7b8c8 Bug 1297581 - IonMonkey: MIPS64: Fix crash on running octane richards. r=jonco
---
 js/src/jit/mips64/MacroAssembler-mips64.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
2016-08-24 23:59:55 +08:00
Bob Silverberg
0de4af6392 Bug 1281884 - strict_min_version and strict_max_version aren't respected in "Load Temporary Add-on". r=aswan
Replace test_disabled_addon_can_be_enabled_after_reload in test_reload.js with test_reload_to_invalid_version_fails.

MozReview-Commit-ID: 9OEBnbwNplC
2016-08-22 13:28:17 -04:00
Nicolas Chevobbe
5dda88289f Bug 1297043 - Fix TableWidget selection when wrapTextInElements is true. r=jsnajdr
We were using the onMousedown event target to select a row, based on a data-id attribute of the cell node.
But when the wrapTextInElements is true, there is an extra span element inside the cell. And in this case,
we were trying to retrieve the data-id attribute on this span, which led to calling the selection function with a
null id, and thus, not selecting the row.
We fix this by retrieving the attribute from the correct node.
A test case was added in order to make sure the bug is fixed

MozReview-Commit-ID: Jcf42AZb2uk
2016-08-22 19:25:48 +02:00
Panayiotis Panayiotou
d903d2cbcb Bug 1285745 - Split toolbar.css into multiple files. r=ntim 2016-08-23 02:41:00 -04:00
Jaideep Bhoosreddy
47adafe937 Bug 1296589 - Add guard to prevent accessing location store before it is initialized. r=jsantell 2016-08-23 16:50:00 -04:00
Ryan VanderMeulen
c5f2f788ca Merge m-c to fx-team. a=merge 2016-08-24 09:11:58 -04:00
Gabriel Luong
31e5f0cb7e Bug 1249557 - Part 1: Display the line numbers in the css grid highlighter r=pbro 2016-08-24 09:08:17 -04:00
Ryan VanderMeulen
6ee104ada6 Merge fx-team to m-c. a=merge 2016-08-24 09:04:42 -04:00
Phil Ringnalda
6057e1ef1a Merge m-c to a CLOSED TREE f-t 2016-08-23 22:59:10 -07:00
Matthew Noorenberghe
60ad2e95f8 Bug 1276701 - Follow-up to update package-manifest.in after removing the Safari migrator on Windows. r=bustage on a CLOSED TREE
MozReview-Commit-ID: 2uoRZJqy8p2
2016-08-23 16:29:02 -07:00
Sylvestre Ledru
7b66fef498 Bug 1297534 - Revert the blocklist introduced to fix the startup crash in nsPrefBranch::GetIntPref (Websense Endpoint) r=aklotz
MozReview-Commit-ID: EMkHwgvwLyt
2016-08-24 00:03:00 +02:00
Wes Kocher
de5ecd3b21 Merge autoland to central, a=merge 2016-08-23 14:38:33 -07:00
Wes Kocher
b60cddc542 Backed out changeset 54933b5b96f1 (bug 1260324) for frequent windows reftest failures a=backout CLOSED TREE 2016-08-23 13:50:14 -07:00