Commit Graph

36885 Commits

Author SHA1 Message Date
Jonathan Kew
76d7847257 Bug 1301655 - pt 7 - Replace use of nsIScriptableDateFormat in crashreporter. r=gandalf 2016-10-28 12:04:07 +01:00
Jonathan Kew
57a08b0a08 Bug 1301655 - pt 5 - Replace use of nsIScriptableDateFormat for cookie date formatting. r=gandalf 2016-10-28 12:04:07 +01:00
Jonathan Kew
b9c50d4bdd Bug 1301655 - pt 4 - Replace use of nsIScriptableDateFormat with Date.toLocaleString in toolkit Update history. r=gandalf 2016-10-28 12:04:07 +01:00
Eugen Sawin
5999591289 Bug 1307886 - [1.2] Remove szip support. r=glandium 2016-10-28 12:59:23 +02:00
Jan de Mooij
5124026811 Bug 1311993 - Don't use STL wrappers for jsctypes-test. r=glandium 2016-10-28 12:17:37 +02:00
Andrea Marchesini
0467141ad5 Bug 1302697 - Containers and WebExtensions - part 3 - getAllCookieStores, r=kmag 2016-10-28 10:16:32 +02:00
Andrea Marchesini
003066e91d Bug 1302697 - Containers and WebExtensions - part 2 - Cookie API, r=kmag 2016-10-28 10:16:06 +02:00
Andrea Marchesini
c119e65ac0 Bug 1302697 - Containers and WebExtensions - part 1 - Tab API, r=kmag 2016-10-28 10:15:42 +02:00
Phil Ringnalda
b6eec64324 Merge m-c to a CLOSED TREE m-i
MozReview-Commit-ID: 2JxLeQ8GYIX
2016-10-27 20:36:38 -07:00
Phil Ringnalda
445097654c Merge m-i to m-c, a=merge
MozReview-Commit-ID: 56Hspl8LZMY
2016-10-27 19:21:47 -07:00
Carsten "Tomcat" Book
a15991721b Merge mozilla-central to autoland 2016-10-27 16:50:00 +02:00
Carsten "Tomcat" Book
061b119bf8 Merge mozilla-central to mozilla-inbound 2016-10-27 16:46:06 +02:00
Carsten "Tomcat" Book
7d0f3d5865 merge mozilla-inbound to mozilla-central a=merge 2016-10-27 16:45:00 +02:00
Phil Ringnalda
76f5d03bb6 Merge m-c to m-i
MozReview-Commit-ID: LUDPZ08eWBo
2016-10-26 18:58:54 -07:00
Phil Ringnalda
4012e61cc3 Merge m-i to m-c, a=merge
MozReview-Commit-ID: CysKZsvYf69
2016-10-26 18:40:50 -07:00
Jed Davis
13fea0b617 Bug 1268733 - Move sandbox telemetry / crash annotation code from mozsandbox to libxul. r=haik 2016-10-26 16:57:10 -06:00
Alessio Placitelli
32e51bca3b Bug 1304647 - Measure the number of total URIs visited in a "session fragment", without any filtering. r=gijs, data-review=rweiss
MozReview-Commit-ID: 8L18SKeeM7F
2016-10-18 01:58:00 +02:00
Michael Layzell
f9eea2d135 Bug 1303196 - Part 2: Connect the DocGroup and TabGroup objects to nsGlobalWindow and nsDocument, ensuring that Opener is set early enough that it is correct, r=smaug
MozReview-Commit-ID: 3rZfLw3dXkF
2016-10-27 15:53:35 -04:00
Felipe Gomes
6371e88d46 Backed out changeset 3b3de5c48e28 (bug 1301131)
MozReview-Commit-ID: DCWfU99ki4r
2016-10-30 22:12:14 -02:00
Phil Ringnalda
a356b476dd Backed out 9 changesets (bug 1253740) for multiple xpcshell bustages
Backed out changeset e8475fb54d7d (bug 1253740)
Backed out changeset 5e234fe1099c (bug 1253740)
Backed out changeset 486a200fd6f0 (bug 1253740)
Backed out changeset 97a6ee1fddfc (bug 1253740)
Backed out changeset 5cf17eb2fefe (bug 1253740)
Backed out changeset f890f42b44c4 (bug 1253740)
Backed out changeset 28cc5db83380 (bug 1253740)
Backed out changeset eb537ef54d55 (bug 1253740)
Backed out changeset 8f100caf82bf (bug 1253740)
2016-10-29 20:58:58 -07:00
Phil Ringnalda
2e903b529b Bug 1253740 followup, placate eslint 2016-10-29 20:50:58 -07:00
Ben Kelly
bffc547933 Bug 1303167 P5 Fix test that attempts to use setTimeout() during modal dialog. r=smaug 2016-10-26 10:20:16 -07:00
aleth
3393f980e5 Backed out changeset 028b297ddba4 (Bug 1311783) for eslint failures. rs=bustage-fix
--HG--
extra : rebase_source : 2b601136f1e3b28d11a7c47d29c5fc36f96366c0
extra : amend_source : 1fd328e51326cd1ac4cb670cbe93ef1160db2a24
2016-10-26 19:41:20 +02:00
Manuel Griessmayr
31a011d1d4 Bug 1311783 - Pretty print firefox -h. r=bsmedberg
--HG--
extra : amend_source : 0fa054832c397bcff54892a8eee357540db45df3
2016-10-20 11:51:00 +02:00
Aaron Klotz
bb3855e88a Bug 1310056: Part 1 - DllInterceptor improvements to support InSendMessageEx; r=m_kato
MozReview-Commit-ID: 2I1AHqKGfQi
2016-10-13 15:04:48 -06:00
stefanh@inbox.com
541bf95e7c Bug 637311 - Update charset menu before it's visible so the checkmark for current encoding is displayed on Mac the first time the menu is opened. r=Gijs. 2016-10-22 20:16:21 +02:00
Dão Gottwald
3f3fd64755 Bug 1164954 - Notify add-on listeners when adding a built-in theme that is supposed to be the selected theme. r=mossop 2016-10-26 18:25:16 +02:00
Georg Fritzsche
cea0812b0c Bug 1293318 - Always throttle environment changes and limit throttling to main pings. r=dexter 2016-09-27 10:45:31 +02:00
Thomas Nguyen
a3e4e0546b Bug 1164562 - Intermittent test_TelemetryController.js test timed out. r=dexter
MozReview-Commit-ID: 4KnTmvEyuFG
2016-10-26 18:33:22 +08:00
Wes Kocher
77f03518da Backed out 3 changesets (bug 1252871) for test_ext_all_apis.html bustage a=backout CLOSED TREE
Backed out changeset b3a08a040c8a (bug 1252871)
Backed out changeset c2a511511a72 (bug 1252871)
Backed out changeset 9c2c3780aa4c (bug 1252871)
2016-10-28 14:24:13 -07:00
Rob Wu
059e445a69 Bug 1299411 - Error messages for native messaging r=aswan
- Combine the errors for a non-existing app and lacking permissions to
  avoid information leakage.
- Do not treat normal application exit as an error.
- Create errors in the right context.
- Add tests that check the error messages.

MozReview-Commit-ID: HxBpeCSyyGN

--HG--
extra : rebase_source : f9406cec6bddd4ab740f5042dd7cc64d4a63e447
2016-09-24 13:45:02 +02:00
Rob Wu
0f0355e922 Bug 1299411 - Move native messaging to child process r=kmag
Move `runtime.connectNative` and `runtime.sendNativeMessage` to
`addon_child`. Note: This does not change the behavior for launching the
native app, it is still launched from the main process.

Now ExtensionUtils's Port is also used for native messaging ports. Now
the behavior of `runtime.connect` and `runtime.connectNative` are
identical from the extension's perspective.
In particular:
- `disconnect()` does not throw when called again (bug 1287229).
- `onDisconnect` is called with error messages (tests will be added in
  the next commit).

MozReview-Commit-ID: AyU9amiLeoL

--HG--
extra : rebase_source : be44523ca1b6555f5c356f12790c896e781d809f
2016-09-24 13:25:56 +02:00
Rob Wu
13c2b6a47f Bug 1299411 - s/on/once/ in NativeApp's sendMessage r=aswan
This communicates more clearly that we expect only one message/event.

MozReview-Commit-ID: 8jDYBVwqQtz

--HG--
extra : rebase_source : acae1570537b17027901253afc2344ffabd7a9ee
2016-09-24 13:22:31 +02:00
Rob Wu
edfaa70caa Bug 1299411 - Remove extension param from NativeApp r=aswan
The extension is always available as `context.extension`, so do not
unnecessarily pass the extension as a separate parameter.

MozReview-Commit-ID: 9OaestUAGVk

--HG--
extra : rebase_source : b1f408d3750152477195655c5a777e1ff4682a09
2016-09-24 13:18:48 +02:00
Rob Wu
4b1902cbce Bug 1299411 - Deduplicate context getter logic in ParentAPIManager r=aswan
MozReview-Commit-ID: E9MpHhal7WF

--HG--
extra : rebase_source : ad672d5dc86c2d331af8cb9cc07245acc620b8f9
2016-09-24 13:10:39 +02:00
Rob Wu
cce894192b Bug 1299411 - separate serialization from sending r=aswan
Serialization of the message should happen in the same process as the
extension context, whereas sending the message should be in the same
process as the owner of the native messaging host.
With webext-oop, the former is an addon process and the latter the
main process. Therefore it is necessary to separate the two roles.

MozReview-Commit-ID: 8BJZmn2QjLJ

--HG--
extra : rebase_source : d0665885c304b45c2f44e82f29c1a8260fe454c5
2016-09-24 13:03:20 +02:00
Rob Wu
0117bd555c Bug 1299411 - Propagate errors to port.onDisconnect via port.error r=kmag
In Chrome, runtime.lastError is set when the port is disconnected
due to an error.
Here in Firefox we choose to set a new property "error" on the port
if the port disconnected due to an error.
Since onDisconnect fires at most once, port.error is set only once.

MozReview-Commit-ID: EPaVtV4WkcQ

--HG--
extra : rebase_source : 16687b2acfccaecec0b39a4a3d9f86e91431ee55
2016-09-30 22:42:28 +02:00
Rob Wu
9181a56d02 Bug 1299411 - Unify fire and fireWithoutClone. r=kmag
Unify implementation of fire and fireWithoutClone. `fireWithoutClone`
was running the callbacks synchronously.  After this commit the callback
is run asynchronously. This is safe because the only user of this method
is `Port`'s `onDisconnect`.

MozReview-Commit-ID: 1kiYavsu3e7

--HG--
extra : rebase_source : 341c0dfa2531dd6137976eb8dfaed16edc5bbd51
2016-09-24 11:48:43 +02:00
Rob Wu
ca2c1cf947 Bug 1299411 - Pass port parameter to port.onMessage r=kmag
This should have been a part of bug 1298810, but that only set the
argument for native messaging ports, which does not use Port from
ExtensionUtils. The port parameter must also be included in runtime's
Port.onMessage to avoid regressions when the port implementations are
unified and native messaging starts using runtime's Port.

Note that starting from this commit, multiple onMessage listeners
receive the same (cloned) message instead of a new clone per listener.
This is a side effect of using `fire.withoutClone` instead of `fire`:
`fire` clones all parameters, but ports are not cloneable so we have
to use `fire.withoutClone` instead. This change with regards to message
cloning is fully compatible with Chrome's messaging API (which also
passes the same message object to all `port.onMessage` calls).

MozReview-Commit-ID: AUDuUKHkXCM

--HG--
extra : rebase_source : b91d701bba21f376935961a6eeb1a8489ac5591b
2016-09-24 11:34:26 +02:00
Rob Wu
5749ce4557 Bug 1299411 - Decouple Port implementation from API r=aswan
Decoupled the API from the implementation. From now on it is possible
to create Port instances without generating an API. This allows us to
internally use Ports to pass around messages with minimal overhead
(in the form of unnecessary clones of messages).
This will be used by native messaging.

This commit has no behavioral change, it is mostly moving around some
code and storing the internal message listener in a set.

MozReview-Commit-ID: 4h0LNJvTH9R

--HG--
extra : rebase_source : ef12309acc2060b9a2b2bc55be72b95d0f4f450e
2016-09-24 11:16:32 +02:00
Matthew Wein
20342b5f6c Bug 1252871 - Add support for runtime.onInstalled r=aswan
MozReview-Commit-ID: 3wDtv0g0BpO

--HG--
extra : rebase_source : 589f77f750d7d874cb8f1634590b944b366fb3a4
2016-10-19 10:38:29 +01:00
Matthew Wein
09fbf696c1 Bug 1252871 - Move promiseFindAddonUpdates to AddonTestUtils r=aswan
MozReview-Commit-ID: 9lmpuQSQWw1

--HG--
extra : rebase_source : e1ffd24d34875c1a9d0820a1beccd9223a4119a5
2016-09-26 10:49:05 -07:00
Matthew Wein
4b795c5eb5 Bug 1252871 - Move and sort methods imported from AddonTestUtils r=aswan
MozReview-Commit-ID: EvffSUxQkWQ

--HG--
extra : rebase_source : 1dbceece2aef7bf0743baac185a793a8c4bc6bd7
2016-09-26 10:36:51 -07:00
dimi
b21dcb43d7 Bug 1301269 - Fix update retry timer is released before firing. r=francois
MozReview-Commit-ID: KF1j2EFuxpa

--HG--
extra : rebase_source : 5c0a4d18d2fd4c6e615a975573d194344bba832c
2016-10-21 14:40:11 +08:00
Phil Ringnalda
d41a1c1da4 Merge m-c to autoland 2016-10-26 18:57:56 -07:00
Chris AtLee
d76d832b94 Bug 1303184 - Add exception list to find-dupes, and error out when unexpected dupes are detected; r=gps
MozReview-Commit-ID: JRRnj6Kw1s4

--HG--
extra : rebase_source : fb1deeb821d143f4e2998c079197ba06febad54b
extra : amend_source : 55720372bd036c7310f8719d229fc7657e522095
2016-10-26 17:00:07 -07:00
Eitan Isaacson
14a2b3bc99 Bug 1308030 - Add telemetry probes to narrate. r=bsmedberg,Gijs, data-review=bsmedberg
Added 2 probes:
1. Breakup by language of initilizations and available voice support for that language.
2. Speak time of narrate.

MozReview-Commit-ID: AGD8nON2m7N

--HG--
extra : rebase_source : 2bbd483bf48b92e290e726cea4f16c6ff5155b58
2016-10-14 16:49:57 -07:00
Kit Cambridge
f8747ad476 Bug 1312857 - Pass the correct change sources in getOrCreateTagFolder and importJSONNode. r=markh
MozReview-Commit-ID: Gga9kiC3AxK

--HG--
extra : rebase_source : 0b07551617c277aeaec619d0a4432874fc77e9ec
2016-10-25 11:39:56 -07:00
Sebastian Hengst
7e75e60f1f Backed out changeset 6a904e8a06a7 (bug 1272890) for timing out in test_ext_tab_teardown.html. r=backout 2016-10-26 19:01:38 +02:00
Tomislav Jovanovic
204e680596 bug 1247793 - Implement download() options: method, headers and body, r=aswan
MozReview-Commit-ID: 2muhcweY8Fo

--HG--
extra : rebase_source : 30f0aabce48717caa963610c2fcf831a0b890702
2016-10-22 12:06:22 +02:00
Carsten "Tomcat" Book
9031c83f32 Merge mozilla-central to autoland 2016-10-26 17:14:27 +02:00
Henry Chang
45d5eda33b Bug 1312323 - Consider the "single encoded value" case and bubble the decoding error up. r=francois.
MozReview-Commit-ID: 1GNFkMQ1JoD
2016-10-26 10:03:49 +08:00
Tomislav Jovanovic
47aa3f8372 bug 1272890 - implement match_about_blank for content scripts r=kmag
MozReview-Commit-ID: 3iZLpUw5LF4

--HG--
extra : rebase_source : d520a13211584af096f68cd0a2cfec022a72e413
2016-10-12 05:48:04 +02:00
Phil Ringnalda
0a5faee022 Merge m-c to autoland 2016-10-25 22:08:13 -07:00
Phil Ringnalda
8cf1367dd8 Merge m-i to m-c, a=merge
MozReview-Commit-ID: FnnOWQ3xKPi
2016-10-25 22:03:31 -07:00
Carsten "Tomcat" Book
31bdfd3ad3 Merge mozilla-central to mozilla-inbound
--HG--
rename : gfx/skia/skia/src/animator/SkCondensedDebug.cpp => gfx/skia/skia/src/animator/SkCondensedDebug.inc
rename : gfx/skia/skia/src/animator/SkCondensedRelease.cpp => gfx/skia/skia/src/animator/SkCondensedRelease.inc
2016-10-25 10:46:44 +02:00
Carsten "Tomcat" Book
59a29b8b1c merge mozilla-inbound to mozilla-central a=merge 2016-10-25 10:31:03 +02:00
Eric Rahm
c15406fea3 Bug 1312143 - Delete toolkit/obsolete. r=John-Galt
This removes the obsolete toolkit directory. A few references to dialogOverlay
have been updated to just used <dialog> directly. The InlineSpellCheckerUI var
has also been moved directly to browser.js and defined as lazy getter.

MozReview-Commit-ID: JZfi0W2wqCL
2016-10-24 18:23:24 -07:00
Wes Kocher
e636b54dfb Backed out changeset 2849f953881f (bug 1311189) for mochitest-5 failures a=backout 2016-10-24 16:49:55 -07:00
Stephen A Pohl
872ca624a7 Bug 1183037: Ensure that autocomplete popups can be displayed again after being dismissed the first time. r=mconley 2016-10-24 11:46:16 -04:00
Carsten "Tomcat" Book
b9e15ec151 Merge mozilla-central to mozilla-inbound 2016-10-24 16:56:37 +02:00
Mike Conley
3030fff48c Bug 1311189 - Put back the separator between form history and datalist entries in the autocomplete popup. r=MattN
MozReview-Commit-ID: 2lRauTr9EQA

--HG--
extra : rebase_source : 5364489af1e9647927756eae09d4512f24f57101
2016-10-19 13:55:06 -04:00
Mark Hammond
35966d2893 Bug 1312642 - PlacesSyncUtils should pass SOURCE_SYNC to PlacesUtils.bookmarks.reorder. r=kitcambridge
MozReview-Commit-ID: 4EsnU7LSWDG

--HG--
extra : rebase_source : 6c82b86c4098e4276e110aa481863c648c67ecc8
2016-10-25 13:47:33 +11:00
Rob Wu
7583495789 Bug 1287007 - Work-around for test failure in test_ext_cookies.html r=billm
There is a timing-sensitive bug in window.create and/or cookies API.
I haven't figured out the exact details, but created a minimal
test case and reported it at bugzil.la/1309637

Without this patch, the test will fail as described in that bug report.

MozReview-Commit-ID: DiJOao8h8Q7

--HG--
extra : rebase_source : 6a24f2570799cf113e544c68ef3d69645991e4a3
2016-10-12 19:13:46 +02:00
Ton
db0e472002 Bug 1309297 - Change "Show Folder" to "Open Folder" (about:profiles) in Windows. r=mossop
--HG--
extra : rebase_source : 9d3c21e25b49f7b112a03ec575840bccafb07d40
2016-10-11 19:36:33 +02:00
Jessica Jong
e732e68921 Bug 1310076 - Add 'datetime-local' to the list of valid types attributes for <input>. r=smaug 2016-10-24 03:35:00 +02:00
Tomislav Jovanovic
1975d67b88 bug 915036 - Implement DownloadSource.adjustChannel callback to support POST requests r=Paolo
MozReview-Commit-ID: 1RplqGhjtn6

--HG--
extra : rebase_source : 72c1300be889a61740cf6eca9c9e21fb979504a7
2016-10-21 15:54:18 +02:00
Ryan VanderMeulen
a57d15ff6a Merge inbound to m-c. a=merge 2016-10-23 13:16:27 -04:00
Valentin Gosu
db9440de51 Bug 1305204 - (Part 2) Backout bug 1275746 a=backout
MozReview-Commit-ID: H8aCKdJzEbR
2016-10-23 14:24:45 +02:00
Valentin Gosu
99164c0eef Bug 1305204 - (Part 1) Backout bug 1275746 a=backout
MozReview-Commit-ID: FtOalze9SdY
2016-10-23 14:24:41 +02:00
Sebastian Hengst
3707bccaf0 Merge mozilla-central to mozilla-inbound. r=merge a=merge 2016-10-22 23:03:08 +02:00
Sebastian Hengst
74dda94ef5 Merge mozilla-central to autoland. r=merge a=merge 2016-10-22 22:59:19 +02:00
Sebastian Hengst
30bb8ae0d4 Backed out changeset cc266f8bc70a (bug 1272890) for frequent failures in test_ext_contentscript_about_blank.html and a cascade of non-webextension tests. r=backout a=backout
MozReview-Commit-ID: 74wvhzI6fky
2016-10-22 22:56:18 +02:00
Ryan VanderMeulen
75888fe1aa Merge autoland to m-c on a CLOSED TREE. a=merge 2016-10-21 17:12:27 -04:00
Ryan VanderMeulen
5c4d7020f2 Merge m-c to inbound. a=merge 2016-10-21 11:08:45 -04:00
Michelangelo De Simone
07411b2cc6 Bug 1310027 - Remove DOM/mobilemessage and related code. r=Ehsan
MozReview-Commit-ID: ENmSuOCdTnA

--HG--
extra : rebase_source : a178eee07034fb2aa1415b64bec1946230fd1c5e
2016-10-17 17:26:51 -07:00
Henry
36fa608182 Bug 1307541 - ProtocolParserProtobuf to init and return update time properly. r=francois.
MozReview-Commit-ID: CmVWVKUeunJ

--HG--
extra : rebase_source : e8cd28a805b892fd26ca9bede3523a04f1bb5686
2016-10-18 14:45:21 +08:00
Tomislav Jovanovic
b20233c434 bug 1272890 - implement match_about_blank for content scripts r=kmag
MozReview-Commit-ID: 3iZLpUw5LF4

--HG--
extra : rebase_source : dad8e344fe1f16fb5fe93d8ad3598330d79167fd
2016-10-12 05:48:04 +02:00
Gregory Szorc
6e2794cb56 Bug 1277359 - Fix syntax error introduced in 87fe724cfc90; r=me 2016-10-21 18:37:02 -07:00
Ralph Giles
fd8841c0d4 Bug 1277359 - Report SSE2 instruction support on linux update pings. r=rstrong
We need to advertise this to the update server to avoid downloading
updates which won't run because of unsupported cpu features on
the recipient's hardware.

MozReview-Commit-ID: H36VXnD3TnW

--HG--
extra : rebase_source : ec382626f96f4f863b9ed44c5aec529d541815b9
2016-10-07 16:25:42 -07:00
Ryan VanderMeulen
23a915d778 Merge m-c to autoland on a CLOSED TREE. a=merge 2016-10-21 17:15:38 -04:00
Thom Chiovoloni
0117e0cf73 Bug 1299978 - Reupload parents of revived bookmarks and buffer folder deletion during sync r=markh,rnewman
MozReview-Commit-ID: BDfp5FffCWh

--HG--
extra : rebase_source : 0caecb27d753577373e150dd770370bd328dbe32
2016-10-05 14:04:50 -04:00
Jared Wein
43af4edf06 Bug 1311450 - Only show the 'touch' padding for the select dropdown when opened via touch. r=mconley,smaug
MozReview-Commit-ID: 521oAj1NzX7

--HG--
extra : rebase_source : c6e72987cfd0c237269ff7f203d47f1e21652e85
2016-10-20 12:45:39 -04:00
Andrew Swan
90b062a959 Bug 1311180 Switch mozAddonManager to frame message managers r=rhelmer
MozReview-Commit-ID: GbX0VRn4HUF

--HG--
extra : rebase_source : a852a68d0c0b07f7844650e41783c577534c4527
extra : source : 5656093771903569104f411742748777ae3585a5
2016-10-11 16:40:24 -07:00
Sumit Tiwari
bd39055a71 Bug 1309249: Add filepath to OS.File.read errors for lz4 decompression;r=Yoric
MozReview-Commit-ID: 3zeRnFYot69

--HG--
extra : rebase_source : 6d702ad8956744ad8dfa0429e0449f1613bb7e17
2016-10-16 11:30:47 -04:00
Sebastian Hengst
429cfcada7 Bug 1298211 - Implement chrome.topSites: Follow-up: Disable test on Android. r=me on a CLOSED TREE to fix xpcshell bustage 2016-10-20 21:00:20 +02:00
Kit Cambridge
bd8b26cc15 Bug 1310554 - Simplify BookmarkSyncUtils.order and use map lookups in Bookmarks.reorder. r=mak
Bug 1293365 fixed the query in `Bookmarks.reorder` to leave missing
entries in place, instead of moving them to the end of the folder. It
also correctly ignores nonexistent children, so we can
remove all the extra logic in `PlacesSyncUtils`.

We can also use a map instead of two linear searches to look up
indices in the `Bookmarks.reorder` sorting function. This reduces the
time to sort an array of 10k children from 30 seconds to less than a
second on my dev machine.

MozReview-Commit-ID: G9vuC12JXq4

--HG--
extra : rebase_source : 402e55b44f43a672d847f1f457bcb3538819e341
2016-10-19 19:06:34 -07:00
Shane Caraveo
6b82481239 Bug 1298211 - Implement chrome.topSites, r=aswan
MozReview-Commit-ID: I043WQoDbrf

--HG--
extra : rebase_source : 2e1e1e8890e1b195bd318d0635e56c73ac838c4f
2016-10-19 13:52:27 -07:00
Dave Townsend
c84765b00c Bug 1311459: Fix unsafe CPOW warnings in toolkit/mozapps/extensions/test/xpinstall. r=rhelmer
MozReview-Commit-ID: BX51ugGD54x

--HG--
extra : rebase_source : 3949a3a0dfbc5966b8db85e4bbf7b33a50733ee2
2016-10-19 11:31:57 -07:00
Rob Wu
c3c9744957 Bug 1287007 - Fix timing issue in test_delay_update_webextension.js r=rhelmer
The onUpdateAvailable listener is asynchronously notified, so the caller
(i.e. the test) cannot assume that a message sent immediately after
triggering an update would trigger the `browser.test.onMessage` listener
that was added in the onUpdateAvailable event handler.

MozReview-Commit-ID: 12n64f5l3RA

--HG--
extra : rebase_source : 6ba7923359786c4ccd7f4d29664a8567e253e0cd
2016-09-24 14:54:53 +02:00
Rob Wu
70ca4c8753 Bug 1287007 - Make window.close in extension pages async r=billm
Test coverage by tabs.onRemoved + window.close() in:
toolkit/components/extensions/test/mochitest/test_ext_tab_teardown.html

MozReview-Commit-ID: 7asg2XGrTaQ

--HG--
extra : rebase_source : 4498725a207e1863bb5a1f0ee58673e6976df1f8
2016-09-13 20:26:18 -07:00
Rob Wu
67b8230b49 Bug 1287007 - Remove .contentWindow from ProxyContext r=billm
MozReview-Commit-ID: ASNigrM07yz

--HG--
extra : rebase_source : e9169090ec8cb1d9822f235faa15516403576dde
2016-09-13 16:02:03 -07:00
Rob Wu
f81e1a59a2 Bug 1287007 - Fix test_ext_management_uninstall_self.js r=bsilverberg
The test logic was broken by design: Two tests uninstall the addon,
but only one uninstall observer was used. Consequently, the second
test resumes the test before the addon was actually uninstalled.

It is probably sheer luck that the test worked before.

MozReview-Commit-ID: DcT48ZQ2bRp

--HG--
extra : rebase_source : 6ab304eab2c306106b5383726fbdf73775c5060a
2016-09-13 13:59:37 -07:00
Johann Hofmann
65574a55ec Bug 1302474 - Add a pref to disable login autofill on insecure forms. r=MattN
MozReview-Commit-ID: Fpz5108WvpR

--HG--
extra : rebase_source : 62b5ad3289dd7ac229bd7270cdc9717ac5695a2c
2016-09-13 12:04:46 +02:00
Rob Wu
ec11370338 Bug 1287007 - Enable proxying of most APIs. r=billm
MozReview-Commit-ID: KrI42XrsVVG

--HG--
extra : rebase_source : 87958230f68c6866b4d62eff1f325f968ec09252
2016-09-12 21:19:53 -07:00
Rob Wu
1c0083af9d Bug 1287007 - Fix timing issue in test_ext_storage.js r=billm
MozReview-Commit-ID: 63Ra7ThuHuf

--HG--
extra : rebase_source : 386c565811fc07934653540905935607f58d7b4d
2016-09-13 00:45:00 -07:00
Rob Wu
0c66504d77 Bug 1287007 - Fix "onclick" in contextMenus, to child. r=billm
Main thing: Making contextMenus implementation webext-oop compatible.

Preparation:

- Add getParentEvent to ChildAPIManager to allow use of remote events.
- Introduce `addon_parent_only` to "allowedContexts" to only generate a
  schema API in the main process.
- Do not fill in `null` for missing keys if the schema declares a key as
  `"optional": "omit-key-if-missing"`. This is needed for the second
  point in the next list.

Drive-by fixes:

- Ensure that the "onclick" handler is erased when a context closes.
- Do not clear the "onclick" handler in `contextMenus.update` if the
  onclick key has been omitted (parity with Chrome).
- Remove some unnecessary `Promise.resolve()`
- Add extensive set of tests that check the behavior of the contextMenus
  APIs with regards to the onclick attribute in various scenarios.

MozReview-Commit-ID: A5f3AUQzU8T

--HG--
extra : rebase_source : 0464a1aa2387343a6f1d0fcd8fbabfdd1a68b1bb
2016-09-12 18:26:03 -07:00
Rob Wu
fcb710d311 Bug 1287007 - Move part of browserAction and pageAction to child r=billm
And remove redundant `Promise.resolve()` because it is the default
for async functions.

setIcon is not supported on Android, so there was no need to change
mobile/android/components/extensions/ext-pageAction.js.

MozReview-Commit-ID: 94ebaJFxLAi

--HG--
extra : rebase_source : 20466181501b264ba33fc8ab61fdf2bed20f9eef
2016-09-11 04:18:35 -07:00
Rob Wu
095763db5a Bug 1287007 - Set parent cloneScope to child cloneScope r=billm
This is only to help with migration. This change allows all APIs to
behave identical regardless of whether the API is proxied.

Change cloneScope to be a getter because cloneScope is
`this.contentWindow`, which may be nulled when the context navigates away
(but stays in the bfcache).

Any API that is not proxied must have an identical clone scope to make
sure that properties such as toJSON (in the native messaging
stringifier) and ArrayBuffer (in webRequest as requestBody) are visible
to the caller.

MozReview-Commit-ID: 9aT3SUBieHK

--HG--
extra : rebase_source : f5e4eef52100e42b6fcdc3a43fa7676e7fc3dabc
2016-09-11 03:10:21 -07:00
Rob Wu
03c9fa02f3 Bug 1287007 - Track message manager / browser swaps r=billm
Neither the message manager nor the XUL browser is guaranteed to be
constant during a ProxyContext's lifetime.

Add a new class to follow the `<browser>` belonging to the current
docshell and update the ProxyContext properties as needed.
NOTE: The `BrowserDocshellFollower` class assumes that docshells are
swapped using `newBrowser.swapDocShells(oldBrowser)`. If this
assumption turns out to be false, then the tracker will lose track of
the `<browser>`. See bugzil.la/1301837 for more details.

Also, renamed `messageManager` to `currentMessageManager` because the
`messageManager` property is overwritten by the `setContentWindow` hack
in WannabeChildAPIManager in ExtensionChild.jsm.

browser/components/extensions/test/browser/browser_ext_currentWindow.js
provides test coverage for this feature once the `test` API goes through
a ChildAPIManager instead of directly through a WannabeChildAPIManager.
Why? Because that test calls `test.onMessage.addListener` in the script
that is loaded in a popup page. Popups are loaded in two stages: First
the content is preloaded in a `<browser>`, and then when the popup is
shown a new `<browser>` is created and the docshells are swapped.
When the script runs while the popup script is being preloaded, the
`ParentAPIManager` receives the IPC message with the target set to the
`<browser>` used for preloading. When the API response is ready,
`target.messageManager.sendAsyncMessage` is called. Meanwhile the
docshells have been swapped, the message manager is gone and this fails.
With this patch, the message manager is correctly tracked and this test
passes.

MozReview-Commit-ID: C5Z0ZJRXKyw

--HG--
extra : rebase_source : 63e6c408d0e7f58dca81810771810cf6fe7b5d5b
2016-09-09 23:04:04 -07:00