becfa1ce1bad438b16b441f509c27a38f8d1a918: Bug 1287010 - Extension.jsm optimization: Use pathObj r=billm
Rob Wu <rob@robwu.nl> - Sat, 20 Aug 2016 15:37:43 -0700 - rev 311241
Push 81074 by kwierso@gmail.com at Fri, 26 Aug 2016 00:14:36 +0000
Bug 1287010 - Extension.jsm optimization: Use pathObj r=billm The API implementation is already available upfront when the schema API is generated, so `pathObj` has the implementation and can be used instead of looking up the implementation over and over again with `findPathInObject`. MozReview-Commit-ID: FnCIyoaxgA4
598895fae31dc86756be5481478d32bb177a764e: Bug 1287010 - Use schema-generated extension, split ext-extension.js r=billm
Rob Wu <rob@robwu.nl> - Thu, 18 Aug 2016 19:19:40 -0700 - rev 311240
Push 81074 by kwierso@gmail.com at Fri, 26 Aug 2016 00:14:36 +0000
Bug 1287010 - Use schema-generated extension, split ext-extension.js r=billm - This was the last non-schema-generated API in content scripts. MozReview-Commit-ID: FaIOCHoircf
2427f8eb4e83add47679215a19cabbb81dcc12a1: Bug 1287010, 1286712 - Use schema-generated runtime API, split ext-runtime.js r=billm
Rob Wu <rob@robwu.nl> - Thu, 18 Aug 2016 18:15:37 -0700 - rev 311239
Push 81074 by kwierso@gmail.com at Fri, 26 Aug 2016 00:14:36 +0000
Bug 1287010, 1286712 - Use schema-generated runtime API, split ext-runtime.js r=billm - Use schema-generated runtime API for content scripts instead of untyped API. - Move logic that cannot be run in the main process to a new file. Together with the previous patch that migrated the i18n API, this concludes the fix for bug 1286712. MozReview-Commit-ID: A3yG0x1kjwx
e4ce08beaf7474321a89ee4f45cf88e943f32618: Bug 1287010 - Use schema-generated i18n for all contexts r=billm
Rob Wu <rob@robwu.nl> - Sat, 20 Aug 2016 15:49:20 -0700 - rev 311238
Push 81074 by kwierso@gmail.com at Fri, 26 Aug 2016 00:14:36 +0000
Bug 1287010 - Use schema-generated i18n for all contexts r=billm Use schema-generated i18n API for both content script and addon contexts, instead of just the addon context. MozReview-Commit-ID: AKDAFxNv6Zs
aac2a4039d9a5a2d1256cd1c1aec9c4487eb41f3: Bug 1287010 - Prepare for moving content script APIs to schemas r=billm
Rob Wu <rob@robwu.nl> - Thu, 18 Aug 2016 17:46:57 -0700 - rev 311237
Push 81074 by kwierso@gmail.com at Fri, 26 Aug 2016 00:14:36 +0000
Bug 1287010 - Prepare for moving content script APIs to schemas r=billm - By default, schema APIs are not injected in content scripts unless the JSON schema sets the "restrictions" attribute to `["content"]`. - Added the "restrictions" attribute to the storage and test schemas. Other APIs will follow in subsequent commits and make use of the primitives introduced in this commit. MozReview-Commit-ID: 1rNjQap0BiM
61638ddb612cbce8b9042e068b189ea25c5bfdc6: Bug 1287010 - Move Management logic to SchemaAPIManager r=billm
Rob Wu <rob@robwu.nl> - Wed, 17 Aug 2016 17:51:21 -0700 - rev 311236
Push 81074 by kwierso@gmail.com at Fri, 26 Aug 2016 00:14:36 +0000
Bug 1287010 - Move Management logic to SchemaAPIManager r=billm - Moved Management logic to ExtensionUtils (as SchemaAPIManager) so that the logic can be used by addon and content processes. - Remove the `context.extension.hasPermission(api.permission)` check in `generateAPIs` because the only user (`registeredPrivilegedAPI`) was removed before in bug 1295082. - Add new category "webextension-scripts-content", intended for registering the few scripts that must be loaded in a content process. MozReview-Commit-ID: 81nhblV8YE6
e5ee47173dbdac4c28e74d310784672df3660a22: Bug 1287010 - Make environment of Context explicit. r=billm
Rob Wu <rob@robwu.nl> - Tue, 16 Aug 2016 15:51:50 -0700 - rev 311235
Push 81074 by kwierso@gmail.com at Fri, 26 Aug 2016 00:14:36 +0000
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
3b029657ddf92658aecccff1bdfa6879639951c8: Bug 1287010 - Add pathObj parameter to Schemas r=billm
Rob Wu <rob@robwu.nl> - Fri, 19 Aug 2016 00:35:07 -0700 - rev 311234
Push 81074 by kwierso@gmail.com at Fri, 26 Aug 2016 00:14:36 +0000
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
07e6245571fba5391a2ed2eb7c0a5fe86960e8ae: Bug 1287010 - Use minimal global scope for ext-*.js scripts r=billm
Rob Wu <rob@robwu.nl> - Wed, 17 Aug 2016 20:28:19 -0700 - rev 311233
Push 81074 by kwierso@gmail.com at Fri, 26 Aug 2016 00:14:36 +0000
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
88a167d7e7fddf9cef592b250f8cb7638be45bfd: Bug 1297314 - Initialize IPC union parameters to void_t for the case when RecvKeywordToURI() returns early. r=kanru
Ting-Yu Chou <janus926@gmail.com> - Wed, 24 Aug 2016 11:23:56 +0800 - rev 311232
Push 81074 by kwierso@gmail.com at Fri, 26 Aug 2016 00:14:36 +0000
Bug 1297314 - Initialize IPC union parameters to void_t for the case when RecvKeywordToURI() returns early. r=kanru MozReview-Commit-ID: DlrROVhekSF
b004e438bdc9fec1678cecdbfb2fd2f38f136171: Bug 1295763 - Allow ThreadSafeAutoRefCnt with XPCOM_GLUE - r=froydnj
Gerald Squelart <gsquelart@mozilla.com> - Tue, 16 Aug 2016 14:07:16 +1000 - rev 311231
Push 81074 by kwierso@gmail.com at Fri, 26 Aug 2016 00:14:36 +0000
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
964df423d84e2171576c0a0d783d6bac67c9cd14: Bug 1297479 - create a pref to turn off UI to undo automatic migration for use by funnelcake builds, r=Dolske
Gijs Kruitbosch <gijskruitbosch@gmail.com> - Tue, 23 Aug 2016 19:30:32 +0100 - rev 311230
Push 81074 by kwierso@gmail.com at Fri, 26 Aug 2016 00:14:36 +0000
Bug 1297479 - create a pref to turn off UI to undo automatic migration for use by funnelcake builds, r=Dolske MozReview-Commit-ID: JZQuhMxxrXU
ec654ccc2e0f748e4336d4c9ea2d2051781d10cd: Bug 1297276 - Fix another instance of mozilla/unused.h that snuck in.
Ryan VanderMeulen <ryanvm@gmail.com> - Thu, 25 Aug 2016 09:31:35 -0400 - rev 311229
Push 81074 by kwierso@gmail.com at Fri, 26 Aug 2016 00:14:36 +0000
Bug 1297276 - Fix another instance of mozilla/unused.h that snuck in. CLOSED TREE
6d94720c8e959c6f3c6f60439310cca84e5f9720: Merge m-c to autoland. a=merge CLOSED TREE
Ryan VanderMeulen <ryanvm@gmail.com> - Thu, 25 Aug 2016 09:01:10 -0400 - rev 311228
Push 81074 by kwierso@gmail.com at Fri, 26 Aug 2016 00:14:36 +0000
Merge m-c to autoland. a=merge CLOSED TREE
54c1dcc180bf043c881ee3ca92b34d016ad917af: Merge m-c to autoland. a=merge
Ryan VanderMeulen <ryanvm@gmail.com> - Thu, 25 Aug 2016 08:14:36 -0400 - rev 311227
Push 81074 by kwierso@gmail.com at Fri, 26 Aug 2016 00:14:36 +0000
Merge m-c to autoland. a=merge
dda28eb3aff3659291721355ae9e64c470385e92: Backed out changeset eb0c3d8a6d53 (bug 1281220) for crashing in testBug1217581 in rc3. r=backout on a CLOSED TREE
Sebastian Hengst <archaeopteryx@coole-files.de> - Thu, 25 Aug 2016 14:22:47 +0200 - rev 311226
Push 81074 by kwierso@gmail.com at Fri, 26 Aug 2016 00:14:36 +0000
Backed out changeset eb0c3d8a6d53 (bug 1281220) for crashing in testBug1217581 in rc3. r=backout on a CLOSED TREE
3f11b63f72a930de58a257c6030ea96aa3a357ec: Backed out changeset 8ad552de5fa6 (bug 1295608) for not finding devtools/client/shared/l10n in mochitest-chrome. r=backout
Sebastian Hengst <archaeopteryx@coole-files.de> - Thu, 25 Aug 2016 14:21:04 +0200 - rev 311225
Push 81074 by kwierso@gmail.com at Fri, 26 Aug 2016 00:14:36 +0000
Backed out changeset 8ad552de5fa6 (bug 1295608) for not finding devtools/client/shared/l10n in mochitest-chrome. r=backout
a3eb6c47f988027ba31035ac5a10b075a8ced802: Backed out changeset 3c716a5a7906 (bug 1295608)
Sebastian Hengst <archaeopteryx@coole-files.de> - Thu, 25 Aug 2016 14:20:10 +0200 - rev 311224
Push 81074 by kwierso@gmail.com at Fri, 26 Aug 2016 00:14:36 +0000
Backed out changeset 3c716a5a7906 (bug 1295608)
72490e03bad9d42671a5f1f91efa494d6d441cae: Backed out changeset 51bd96b9f93d (bug 1295608)
Sebastian Hengst <archaeopteryx@coole-files.de> - Thu, 25 Aug 2016 14:20:06 +0200 - rev 311223
Push 81074 by kwierso@gmail.com at Fri, 26 Aug 2016 00:14:36 +0000
Backed out changeset 51bd96b9f93d (bug 1295608)
a88191007b5e99f2fda11561825295f79fb78359: Backed out changeset 85fabbd4395a (bug 1295608)
Sebastian Hengst <archaeopteryx@coole-files.de> - Thu, 25 Aug 2016 14:20:02 +0200 - rev 311222
Push 81074 by kwierso@gmail.com at Fri, 26 Aug 2016 00:14:36 +0000
Backed out changeset 85fabbd4395a (bug 1295608)
(0) -300000 -100000 -30000 -10000 -3000 -1000 -300 -100 -50 -20 +20 +50 +100 +300 +1000 +3000 +10000 +30000 +100000 tip