Commit Graph

36970 Commits

Author SHA1 Message Date
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
Rob Wu
6db061b492 Bug 1287007 - Use frame script to initialize background/popup page r=billm
MozReview-Commit-ID: 8Di1nTnwpbU

--HG--
extra : rebase_source : 453a97709cce2a038839a909e2d61ce9d1a3a84c
2016-09-08 20:41:43 -07:00
Carsten "Tomcat" Book
2e7511ed5a merge mozilla-inbound to mozilla-central a=merge 2016-10-20 16:47:39 +02:00
Evan Tseng
1312aff5f5 Bug 1256074 - Always present a 'search' option when the location bar search is "fixed" to an URL. r=mak
MozReview-Commit-ID: 7olZPhnmjTH

--HG--
extra : rebase_source : fdf4fdbdd265369ddbad3da84cf5885cac16af98
2016-10-05 17:39:08 +08:00
Steve Chung
a046828f4a Bug 1300988 - Part 2: Move MockDocument to toolkit/modules and refactor unit test in passwordmgr. r=MattN
MozReview-Commit-ID: 16jZ7UzhVDf

--HG--
rename : toolkit/components/passwordmgr/test/unit/head.js => toolkit/modules/tests/MockDocument.jsm
extra : rebase_source : bf23ad4432cc9a30fb1295dd6ed688a11ab597e3
2016-10-18 18:45:24 +08:00
Luke Chang
aa29135011 Bug 1309481 - Remove leftover code specific to Logins from JSONFile.jsm and add tests; r=Paolo
MozReview-Commit-ID: DjEPCN2PXA1

--HG--
extra : rebase_source : d1150d6a0cbc94282d6120f38c094fb58eed9d5e
2016-10-17 18:26:35 +08:00
Phil Ringnalda
5f307bd640 Merge f-t to m-c, a=merge
MozReview-Commit-ID: 2EvSTWDWg4t
2016-10-19 18:27:04 -07:00
Carsten "Tomcat" Book
036a7c4324 merge mozilla-inbound to mozilla-central a=merge 2016-10-19 17:02:38 +02:00
Carsten "Tomcat" Book
8f39c7b817 merge fx-team to mozilla-central a=merge 2016-10-19 17:00:47 +02:00
Phil Ringnalda
49e5afec54 Merge m-c to f-t 2016-10-18 19:57:44 -07:00
Phil Ringnalda
6c91017f20 Merge m-i to m-c, a=merge
MozReview-Commit-ID: FA9OZyjP59N
2016-10-18 19:36:18 -07:00
Vincent Lequertier
1d14535329 Bug 1303355 - Error in parsing value for -moz-box-pack, chrome://mozapps/skin/extensions/newaddon.css, r=florian. 2016-10-19 00:36:59 +02:00
Benjamin Smedberg
07b45aaa26 Fix merge conflict bustage for removed file from bug 1307445 part A.
MozReview-Commit-ID: LQ5tZclbtb6

--HG--
extra : rebase_source : 01447300d41eaa074cf11658ceb8f135c7aeb27e
2016-10-18 09:32:57 -04:00
Andi-Bogdan Postelnicu
b91bc4c721 Bug 1308868 - Add ignore-initialization-check annotation to time from RecentURIKey. r=adw
MozReview-Commit-ID: ZDCY7i19x5
2016-10-18 15:27:46 +03:00
Phil Ringnalda
8377010e6a Merge m-c to m-i
MozReview-Commit-ID: Ihd0iacfcIW

--HG--
rename : devtools/.eslintrc => devtools/.eslintrc.js
2016-10-18 19:45:02 -07:00
Carsten "Tomcat" Book
5c08a87874 merge mozilla-inbound to mozilla-central a=merge 2016-10-18 10:38:37 +02:00
Wes Kocher
9abb1e1c41 Merge m-c to inbound, a=merge 2016-10-17 15:37:34 -07:00
Wes Kocher
573dc19393 Merge inbound to central, a=merge 2016-10-17 15:34:14 -07:00
Eitan Isaacson
b69aa4a817 Bug 1310448 - Wait for narrate button to appear before starting tests. r=Gijs
MozReview-Commit-ID: 8MPzdZvAT1

--HG--
extra : rebase_source : 8b28455d6da601582252674d3092845857b1d0cf
2016-10-17 12:17:39 -07:00
Neil Deakin
9214951d19 Bug 1305362, skip disabled menuitems in menulists on all platforms, r=ksteuber 2016-10-17 11:56:34 -04:00
Ted Mielczarek
e9130abab5 bug 1305731 - Revert workaround from bug 1301751 now that we have updated to Rust 1.12. r=froydnj
MozReview-Commit-ID: 3akbELExfKT

--HG--
extra : rebase_source : 0308214bae6eb683df65991fc91d41679acd3530
2016-10-17 10:47:30 -04:00
Gabriele Svelto
ddc06141af Bug 1280484 - Add stack traces to the crash ping r=bsmedberg 2016-10-17 12:56:45 +02:00
Florian Quèze
989136e246 Bug 1307445 - remove last CSS references to :-moz-type-unsupported, r=mconley. 2016-10-19 16:25:05 +02:00
Iris Hsiao
11e6fae07c Backed out changeset f82c28837b07 (bug 1299707) for crashes @ gdk_disable_multidevice 2016-10-18 11:44:01 +08:00
Phil Ringnalda
a2f4b15464 Merge m-c to autoland 2016-10-18 19:50:46 -07:00
Aaron Klotz
d65e835225 Bug 1310788: Modify e10s check to allow a11y on Windows Vista and newer; r=jimm
MozReview-Commit-ID: 19OzVHDcsNM

--HG--
extra : rebase_source : 5d3ee4a83ac4eb5e7b0f4816e5e1548ccc9d5b67
2016-10-17 13:07:51 -06:00
Maja Frydrychowicz
b6a4aec44c Bug 1302153 - Test jobs busted when artifact build forced on linux64 debug taskcluster; r=chmanchester
Upload symbols when --enable-artifact-build-symbols is specified.
Add --enable-artifact-build-symbols to artifact config for linux, linux64,
win32, win64, macosx64.

MozReview-Commit-ID: LpuwfzWXPBH

--HG--
extra : rebase_source : 137466aa3c8c327cf1932e012927fceb451d82ab
2016-10-13 17:42:27 -04:00
Matthew Noorenberghe
e911e68e21 Bug 1310049 - Refactor FormLikeFactory to its own module for use by Form Autofill. r=steveck
This introduces LoginFormFactory which wraps FormLikeFactory for use with login-specific contexts.

MozReview-Commit-ID: 6rPz5JOy3Yp

--HG--
rename : toolkit/components/passwordmgr/LoginManagerContent.jsm => toolkit/modules/FormLikeFactory.jsm
extra : rebase_source : b2a28803def0dce3de4a01db5bdbc3217c5d0f83
2016-10-18 13:31:09 -07:00
Drew Willcoxon
4dfb466667 Bug 1290490 - Firefox shouldn't RTL the first item in the URL dropdown list when typing a URL. r=mak
MozReview-Commit-ID: IWPYKhdjrDg

--HG--
extra : rebase_source : 48d764d058c33eea5cdebb82a0f434361ea68418
2016-10-18 13:17:29 -07:00
Makoto Kato
5e1f1dcb49 Bug 1299707 - Disable XInput2 without MOZ_USE_USE_XINPUT2 on content process. r=acomminos
Actually, we don't turn of xinput2 on content process.  So, although chrome process cannot detect touch screen device, content process can detect it.

So if we turn off xinput2 on chrome process, content process should be turned off.

MozReview-Commit-ID: 1kfsDBpqhC1

--HG--
extra : rebase_source : 6fc8ccb1b15065fc9ba0a25ddd934adc3bf21c6b
2016-10-07 12:24:56 +09:00
Wes Kocher
664cdfb48f Merge m-c to autoland, a=merge 2016-10-17 15:37:57 -07:00
Benjamin Smedberg
ed2a6c5769 Bug 1307445 part A - Don't ever show "A plugin is needed to display this content." or "This plugin is disabled." - Just always use fallback content or empty content. r=mconley+sebastian
MozReview-Commit-ID: ClnOkK3sWIK

--HG--
extra : rebase_source : 0325b830088bef3a7ee5a506041c8eafafbf50e2
2016-10-18 08:42:12 -04:00
Tooru Fujisawa
4c192c39e8 Backed out changeset 9d11e38b5fcf for bc test failure (bug 1308775) 2016-10-18 18:16:27 +09:00
Carsten "Tomcat" Book
b9686db6da Merge mozilla-central to mozilla-inbound 2016-10-18 10:44:04 +02:00
Tooru Fujisawa
72306c7735 Bug 1308775 - Use Element.scrollBy with behavior: "instant" in auto scroll. r=felipe 2016-10-18 16:46:30 +09:00
Gregory Szorc
fe70ef84b2 Bug 1307435 - Change compression level of symbols files; r=ted
Currently, we use the gzip default of 6. Our history with zlib tells
us that reducing the compression level to 5 or 4 often yields
significantly faster operations while only sacrificing a little
storage. Measurement here shows similar results.

On libxul.so.dbg:

level      time      compressed
6          21.0s     231,045,158
5          15.8s     232,926,435
4          12.2s     237,587,011
3          11.1s     245,104,157

Changing the level from 6 to 4 increases the size of the compressed
file by 6,541,853 bytes, or 2.83%. But it saves ~10s from the long
pole of builds in automation. And that's just from libxul.

When you factor in all compressed files, this change has a significant
impact on symbol generation.

Before: 221s wall; 150s CPU; 311,424,856 bytes
After:  192s wall; 130s CPU; 318,085,885 bytes

That's on my machine, which has a 4.0 GHz CPU. CPU time savings in
automation will likely be more significant.

MozReview-Commit-ID: 7CbRSZvUayj

--HG--
extra : rebase_source : 87c33d6bb57c9a43613800ca13d91a54f5a95317
2016-10-04 06:16:29 -07:00
Rob Wu
90c596e654 Bug 1310718 - Don't wrap invalid listeners r=billm
`makeFilteringListener` uses the listener as a key for a WeakMap, so we
cannot blindly use the listener as a WeakMap key.  addEventListener and
removeEventListeer only accept objects/functions (and undefined/null),
so not wrapping will lead to a descriptive error message from
addEventListener/removeEventListeer.

MozReview-Commit-ID: HF2WAyXDeD9

--HG--
extra : rebase_source : 5574c118cf0881ddc1477ceeb1b9c979814d67d6
2016-10-17 18:54:23 +02:00
Carsten "Tomcat" Book
54cb47289d Merge mozilla-central to autoland 2016-10-17 11:38:07 +02:00
Carsten "Tomcat" Book
d6850a3a86 merge mozilla-inbound to mozilla-central a=merge 2016-10-17 11:19:02 +02:00
William Chen
5461c1c1c7 Bug 862395 - Part 5: Tests for web notifications requireInteraction. r=baku
--HG--
extra : rebase_source : fe0c215a45ad1b158469cef3e43887cebb9d286f
extra : histedit_source : edf21f7a85cfeae449e1744b033f75f9c0018ef1
2016-10-10 18:49:11 -07:00
William Chen
9899d20949 Bug 862395 - Part 4: Add preference for number of XUL alerts to show with requireInteraction set to true. r=baku
--HG--
extra : rebase_source : 6f4fa3ccd97193b5d6a552747af0fdf600514d39
extra : histedit_source : 81c60c10d3b65f95d41b69aee3a1c17d997ca3bf
2016-10-11 01:46:38 -07:00
William Chen
47ed3011e6 Bug 862395 - Part 2: Update XUL web notifications to persist if require interaction flag is set. r=jaws
--HG--
extra : rebase_source : 550d70090cec603353653a422b7cd8e53e12b39c
extra : histedit_source : a9e1541f2d96a7c9081dc7173fb5372fa7f3010c
2016-10-12 16:17:13 -07:00
William Chen
2e57e150b9 Bug 862395 - Part 1: Add requireInteraction property to web notifications. r=baku
--HG--
extra : rebase_source : c1519b7a501427b67638fd3ddacb2ce4e06c3c98
2016-10-12 17:27:40 -07:00
Nathan Froyd
e818915fae Bug 1304815 - rearrange Rust crate structure for newer Rust releases; r=ted.mielczarek
In our current Rust world, we have the following dependency structure:

  xul.so --------------------------+
                                   |
  xul-gtest.so -+--> xul.a --------+-> gkrust
                |
                +--> gkrust-gtest

This structure results in link errors with multiply-defined symbols
between gkrust-gtest and gkrust with newer Rust releases when linking
xul-gtest.so.  So we have to do something different.

Our new structure is:

  xul.so --------------------------+
                                   |
  xul-gtest.so -+--> xul.a --------+-> gkrust --+-> gkrust-shared
                |                               |
                +--> gkrust-gtest --------------+

and we enforce that a given shared library can only have at most one
Rust library that it depends on.  Said Rust library is assumed to
include all significant Rust dependencies of the dependent static
libraries as well.  (In the above structure, gkrust is simply a wrapper
around gkrust-shared, so gkrust-gtest doesn't have to include gkrust as
a dependency.)
2016-10-15 18:16:13 -04:00
Kartikaya Gupta
76e61ea656 Bug 1275314 - Add an API to allow flushing out in-progress checkerboard reports. r=botond,ehsan
MozReview-Commit-ID: 6G4uIHcGQAv
2016-10-15 08:45:01 -04:00
David Anderson
95f369864c Add GPU process support to the crash reporting service. (bug 1278717, r=ted) 2016-10-14 23:59:29 -07:00
Kris Maglione
4ded38ffdb Bug 1309351: Part 1 - Replace child_process/subprocess.js with a thin wrapper around Subprocess.jsm. r=rpl f=mhowell
MozReview-Commit-ID: 7r9pSC8v1T

--HG--
extra : rebase_source : b3f540e80f7722c3d0970981a83a059eb6d4991a
2016-10-14 18:01:42 -07:00
Leandro Manica
c091b36f51 Bug 1306296 - Add shortcut key to Simplify Page feature. r=mconley 2016-10-14 12:01:00 -04:00
Wes Kocher
aeac5ac648 Backed out changeset 73a60f9b3c2f (bug 1275314) for GTest bustage CLOSED TREE
--HG--
extra : histedit_source : 5498a231b3e43706e93835242d246489697dcd9c%2C1ba18b3300a0dfd8b03881bf431334be1f866eb8
2016-10-14 14:52:44 -07:00
Wes Kocher
727d0de706 Merge m-c to inbound, a=merge CLOSED TREE 2016-10-14 14:51:44 -07:00
Wes Kocher
42083975b0 Merge inbound to central, a=merge 2016-10-14 14:40:49 -07:00
Wes Kocher
03c85fb5d5 Merge autoland to central, a=merge 2016-10-14 14:23:59 -07:00
Robert Strong
aa6291082c Bug 1309961 - don't allow preferences to interfere with running updateManagerXML.js test. r=mhowell 2016-10-14 14:10:18 -07:00
stefanh@inbox.com
d284d0bba8 Bug 1192053 - Native theming of Mac source lists, css changes. r=Gijs. 2016-10-14 22:45:34 +02:00
Kartikaya Gupta
5c98a9d950 Bug 1275314 - Add an API to allow flushing out in-progress checkerboard reports. r=botond,ehsan
This is useful for talos tests that record checkerboarding. In those tests, the
page might still be in a checkerboard state at the end of the test, so it may be
necessary to flush out the report for measurement.

MozReview-Commit-ID: CtafG4NAGHN
2016-10-14 15:37:58 -04:00
Wes Kocher
b6f29fa6ab Backed out 5 changesets (bug 1305145) for windows build failures a=backout
Backed out changeset 0f39b7305d41 (bug 1305145)
Backed out changeset ab38e43fdcb6 (bug 1305145)
Backed out changeset aece1b8a8673 (bug 1305145)
Backed out changeset 85082a111806 (bug 1305145)
Backed out changeset 33e563d2d834 (bug 1305145)
2016-10-14 13:07:58 -07:00
Wes Kocher
7df86d1999 Backed out 3 changesets (bug 1309699) because this wasn't supposed to land on trunk a=backout
Backed out changeset b10e48ea5d20 (bug 1309699)
Backed out changeset 829c16e72fb7 (bug 1309699)
Backed out changeset 559fa765dbf1 (bug 1309699)
2016-10-14 12:20:24 -07:00
Sebastian Hengst
c4a0ba38de Bug 1304829 - Rename nsXULAppInfo's isReleaseBuild to isReleaseOrBeta. r=ted
MozReview-Commit-ID: J4F27Z1Hy7h
2016-10-14 13:31:39 +02:00
Carsten "Tomcat" Book
b474cb6353 merge mozilla-inbound to mozilla-central a=merge 2016-10-14 11:59:12 +02:00
Carsten "Tomcat" Book
115b5057c4 merge fx-team to mozilla-central a=merge 2016-10-14 11:57:10 +02:00
Aaron Klotz
b785d4851f Bug 1218473: Add check for presence of NVIDIA Optimus drivers to WindowsNopSpacePatcher; r=ehsan
MozReview-Commit-ID: 7WhWWbRHOw7
2016-10-13 17:10:52 -06:00
Aaron Klotz
25ab6720e1 Bug 1240848: Adds additional instructions to x64 detour patcher and prevents register clobbering in jmp from trampoline; r=ehsan
MozReview-Commit-ID: 7DCQZc9eoQI
2016-10-13 14:56:23 -06:00
Ehsan Akhgari
a34b273ba0 Bug 1309924 - Remove the needless arguments to nsUrlClassifierClassifyCallback's constructor; r=francois 2016-10-13 18:42:06 -04:00
Wes Kocher
5be253cdb6 Bug 1309699 - Make super-triple-extra sure we're using the right preference name a=me CLOSED TREE
--HG--
extra : amend_source : 73f8b102b8257eed1010b7aa2f2730f38e1d06d6
2016-10-13 14:12:06 -07:00
Wes Kocher
52e2c45728 Bug 1309699 - Spell the preference name correctly so it works a=me 2016-10-13 12:04:59 -07:00
Ehsan Akhgari
9de6bbbaec Bug 1261019 - Part 3: Remove Navigator.mozApps and code depending on it; r=myk,jryans,fabrice,mcmanus,peterv 2016-10-13 13:18:41 -04:00
Jonathan Hao
fa67f7b52b Bug 1309699 - Turn on the new pref in browser_thumbnails_bg_no_cookies_stored.js. r=ehsan
--HG--
extra : rebase_source : 3ff42b08e634d19b9130cf69d0e179dc4426ff71
2016-10-13 08:10:00 -04:00
Mark Golbeck
335fa8f67f Bug 1091592 - Improve style of select dropdowns, including adding more padding for touch-enabled devices. r=jaws
MozReview-Commit-ID: THzkOhk0uR
2016-10-10 19:36:50 -07:00
Carsten "Tomcat" Book
802e7b16f9 merge mozilla-inbound to mozilla-central a=merge 2016-10-13 11:53:49 +02:00
Carsten "Tomcat" Book
2b59ae9457 merge autoland to mozilla-central a=merge 2016-10-13 11:35:11 +02:00
Jonathan Hao
c18e5bed90 Bug 1309699 - Add pref for bug 1279568 to address content crashes in Beta50. r=baku, a=tomcat 2016-10-13 00:04:00 +02:00
Wes Kocher
2142de26c1 Backed out 8 changesets (bug 1277803) for browser-chrome test failures a=backout
Backed out changeset 477890efdb88 (bug 1277803)
Backed out changeset 49da326bfe68 (bug 1277803)
Backed out changeset 2d17a40a9077 (bug 1277803)
Backed out changeset b1cb0a195ca1 (bug 1277803)
Backed out changeset c7d82459d152 (bug 1277803)
Backed out changeset 3be9a06248af (bug 1277803)
Backed out changeset 8d119ca96999 (bug 1277803)
Backed out changeset be767a6f7ecd (bug 1277803)
2016-10-12 14:26:00 -07:00
Wes Kocher
3770ad1b24 Merge inbound to m-c a=merge 2016-10-12 14:23:33 -07:00
Jim Mathies
5cb37c2745 Bug 1309599 - Turn e10s on for RTL linux users. r=felipe
MozReview-Commit-ID: IY4YIcYayKB
2016-10-12 15:12:04 -05:00
Honza Bambas
a604390796 Bug 1294183 - Make HTTP cache write leader-class resources with more priority, r=michal 2016-10-12 10:32:00 +02:00
Chris Manchester
b5f53ace1c Bug 1305145 - Move --enable-tree-freetype to Python configure. r=glandium
This commit also removes the option, as it's only known to work
on Android, where it is the default.

MozReview-Commit-ID: JqdC5Q5dwQH
2016-10-14 11:06:31 -07:00
Chris Manchester
1ad27217c6 Bug 1305145 - Move freetype2 detection to Python configure. r=glandium
MozReview-Commit-ID: 1O4SdH0HvzL
2016-10-14 11:06:31 -07:00
Chris Manchester
50681ee7f8 Bug 1305145 - Move fontconfig detection to Python configure. r=glandium
MozReview-Commit-ID: J6XQFA6whCr
2016-10-14 11:06:31 -07:00
Chris Manchester
c843656020 Bug 1305145 - Move Pango detection to Python configure. r=glandium
A test against MOZ_PANGO is also removed, this has not been
set since bug 947379.

MozReview-Commit-ID: IwpsCda6mmw
2016-10-14 11:06:30 -07:00
Chris Manchester
c1230eee34 Bug 1305145 - Make libs and flags set by pkg_check_modules available to the caller. r=glandium
MozReview-Commit-ID: 7uZheAOXKwE
2016-10-14 11:06:30 -07:00
Eitan Isaacson
44439c3a67 Bug 1294765 - Filter out voices that don't match the content language. r=Gijs
MozReview-Commit-ID: HkjshGZlfSu

--HG--
extra : rebase_source : c6423c9c4b1b2a11515bdbb00d6fca59b941464e
2016-10-11 14:30:03 -07:00
Eitan Isaacson
09bcc152d7 Bug 1294765 - Refactor content language detection to happen early and always. r=Gijs
MozReview-Commit-ID: HnKIvznhdfW

--HG--
extra : rebase_source : d817ac416647f8bddcb7a66011fa5168636e63a9
2016-10-11 09:54:58 -07:00
Andrew Swan
728f3da287 Bug 1091924 Fix up InstallTrigger for e10s-multi r=kmag
MozReview-Commit-ID: HmGZvanRhxl

--HG--
extra : rebase_source : ae8dc5781f5525a6bd95c94ab807910e5b9bc939
2016-10-13 11:21:24 -07:00
Mark Banner
daf6127dcc Bug 1295567 - Ensure system add-ons are always be multiprocessCompatible. r=rhelmer
Adds a unit test for in-tree system add-ons, and then adds a update check denying system add-ons if they are not compatible.

MozReview-Commit-ID: KVcArBEPwfE

--HG--
extra : rebase_source : 0df04b4b80687251026bbcc310639dc8fa70377d
2016-10-07 11:35:08 +01:00
Carsten "Tomcat" Book
f3a0e0a65e Merge mozilla-central to autoland
--HG--
extra : rebase_source : ed5871b95beeb440688654cc676c5438c2898ccf
2016-10-13 12:00:23 +02:00
Marco Bonardo
ababc57dbb Bug 1306639 - Searching in locationbar by typing something and pressing enter is not accounted in telemetry. r=adw
MozReview-Commit-ID: 9r8IyyyxruC

--HG--
extra : rebase_source : 039983cca262164bfc004e05bf77dc8ced0b1f29
2016-10-06 17:40:13 +02:00
Carsten "Tomcat" Book
ac47637175 Merge mozilla-central to autoland 2016-10-14 12:34:25 +02:00
Mike de Boer
ccd2ce7e6f Bug 1304073 - don't hide the modal highlight dimmed background upon a mouse click under certain conditions. r=jaws
We'll ignore mouse events with the following properties:
1) a modifier key was pressed during the click,
2) an anchor element was clicked,
3) the 'selectstart' event fired earlier, indicating a text selection action
4) 'relatedTarget' is set, indicating a drag action or touch event.

MozReview-Commit-ID: 2hIBgcVXzp

--HG--
extra : rebase_source : dda32c495d5fe1e851db8e7376581e5b0e21b4a1
2016-09-29 15:37:39 +02:00
Henry Chang
dc3bbda5bd Bug 1305484 - Save/load state and checksum to/from disk rather than prefs. r=dimi,francois
MozReview-Commit-ID: 4gmmrI9wY4c

--HG--
extra : rebase_source : f7f4462b7325bce9a92f747c54b448e2693e40ac
2016-10-13 15:22:08 +08:00
Carsten "Tomcat" Book
6c0aec63b8 Merge mozilla-central to mozilla-inbound 2016-10-12 12:03:34 +02:00
Carsten "Tomcat" Book
2844380bd4 merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : media/gmp-clearkey/0.1/ClearKeyCencParser.cpp => media/psshparser/PsshParser.cpp
rename : media/gmp-clearkey/0.1/ClearKeyCencParser.h => media/psshparser/PsshParser.h
rename : media/gmp-clearkey/0.1/gtest/TestClearKeyUtils.cpp => media/psshparser/gtest/TestPsshParser.cpp
rename : media/gmp-clearkey/0.1/gtest/moz.build => media/psshparser/gtest/moz.build
2016-10-12 12:01:48 +02:00
Mike Conley
ba89a3d436 Bug 1260316 - Make TelemetrySession more resilient if content processes have crashed. r=chutten
MozReview-Commit-ID: 2CbKYaNcBai

--HG--
extra : rebase_source : fe34ff4ec408516612c4924db4bfc30a6b18efac
2016-10-11 14:09:24 -04:00
Sebastian Hengst
8bf44b24d0 Backed out changeset a7882c91ca20 (bug 1305194) for leaking docshells, e.g. in browser_Finder_hidden_textarea.js and browser_findbar.js. r=backout 2016-10-11 21:00:52 +02:00
Mike de Boer
ab270319b9 Bug 1279652 - reddit.com invalidates all references in the TextLayer, resulting in zero ClientRects for ranges that we have in the FinderHighlighter cache. This fix makes sure to re-fetch all the ranges when this is detected. r=jaws
MozReview-Commit-ID: 8OEKmKn9Nwc
2016-10-11 20:59:13 +02:00
Sebastian Hengst
27e06602ba Backed out changeset 5bccb629be60 (bug 1279652) for leaking docshells, e.g. in browser_Finder_hidden_textarea.js and browser_findbar.js. r=backout 2016-10-11 20:58:19 +02:00
Gijs Kruitbosch
a6e0fa62ec Bug 1305339 - part 2: use URI flags to determine if data is from the web, r=mstange,bz
This actually accomplishes what was discussed in the bug and marks any file with the
relevant URI flags as WebDownload, and everything else as OtherDownload.

Note that I'm using DoGetProtocolFlags in order to deal with
nsIProtocolHandlerWithDynamicFlags correctly; while just getting protocol flags
from the IO service directly would be less work, it's technically less correct.

MozReview-Commit-ID: HgD1fV98IEc

--HG--
extra : rebase_source : f114532b48dbca5c83871e61c8d04c719e3b38d1
2016-10-03 13:52:19 +01:00
Tim Huang
0ceca5575d Bug 1277803 - Part 1 : Add a new ContentPolicy TYPE_INTERNAL_IMAGE_FAVICON for indicating a favicon loading. r=ckerschb 2016-10-12 17:32:03 +08:00
David Anderson
bb532b0876 Add telemetry for how phases of the painting pipeline contribute to large frame times. (bug 1309442, r=mattwoodrow) 2016-10-12 20:58:04 +13:00
David Anderson
37396f9500 Add nsExceptionHandler support for CrashReporterClient. (bug 1278717 part 2, r=billm) 2016-10-11 14:25:21 -07:00
Chris Pearce
35e13f726f Bug 1308076 - Move ClearKeyCencParser to PsshParser library. r=glandium
To validate the PSSH init data passed to EME, I'd like to reuse the same
PSSH parser that the ClearKey CDM shared library uses. So move the code
out of gmp-clearkey and into its own library, so we can link it statically
into code that needs to use it.



MozReview-Commit-ID: 7xSUSmCueJz

--HG--
rename : media/gmp-clearkey/0.1/ClearKeyCencParser.cpp => media/psshparser/PsshParser.cpp
rename : media/gmp-clearkey/0.1/ClearKeyCencParser.h => media/psshparser/PsshParser.h
extra : source : 78dcbc5d3c26547c63269eb14034a67863cf28de
2016-10-06 20:23:38 +13:00
Thom Chiovoloni
be9c5a302c Bug 1308567 - Include information about associated devices in sync ping r=bsmedberg,markh
MozReview-Commit-ID: 45c4skQHswy

--HG--
extra : rebase_source : 794f0b0d453596fdec84066bfbb966d81da62372
2016-10-11 14:07:52 -04:00
Marco Bonardo
6fba552346 Bug 1304501 - Properly disable trimUrl on autofill. r=adw
MozReview-Commit-ID: IxCOWkqFYV0

--HG--
extra : rebase_source : f6519c6f245199db550e2d999931c65154d38427
2016-09-21 21:55:00 +02:00
Andrew Swan
b690f2eb9e Bug 1304392 Fix startup reason for bootstrapped addons that require restart for e10s r=rhelmer
MozReview-Commit-ID: 9fwtCQ0KZa8

--HG--
extra : rebase_source : cbfb23bb9b6ba35c7d33ac72a33e9235752e6bfe
2016-10-14 11:01:27 -07:00
Wes Kocher
524df273d6 Merge m-c to autoland, a=merge 2016-10-14 14:49:31 -07:00
Pascal Chevrel
9c997d74dc Bug 1283076: Change default bookmarks for Nightly. r=dolske
- no change on default bookmarks for non-nightly builds
- replace firefox bookmarks by this list for Nightly:
  - Link to the Firefox Nightly blog (https://blog.nightly.mozilla.org/)
  - Link to Bugzilla https://bugzilla.mozilla.org/
  - Link to MDN https://developer.mozilla.org/
  - Link to Nightly Tester Tools addon https://addons.mozilla.org/en-US/firefox/addon/nightly-tester-tools/
  - Link to about:crashes
  - Link to Nightly IRC channel on irc.mozilla.org via mibbit
  - Link to Planet Mozilla https://planet.mozilla.org/

The default bookmark in the bookmark toolbar which was a tour of Firefox feature is now a link to mozilla.org/contribute

This patch also:
- removes all rdf id references in links which are unused
- moves all the data-uri icons to replacement variables to avoid multiple copy-pastes and make the code easier to read
- removes the invalid mention that the file was automatically generated, it is not the case
- updates the meta charset line for a shorter one using HTML5 syntax
- uses lowercase html
- some of the links have keywords or tags defined
- update tests with specific values to test for the Nightly channel vs other channels
2016-10-10 18:33:03 +02:00
Mike de Boer
ec296b4f2e Bug 1303874 - make the active window object part of the iterator params to make sure that similar iterator runs for different runs are not treated as the same, thus potentially yielding incorrect results. r=jaws
MozReview-Commit-ID: H6gB2IMndM8
2016-10-11 13:08:00 +02:00
Carsten "Tomcat" Book
cd1be634c9 merge mozilla-inbound to mozilla-central a=merge 2016-10-11 12:01:35 +02:00
Phil Ringnalda
8bd6563760 Merge m-c to autoland 2016-10-10 19:12:47 -07:00
Phil Ringnalda
e8dd21b167 Merge f-t to m-c, a=merge
MozReview-Commit-ID: C1redSmlixf
2016-10-10 19:11:56 -07:00
Phil Ringnalda
25afef5692 Merge m-i to m-c, a=merge
MozReview-Commit-ID: HlGgqNI8vwD
2016-10-10 19:07:58 -07:00
Mike de Boer
6f356a01b1 Bug 1279843 - adjust the borders of the yellow range outline box on the findbar modal highlighting background to have gradient borders ending transparently, so that no characters will be obscured. ui-r=sevaan, r=jaws
MozReview-Commit-ID: HG8ahina25M
2016-10-10 14:22:28 +02:00
Phil Ringnalda
080c63d412 Merge m-i to m-c, a=merge
MozReview-Commit-ID: 6YHoSP3exdY
2016-10-08 16:48:33 -07:00
Sebastian Hengst
cdcc9e20da Bug 1304829 - rename RELEASE_BUILD to RELEASE_OR_BETA: main part. r=ted,Mossop
MozReview-Commit-ID: 1lCt0xTMV5O
2016-10-08 11:14:49 +02:00
Andrew Swan
0796498c0c Bug 1295324 r=kmag a=al
MozReview-Commit-ID: GN4Bc8RZQBn

--HG--
extra : source : b264fc5082e090c2accd69cf300fd0cc05431d0e
extra : amend_source : 5113b41189824beb986614094fd4192b99f2ac5d
2016-10-07 11:20:12 -07:00
Alessio Placitelli
b945a720fc Bug 1308415 - Update about:telemetry to show keyed scalars. r=gfritzsche 2016-10-07 03:35:00 -04:00
Kris Maglione
a4e557a57b Bug 1289273: Resolve URLs passed to windows.create relative to the caller. r=aswan a=al
MozReview-Commit-ID: 3TUIK6EvO3q

--HG--
extra : rebase_source : cccf23ce3edc1543f15223c677645c42be0ff7a6
extra : histedit_source : 42bdc39ad4c4bdc01e3d094f8d62eae11f3532ba
2016-10-05 20:27:06 +01:00
Ryan VanderMeulen
1fe97cdbbb Bug 1308385 - Make sure CrashReporter::AnnotateCrashReport usage is guarded by MOZ_CRASHREPORTER in nsAppRunner.cpp. r=froydnj
--HG--
extra : rebase_source : d2b9ce60889def291eaccdcbefb7d0b89ce327cc
2016-10-07 10:42:56 -04:00
Sebastian Hengst
8b9189a582 Merge mozilla-central to mozilla-inbound 2016-10-07 16:28:35 +02:00
Sebastian Hengst
c635b8c61d No bug - Fix Eslint warnings which showed up after merge. r=eslint-fix a=eslint-fix
MozReview-Commit-ID: 17TDsBMCsUx

--HG--
extra : amend_source : d16c96ea99ecbf9e3cbe341f4bb80c65659843cc
2016-10-07 16:21:44 +02:00
Ryan VanderMeulen
7ebb50e21d Merge inbound to m-c. a=merge 2016-10-07 09:42:25 -04:00
Phil Ringnalda
c21623fc42 Merge m-c to m-i
MozReview-Commit-ID: Kp60wHZauGi
2016-10-06 20:26:20 -07:00
Iris Hsiao
e6ab0adc40 Backed out changeset d283c59402ce (bug 1277803)
CLOSED TREE
2016-10-07 11:24:08 +08:00
Phil Ringnalda
fd672b97f1 Merge f-t to m-c, a=merge
MozReview-Commit-ID: HiqZsOM1Bcz
2016-10-06 19:59:02 -07:00
Phil Ringnalda
fd7b7476c2 Merge m-i to m-c, a=merge
MozReview-Commit-ID: 93ZdJbK1x05
2016-10-06 19:58:18 -07:00
Dale Harvey
17905c9f75 Bug 1306516 - Fix expected return value from checkForAddons. r=mconley 2016-10-06 17:21:24 +01:00
Rajat garg
378ac862ca Bug 1305748 - Changed the file name from notfound.png which was missing to information-16.png which exists. r=florian 2016-10-05 18:47:07 +05:30
Rajat garg
aa058fc23c Bug 1305764 - Removed the rating-unrated.png refrence from linux extensions.css file. r=florian 2016-10-04 22:13:19 +05:30
Carsten "Tomcat" Book
0afee402c6 Merge mozilla-central to fx-team 2016-10-06 12:28:52 +02:00
Carsten "Tomcat" Book
7c8e81673d merge mozilla-inbound to mozilla-central a=merge 2016-10-06 11:59:54 +02:00
Georg Fritzsche
7ff8e8b5f4 Bug 1295555 - Lower client-side ping archive retention period to 60 days. r=dexter 2016-10-06 11:07:04 +02:00
Bob Silverberg
4e2ac40f90 Bug 1262250 - Add a defaultValue property to the web extension schema, r=aswan
MozReview-Commit-ID: 175Nxr39NKw

--HG--
extra : rebase_source : 0e912eb54e8179a22ee97c731885cd8d2715db1b
2016-10-03 14:55:17 -04:00
Henry Chang
b468335de9 Bug 1285848 - Part 2: Request and parse RICE encoded prefix by default. r=francois
MozReview-Commit-ID: Cd0lT5VTM7t

--HG--
extra : rebase_source : 08724d3c8039039b8c73f58230b1cdad94ccd786
extra : source : 3abd3bc8a0119433ef66864c8c7fd1394fb0cc14
2016-10-05 14:59:53 +08:00
Henry Chang
1b35e4d7c6 Bug 1285848 - Part 1: Implement Rice Delta Decoding. r=francois.
MozReview-Commit-ID: 2GR51CRFBDL

--HG--
extra : rebase_source : d8b00fcf83cb6a8ec859825929da95e60468aadd
extra : source : 738ba4a8488e38667a2f06f5b1a7280ce7ad7dec
2016-10-05 14:59:43 +08:00
Phil Ringnalda
ef58a75ffd Merge m-c to autoland 2016-10-06 20:24:09 -07:00
Gian-Carlo Pascutto
bbcb394669 Bug 1289718 - Clean up stat/stat64 wrapper. Deal with non-default TMPDIR. r=jld
MozReview-Commit-ID: DW63be9qd3z

--HG--
extra : rebase_source : 0a1860c70a631b24bcafecb4946c044148536004
2016-10-06 13:25:13 +02:00
Alexandre Poirot
ec7febe16f Bug 1185460 - Implements AddonManager.installAddonFromSources to install addon from sources permanently. r=rhelmer
MozReview-Commit-ID: LYEFnVUPhtX

--HG--
extra : rebase_source : b50e78579cd275f334f20611255bee1699149d23
2016-09-27 02:36:23 -07:00
Gijs Kruitbosch
d0df002eda Bug 1308621 - print preview shouldn't re-set the source browser, r=florian
Right now the "already in print preview" case in printPreview() collapses
the print preview browser - but also clobbers its _sourceBrowser property,
which shouldn't point to the print preview browser but to the 'normal'
browser whose print preview is in the print preview browser.

This patch fixes the clobbering, and updates later code to not call
getSourceBrowser() repeatedly, as doing so can in some race conditions end up
print previewing the wrong page.

MozReview-Commit-ID: FlMRrPEkAJQ

--HG--
extra : rebase_source : 47f0aa065c45fce7d7a868394332c5d6d0e067fb
2016-10-06 12:58:37 +01:00
Dimi Lee
90b852a932 Bug 1308606 - Crash in mozilla::safebrowsing::Classifier::UpdateHashStore. r=francois
MozReview-Commit-ID: FIl5cPFzGbl

--HG--
extra : rebase_source : 1138e1b23a60c7e798b0f112a9268005de10e117
2016-10-08 20:42:43 +08:00
Mike de Boer
05f70d10ef Bug 1303008 - refactor Fennec Finder.jsm integration to always show the correct match count results in the findbar. r=nalexander
MozReview-Commit-ID: KZIstsbHAyT

--HG--
extra : rebase_source : 24972d38daa947d62410b43d14f0da6c7662e5da
2016-10-10 11:53:25 +02:00
André Bargull
c52b3dc6ca Bug 837961 - Part 1: Add scripts to update tzdata in ICU data files. r=Waldo 2016-10-06 22:37:20 -07:00
Ryan VanderMeulen
38574eeac5 Merge m-c to inbound. a=merge 2016-10-07 09:44:29 -04:00
Yoshi Huang
2a51f65d99 Bug 1237152 - rename clear-origin-data to clear-origin-attributes-data, r=smaug
find \( -name '*.cpp' -o -name '*.h' -o -name '*.js' -o -name '*.jsm' -o -name '*.idl' -o -name '*.html' \) \
-a -type f -exec sed -i 's/clear-origin-data/clear-origin-attributes-data/g' {} \;
2016-10-07 17:45:10 +08:00
Phil Ringnalda
0e26fa186a Backed out changeset 3851e5f51530 (bug 1299489) for unfathomable bustage of Linux32 debug test_peerConnection_capturedVideo.html
CLOSED TREE

MozReview-Commit-ID: I6HSmVRtucs
2016-10-05 19:25:24 -07:00
Michael Layzell
025811ca63 Bug 1299489 - Change nsTArray to use a custom iterator based on index instead of pointers to improve iterator invalidation safety of ranged for loops, r=froydnj
MozReview-Commit-ID: CahPOcRYvES
2016-10-05 11:54:51 -04:00
Carsten "Tomcat" Book
3522f1d38a merge mozilla-inbound to mozilla-central a=merge 2016-10-05 15:42:48 +02:00
Kris Maglione
2bbdafeca8 Bug 1295680: Fix test race for image loading requests. r=mao
MozReview-Commit-ID: DTJTOFTKWna

--HG--
extra : rebase_source : 2b07be60c656d3406f7c1ee6fcadafc39112c38a
2016-10-04 23:08:40 +01:00
Sebastian Kaspari
8a899e5b22 Bug 1301715 - Only extract metadata if the Activity Stream or Nightly flag is enabled. r=ahunt
MozReview-Commit-ID: 7Ic8v1M6AAy

--HG--
extra : rebase_source : aec2ce74749b19abf21f5f1f1ed098af60eaf3af
2016-09-30 11:58:25 -04:00
Luke Chang
e55158ff06 Bug 1304322 - Refactor LoginStore.jsm to make it reusable for Form Autofill; r=MattN
MozReview-Commit-ID: Kx8aALU7fu2

--HG--
rename : toolkit/components/passwordmgr/LoginStore.jsm => toolkit/modules/JSONFile.jsm
extra : rebase_source : c22f5e8d79e0727ebe562e746fa1f8232600f8aa
2016-09-21 17:29:48 +08:00
Matthew Noorenberghe
7c81fea5e3 Bug 1269568 - Remove LoginManagerContent's isDocumentSecure function in favor of Window.isSecureContext. r=johannh
MozReview-Commit-ID: 12o3WIr6zqS

--HG--
extra : rebase_source : 1fa98b7b71daec773f41f50d341ecb59509075a2
2016-10-06 21:51:01 -04:00
Kit Cambridge
484808a00f Bug 1295521 - Add a toSyncBookmark method and clean up BookmarksStore. r=markh
MozReview-Commit-ID: 3h2qnOtNPN9

--HG--
extra : rebase_source : 0d657035d02c8bd261f1124072d6a248c94c7e09
2016-09-20 01:52:58 -07:00
Kit Cambridge
07d9b90407 Bug 1302288 - Implement PlacesSyncUtils.bookmarks.fetch. r=markh
MozReview-Commit-ID: 2CcE8DxHott

--HG--
extra : rebase_source : 7af66f06b889ca956cde0ff4499fcc6e74336e5c
2016-09-19 14:53:43 -07:00
Henry
25e23d96ea Bug 1305478 - Unify the initial update delay (for both v2 and v4) to 0~1 minute. r=francois
MozReview-Commit-ID: 7RbUUfCNQfk

--HG--
extra : rebase_source : dd95a48fa9cffd77690ea663b3e343af8cb80ae6
2016-10-11 14:47:57 +08:00
Wes Kocher
2337995bb0 Merge m-c to autoland, a=merge 2016-10-12 14:44:21 -07:00
Cykesiopka
3d68090896 Bug 1309440 - Remove unused BitBuffer methods from RiceDeltaDecoder.cpp. r=francois
MozReview-Commit-ID: GOzgd7eKILm

--HG--
extra : rebase_source : a02732b893c024d930da3e6d08521d9f35e12a88
2016-10-12 10:51:31 +08:00
Carsten "Tomcat" Book
2a3218cb9a Merge mozilla-central to autoland 2016-10-18 10:45:57 +02:00
Ting-Yu Chou
7d65559dd1 Bug 1301022 - Add an API for annotating pending IPC messages. r=ted
MozReview-Commit-ID: GiAMUnjYjvI

--HG--
extra : rebase_source : a40f81a4878205b5edb71ca8ec2f24dc35c677eb
2016-09-20 14:10:43 +08:00
Mark Banner
56a7b3961a Bug 1251003 - Change .eslintrc files to .eslintrc.js to avoid obsolete config file format. r=mossop
MozReview-Commit-ID: JrbFxQ5rj6I

--HG--
rename : .eslintrc => .eslintrc.js
rename : accessible/.eslintrc => accessible/.eslintrc.js
rename : accessible/tests/browser/.eslintrc => accessible/tests/browser/.eslintrc.js
rename : browser/.eslintrc => browser/.eslintrc.js
rename : browser/base/content/test/alerts/.eslintrc => browser/base/content/test/alerts/.eslintrc.js
rename : browser/base/content/test/chrome/.eslintrc => browser/base/content/test/chrome/.eslintrc.js
rename : browser/base/content/test/general/.eslintrc => browser/base/content/test/general/.eslintrc.js
rename : browser/base/content/test/newtab/.eslintrc => browser/base/content/test/newtab/.eslintrc.js
rename : browser/base/content/test/plugins/.eslintrc => browser/base/content/test/plugins/.eslintrc.js
rename : browser/base/content/test/popupNotifications/.eslintrc => browser/base/content/test/popupNotifications/.eslintrc.js
rename : browser/base/content/test/referrer/.eslintrc => browser/base/content/test/referrer/.eslintrc.js
rename : browser/base/content/test/social/.eslintrc => browser/base/content/test/social/.eslintrc.js
rename : browser/components/contextualidentity/test/browser/.eslintrc => browser/components/contextualidentity/test/browser/.eslintrc.js
rename : browser/components/customizableui/test/.eslintrc => browser/components/customizableui/test/.eslintrc.js
rename : browser/components/dirprovider/tests/unit/.eslintrc => browser/components/dirprovider/tests/unit/.eslintrc.js
rename : browser/components/downloads/test/browser/.eslintrc => browser/components/downloads/test/browser/.eslintrc.js
rename : browser/components/downloads/test/unit/.eslintrc => browser/components/downloads/test/unit/.eslintrc.js
rename : browser/components/extensions/.eslintrc => browser/components/extensions/.eslintrc.js
rename : browser/components/extensions/test/browser/.eslintrc => browser/components/extensions/test/browser/.eslintrc.js
rename : browser/components/extensions/test/xpcshell/.eslintrc => browser/components/extensions/test/xpcshell/.eslintrc.js
rename : browser/components/feeds/test/.eslintrc => browser/components/feeds/test/.eslintrc.js
rename : browser/components/feeds/test/chrome/.eslintrc => browser/components/feeds/test/chrome/.eslintrc.js
rename : browser/components/feeds/test/unit/.eslintrc => browser/components/feeds/test/unit/.eslintrc.js
rename : browser/components/migration/tests/unit/.eslintrc => browser/components/migration/tests/unit/.eslintrc.js
rename : browser/components/newtab/tests/browser/.eslintrc => browser/components/newtab/tests/browser/.eslintrc.js
rename : browser/components/newtab/tests/xpcshell/.eslintrc => browser/components/newtab/tests/xpcshell/.eslintrc.js
rename : browser/components/originattributes/test/browser/.eslintrc => browser/components/originattributes/test/browser/.eslintrc.js
rename : browser/components/places/tests/browser/.eslintrc => browser/components/places/tests/browser/.eslintrc.js
rename : browser/components/places/tests/chrome/.eslintrc => browser/components/places/tests/chrome/.eslintrc.js
rename : browser/components/places/tests/unit/.eslintrc => browser/components/places/tests/unit/.eslintrc.js
rename : browser/components/preferences/in-content/tests/.eslintrc => browser/components/preferences/in-content/tests/.eslintrc.js
rename : browser/components/privatebrowsing/test/browser/.eslintrc => browser/components/privatebrowsing/test/browser/.eslintrc.js
rename : browser/components/safebrowsing/content/test/.eslintrc => browser/components/safebrowsing/content/test/.eslintrc.js
rename : browser/components/search/test/.eslintrc => browser/components/search/test/.eslintrc.js
rename : browser/components/selfsupport/test/.eslintrc => browser/components/selfsupport/test/.eslintrc.js
rename : browser/components/sessionstore/test/.eslintrc => browser/components/sessionstore/test/.eslintrc.js
rename : browser/components/sessionstore/test/unit/.eslintrc => browser/components/sessionstore/test/unit/.eslintrc.js
rename : browser/components/shell/test/.eslintrc => browser/components/shell/test/.eslintrc.js
rename : browser/components/shell/test/unit/.eslintrc => browser/components/shell/test/unit/.eslintrc.js
rename : browser/components/tests/browser/.eslintrc => browser/components/tests/browser/.eslintrc.js
rename : browser/components/translation/test/.eslintrc => browser/components/translation/test/.eslintrc.js
rename : browser/components/translation/test/unit/.eslintrc => browser/components/translation/test/unit/.eslintrc.js
rename : browser/components/uitour/test/.eslintrc => browser/components/uitour/test/.eslintrc.js
rename : browser/experiments/test/xpcshell/.eslintrc => browser/experiments/test/xpcshell/.eslintrc.js
rename : browser/extensions/formautofill/.eslintrc => browser/extensions/formautofill/.eslintrc.js
rename : browser/extensions/formautofill/test/browser/.eslintrc => browser/extensions/formautofill/test/browser/.eslintrc.js
rename : browser/extensions/pdfjs/test/.eslintrc => browser/extensions/pdfjs/test/.eslintrc.js
rename : browser/modules/test/.eslintrc => browser/modules/test/.eslintrc.js
rename : browser/modules/test/unit/social/.eslintrc => browser/modules/test/unit/social/.eslintrc.js
rename : browser/modules/test/xpcshell/.eslintrc => browser/modules/test/xpcshell/.eslintrc.js
rename : devtools/.eslintrc => devtools/.eslintrc.js
rename : devtools/.eslintrc.mochitests => devtools/.eslintrc.mochitests.js
rename : devtools/.eslintrc.xpcshell => devtools/.eslintrc.xpcshell.js
rename : devtools/client/aboutdebugging/test/.eslintrc => devtools/client/aboutdebugging/test/.eslintrc.js
rename : devtools/client/animationinspector/test/.eslintrc => devtools/client/animationinspector/test/.eslintrc.js
rename : devtools/client/animationinspector/test/unit/.eslintrc => devtools/client/animationinspector/test/unit/.eslintrc.js
rename : devtools/client/canvasdebugger/test/.eslintrc => devtools/client/canvasdebugger/test/.eslintrc.js
rename : devtools/client/commandline/test/.eslintrc => devtools/client/commandline/test/.eslintrc.js
rename : devtools/client/debugger/new/test/mochitest/.eslintrc => devtools/client/debugger/new/test/mochitest/.eslintrc.js
rename : devtools/client/debugger/test/.eslintrc => devtools/client/debugger/test/.eslintrc.js
rename : devtools/client/dom/.eslintrc => devtools/client/dom/.eslintrc.js
rename : devtools/client/dom/test/.eslintrc => devtools/client/dom/test/.eslintrc.js
rename : devtools/client/framework/test/.eslintrc => devtools/client/framework/test/.eslintrc.js
rename : devtools/client/inspector/.eslintrc => devtools/client/inspector/.eslintrc.js
rename : devtools/client/inspector/components/test/.eslintrc => devtools/client/inspector/components/test/.eslintrc.js
rename : devtools/client/inspector/computed/test/.eslintrc => devtools/client/inspector/computed/test/.eslintrc.js
rename : devtools/client/inspector/fonts/test/.eslintrc => devtools/client/inspector/fonts/test/.eslintrc.js
rename : devtools/client/inspector/markup/test/.eslintrc => devtools/client/inspector/markup/test/.eslintrc.js
rename : devtools/client/inspector/rules/test/.eslintrc => devtools/client/inspector/rules/test/.eslintrc.js
rename : devtools/client/inspector/shared/test/.eslintrc => devtools/client/inspector/shared/test/.eslintrc.js
rename : devtools/client/inspector/test/.eslintrc => devtools/client/inspector/test/.eslintrc.js
rename : devtools/client/jsonview/.eslintrc => devtools/client/jsonview/.eslintrc.js
rename : devtools/client/jsonview/test/.eslintrc => devtools/client/jsonview/test/.eslintrc.js
rename : devtools/client/memory/test/browser/.eslintrc => devtools/client/memory/test/browser/.eslintrc.js
rename : devtools/client/memory/test/unit/.eslintrc => devtools/client/memory/test/unit/.eslintrc.js
rename : devtools/client/netmonitor/.eslintrc => devtools/client/netmonitor/.eslintrc.js
rename : devtools/client/netmonitor/har/test/.eslintrc => devtools/client/netmonitor/har/test/.eslintrc.js
rename : devtools/client/netmonitor/test/.eslintrc => devtools/client/netmonitor/test/.eslintrc.js
rename : devtools/client/performance/test/.eslintrc => devtools/client/performance/test/.eslintrc.js
rename : devtools/client/performance/test/unit/.eslintrc => devtools/client/performance/test/unit/.eslintrc.js
rename : devtools/client/projecteditor/test/.eslintrc => devtools/client/projecteditor/test/.eslintrc.js
rename : devtools/client/promisedebugger/test/.eslintrc => devtools/client/promisedebugger/test/.eslintrc.js
rename : devtools/client/responsive.html/test/browser/.eslintrc => devtools/client/responsive.html/test/browser/.eslintrc.js
rename : devtools/client/responsive.html/test/unit/.eslintrc => devtools/client/responsive.html/test/unit/.eslintrc.js
rename : devtools/client/responsivedesign/test/.eslintrc => devtools/client/responsivedesign/test/.eslintrc.js
rename : devtools/client/scratchpad/test/.eslintrc => devtools/client/scratchpad/test/.eslintrc.js
rename : devtools/client/shadereditor/test/.eslintrc => devtools/client/shadereditor/test/.eslintrc.js
rename : devtools/client/shared/components/.eslintrc => devtools/client/shared/components/.eslintrc.js
rename : devtools/client/shared/components/test/browser/.eslintrc => devtools/client/shared/components/test/browser/.eslintrc.js
rename : devtools/client/shared/components/test/mochitest/.eslintrc => devtools/client/shared/components/test/mochitest/.eslintrc.js
rename : devtools/client/shared/shim/test/.eslintrc => devtools/client/shared/shim/test/.eslintrc.js
rename : devtools/client/shared/test/.eslintrc => devtools/client/shared/test/.eslintrc.js
rename : devtools/client/shared/test/unit/.eslintrc => devtools/client/shared/test/unit/.eslintrc.js
rename : devtools/client/sourceeditor/.eslintrc => devtools/client/sourceeditor/.eslintrc.js
rename : devtools/client/sourceeditor/test/.eslintrc => devtools/client/sourceeditor/test/.eslintrc.js
rename : devtools/client/storage/test/.eslintrc => devtools/client/storage/test/.eslintrc.js
rename : devtools/client/styleeditor/test/.eslintrc => devtools/client/styleeditor/test/.eslintrc.js
rename : devtools/client/webaudioeditor/test/.eslintrc => devtools/client/webaudioeditor/test/.eslintrc.js
rename : devtools/client/webconsole/net/.eslintrc => devtools/client/webconsole/net/.eslintrc.js
rename : devtools/client/webconsole/net/test/mochitest/.eslintrc => devtools/client/webconsole/net/test/mochitest/.eslintrc.js
rename : devtools/client/webconsole/net/test/unit/.eslintrc => devtools/client/webconsole/net/test/unit/.eslintrc.js
rename : devtools/client/webconsole/new-console-output/test/.eslintrc => devtools/client/webconsole/new-console-output/test/.eslintrc.js
rename : devtools/client/webconsole/test/.eslintrc => devtools/client/webconsole/test/.eslintrc.js
rename : devtools/client/webide/test/.eslintrc => devtools/client/webide/test/.eslintrc.js
rename : devtools/server/tests/browser/.eslintrc => devtools/server/tests/browser/.eslintrc.js
rename : devtools/server/tests/mochitest/.eslintrc => devtools/server/tests/mochitest/.eslintrc.js
rename : devtools/server/tests/unit/.eslintrc => devtools/server/tests/unit/.eslintrc.js
rename : devtools/shared/heapsnapshot/tests/unit/.eslintrc => devtools/shared/heapsnapshot/tests/unit/.eslintrc.js
rename : devtools/shared/platform/content/.eslintrc => devtools/shared/platform/content/.eslintrc.js
rename : devtools/shared/platform/content/test/.eslintrc => devtools/shared/platform/content/test/.eslintrc.js
rename : devtools/shared/security/tests/unit/.eslintrc => devtools/shared/security/tests/unit/.eslintrc.js
rename : devtools/shared/tests/browser/.eslintrc => devtools/shared/tests/browser/.eslintrc.js
rename : devtools/shared/tests/unit/.eslintrc => devtools/shared/tests/unit/.eslintrc.js
rename : devtools/shared/transport/tests/unit/.eslintrc => devtools/shared/transport/tests/unit/.eslintrc.js
rename : devtools/shared/webconsole/test/unit/.eslintrc => devtools/shared/webconsole/test/unit/.eslintrc.js
rename : devtools/shared/worker/tests/browser/.eslintrc => devtools/shared/worker/tests/browser/.eslintrc.js
rename : mobile/android/components/extensions/.eslintrc => mobile/android/components/extensions/.eslintrc.js
rename : mobile/android/components/extensions/test/mochitest/.eslintrc => mobile/android/components/extensions/test/mochitest/.eslintrc.js
rename : security/manager/.eslintrc.json => security/manager/.eslintrc.js
rename : security/manager/ssl/tests/.eslintrc.json => security/manager/ssl/tests/.eslintrc.js
rename : security/manager/ssl/tests/mochitest/browser/.eslintrc.json => security/manager/ssl/tests/mochitest/browser/.eslintrc.js
rename : security/manager/ssl/tests/mochitest/mixedcontent/.eslintrc.json => security/manager/ssl/tests/mochitest/mixedcontent/.eslintrc.js
rename : security/manager/ssl/tests/mochitest/stricttransportsecurity/.eslintrc.json => security/manager/ssl/tests/mochitest/stricttransportsecurity/.eslintrc.js
rename : security/manager/ssl/tests/unit/.eslintrc.json => security/manager/ssl/tests/unit/.eslintrc.js
rename : security/manager/tools/.eslintrc.json => security/manager/tools/.eslintrc.js
rename : storage/.eslintrc => storage/.eslintrc.js
rename : testing/mochitest/browser.eslintrc => testing/mochitest/browser.eslintrc.js
rename : testing/mochitest/chrome.eslintrc => testing/mochitest/chrome.eslintrc.js
rename : testing/mochitest/mochitest.eslintrc => testing/mochitest/mochitest.eslintrc.js
rename : testing/xpcshell/xpcshell.eslintrc => testing/xpcshell/xpcshell.eslintrc.js
rename : toolkit/.eslintrc => toolkit/.eslintrc.js
rename : toolkit/components/aboutmemory/tests/.eslintrc => toolkit/components/aboutmemory/tests/.eslintrc.js
rename : toolkit/components/aboutperformance/tests/browser/.eslintrc => toolkit/components/aboutperformance/tests/browser/.eslintrc.js
rename : toolkit/components/addoncompat/tests/browser/.eslintrc => toolkit/components/addoncompat/tests/browser/.eslintrc.js
rename : toolkit/components/alerts/test/.eslintrc => toolkit/components/alerts/test/.eslintrc.js
rename : toolkit/components/asyncshutdown/tests/xpcshell/.eslintrc => toolkit/components/asyncshutdown/tests/xpcshell/.eslintrc.js
rename : toolkit/components/autocomplete/tests/unit/.eslintrc => toolkit/components/autocomplete/tests/unit/.eslintrc.js
rename : toolkit/components/captivedetect/test/unit/.eslintrc => toolkit/components/captivedetect/test/unit/.eslintrc.js
rename : toolkit/components/commandlines/test/unit/.eslintrc => toolkit/components/commandlines/test/unit/.eslintrc.js
rename : toolkit/components/commandlines/test/unit_unix/.eslintrc => toolkit/components/commandlines/test/unit_unix/.eslintrc.js
rename : toolkit/components/commandlines/test/unit_win/.eslintrc => toolkit/components/commandlines/test/unit_win/.eslintrc.js
rename : toolkit/components/contentprefs/tests/mochitest/.eslintrc => toolkit/components/contentprefs/tests/mochitest/.eslintrc.js
rename : toolkit/components/contentprefs/tests/unit/.eslintrc => toolkit/components/contentprefs/tests/unit/.eslintrc.js
rename : toolkit/components/contentprefs/tests/unit_cps2/.eslintrc => toolkit/components/contentprefs/tests/unit_cps2/.eslintrc.js
rename : toolkit/components/crashes/tests/xpcshell/.eslintrc => toolkit/components/crashes/tests/xpcshell/.eslintrc.js
rename : toolkit/components/crashmonitor/test/unit/.eslintrc => toolkit/components/crashmonitor/test/unit/.eslintrc.js
rename : toolkit/components/ctypes/tests/chrome/.eslintrc => toolkit/components/ctypes/tests/chrome/.eslintrc.js
rename : toolkit/components/ctypes/tests/unit/.eslintrc => toolkit/components/ctypes/tests/unit/.eslintrc.js
rename : toolkit/components/downloads/test/unit/.eslintrc => toolkit/components/downloads/test/unit/.eslintrc.js
rename : toolkit/components/extensions/.eslintrc => toolkit/components/extensions/.eslintrc.js
rename : toolkit/components/extensions/test/mochitest/.eslintrc => toolkit/components/extensions/test/mochitest/.eslintrc.js
rename : toolkit/components/extensions/test/xpcshell/.eslintrc => toolkit/components/extensions/test/xpcshell/.eslintrc.js
rename : toolkit/components/feeds/test/.eslintrc => toolkit/components/feeds/test/.eslintrc.js
rename : toolkit/components/filepicker/test/unit/.eslintrc => toolkit/components/filepicker/test/unit/.eslintrc.js
rename : toolkit/components/filewatcher/tests/xpcshell/.eslintrc => toolkit/components/filewatcher/tests/xpcshell/.eslintrc.js
rename : toolkit/components/formautofill/test/browser/.eslintrc => toolkit/components/formautofill/test/browser/.eslintrc.js
rename : toolkit/components/formautofill/test/chrome/.eslintrc => toolkit/components/formautofill/test/chrome/.eslintrc.js
rename : toolkit/components/formautofill/test/xpcshell/.eslintrc => toolkit/components/formautofill/test/xpcshell/.eslintrc.js
rename : toolkit/components/jsdownloads/test/browser/.eslintrc => toolkit/components/jsdownloads/test/browser/.eslintrc.js
rename : toolkit/components/jsdownloads/test/data/.eslintrc => toolkit/components/jsdownloads/test/data/.eslintrc.js
rename : toolkit/components/jsdownloads/test/unit/.eslintrc => toolkit/components/jsdownloads/test/unit/.eslintrc.js
rename : toolkit/components/lz4/tests/xpcshell/.eslintrc => toolkit/components/lz4/tests/xpcshell/.eslintrc.js
rename : toolkit/components/mediasniffer/test/unit/.eslintrc => toolkit/components/mediasniffer/test/unit/.eslintrc.js
rename : toolkit/components/narrate/.eslintrc => toolkit/components/narrate/.eslintrc.js
rename : toolkit/components/narrate/test/.eslintrc => toolkit/components/narrate/test/.eslintrc.js
rename : toolkit/components/osfile/tests/mochi/.eslintrc => toolkit/components/osfile/tests/mochi/.eslintrc.js
rename : toolkit/components/osfile/tests/xpcshell/.eslintrc => toolkit/components/osfile/tests/xpcshell/.eslintrc.js
rename : toolkit/components/passwordmgr/.eslintrc => toolkit/components/passwordmgr/.eslintrc.js
rename : toolkit/components/passwordmgr/test/.eslintrc => toolkit/components/passwordmgr/test/.eslintrc.js
rename : toolkit/components/passwordmgr/test/browser/.eslintrc => toolkit/components/passwordmgr/test/browser/.eslintrc.js
rename : toolkit/components/passwordmgr/test/unit/.eslintrc => toolkit/components/passwordmgr/test/unit/.eslintrc.js
rename : toolkit/components/perf/.eslintrc => toolkit/components/perf/.eslintrc.js
rename : toolkit/components/perfmonitoring/tests/browser/.eslintrc => toolkit/components/perfmonitoring/tests/browser/.eslintrc.js
rename : toolkit/components/places/tests/.eslintrc => toolkit/components/places/tests/.eslintrc.js
rename : toolkit/components/places/tests/bookmarks/.eslintrc => toolkit/components/places/tests/bookmarks/.eslintrc.js
rename : toolkit/components/places/tests/browser/.eslintrc => toolkit/components/places/tests/browser/.eslintrc.js
rename : toolkit/components/places/tests/chrome/.eslintrc => toolkit/components/places/tests/chrome/.eslintrc.js
rename : toolkit/components/places/tests/expiration/.eslintrc => toolkit/components/places/tests/expiration/.eslintrc.js
rename : toolkit/components/places/tests/favicons/.eslintrc => toolkit/components/places/tests/favicons/.eslintrc.js
rename : toolkit/components/places/tests/history/.eslintrc => toolkit/components/places/tests/history/.eslintrc.js
rename : toolkit/components/places/tests/migration/.eslintrc => toolkit/components/places/tests/migration/.eslintrc.js
rename : toolkit/components/places/tests/network/.eslintrc => toolkit/components/places/tests/network/.eslintrc.js
rename : toolkit/components/places/tests/queries/.eslintrc => toolkit/components/places/tests/queries/.eslintrc.js
rename : toolkit/components/places/tests/unifiedcomplete/.eslintrc => toolkit/components/places/tests/unifiedcomplete/.eslintrc.js
rename : toolkit/components/places/tests/unit/.eslintrc => toolkit/components/places/tests/unit/.eslintrc.js
rename : toolkit/components/promiseworker/tests/xpcshell/.eslintrc => toolkit/components/promiseworker/tests/xpcshell/.eslintrc.js
rename : toolkit/components/prompts/test/.eslintrc => toolkit/components/prompts/test/.eslintrc.js
rename : toolkit/components/remotebrowserutils/tests/browser/.eslintrc => toolkit/components/remotebrowserutils/tests/browser/.eslintrc.js
rename : toolkit/components/satchel/test/.eslintrc => toolkit/components/satchel/test/.eslintrc.js
rename : toolkit/components/satchel/test/browser/.eslintrc => toolkit/components/satchel/test/browser/.eslintrc.js
rename : toolkit/components/satchel/test/unit/.eslintrc => toolkit/components/satchel/test/unit/.eslintrc.js
rename : toolkit/components/search/tests/xpcshell/.eslintrc => toolkit/components/search/tests/xpcshell/.eslintrc.js
rename : toolkit/components/social/test/xpcshell/.eslintrc => toolkit/components/social/test/xpcshell/.eslintrc.js
rename : toolkit/components/sqlite/tests/xpcshell/.eslintrc => toolkit/components/sqlite/tests/xpcshell/.eslintrc.js
rename : toolkit/components/startup/tests/browser/.eslintrc => toolkit/components/startup/tests/browser/.eslintrc.js
rename : toolkit/components/startup/tests/unit/.eslintrc => toolkit/components/startup/tests/unit/.eslintrc.js
rename : toolkit/components/telemetry/tests/unit/.eslintrc => toolkit/components/telemetry/tests/unit/.eslintrc.js
rename : toolkit/components/terminator/tests/xpcshell/.eslintrc => toolkit/components/terminator/tests/xpcshell/.eslintrc.js
rename : toolkit/components/thumbnails/test/.eslintrc => toolkit/components/thumbnails/test/.eslintrc.js
rename : toolkit/components/timermanager/tests/unit/.eslintrc => toolkit/components/timermanager/tests/unit/.eslintrc.js
rename : toolkit/components/url-classifier/tests/mochitest/.eslintrc => toolkit/components/url-classifier/tests/mochitest/.eslintrc.js
rename : toolkit/components/url-classifier/tests/unit/.eslintrc => toolkit/components/url-classifier/tests/unit/.eslintrc.js
rename : toolkit/components/urlformatter/tests/unit/.eslintrc => toolkit/components/urlformatter/tests/unit/.eslintrc.js
rename : toolkit/components/viewsource/test/.eslintrc => toolkit/components/viewsource/test/.eslintrc.js
rename : toolkit/components/viewsource/test/browser/.eslintrc => toolkit/components/viewsource/test/browser/.eslintrc.js
rename : toolkit/components/workerloader/tests/.eslintrc => toolkit/components/workerloader/tests/.eslintrc.js
rename : toolkit/components/xulstore/tests/chrome/.eslintrc => toolkit/components/xulstore/tests/chrome/.eslintrc.js
rename : toolkit/components/xulstore/tests/xpcshell/.eslintrc => toolkit/components/xulstore/tests/xpcshell/.eslintrc.js
rename : toolkit/content/tests/browser/.eslintrc => toolkit/content/tests/browser/.eslintrc.js
rename : toolkit/content/tests/chrome/.eslintrc => toolkit/content/tests/chrome/.eslintrc.js
rename : toolkit/content/tests/unit/.eslintrc => toolkit/content/tests/unit/.eslintrc.js
rename : toolkit/content/tests/widgets/.eslintrc => toolkit/content/tests/widgets/.eslintrc.js
rename : toolkit/crashreporter/test/browser/.eslintrc => toolkit/crashreporter/test/browser/.eslintrc.js
rename : toolkit/crashreporter/test/unit/.eslintrc => toolkit/crashreporter/test/unit/.eslintrc.js
rename : toolkit/crashreporter/test/unit_ipc/.eslintrc => toolkit/crashreporter/test/unit_ipc/.eslintrc.js
rename : toolkit/forgetaboutsite/test/browser/.eslintrc => toolkit/forgetaboutsite/test/browser/.eslintrc.js
rename : toolkit/forgetaboutsite/test/unit/.eslintrc => toolkit/forgetaboutsite/test/unit/.eslintrc.js
rename : toolkit/identity/tests/chrome/.eslintrc => toolkit/identity/tests/chrome/.eslintrc.js
rename : toolkit/identity/tests/unit/.eslintrc => toolkit/identity/tests/unit/.eslintrc.js
rename : toolkit/modules/addons/.eslintrc => toolkit/modules/addons/.eslintrc.js
rename : toolkit/modules/subprocess/.eslintrc => toolkit/modules/subprocess/.eslintrc.js
rename : toolkit/modules/subprocess/test/xpcshell/.eslintrc => toolkit/modules/subprocess/test/xpcshell/.eslintrc.js
rename : toolkit/modules/tests/browser/.eslintrc => toolkit/modules/tests/browser/.eslintrc.js
rename : toolkit/modules/tests/chrome/.eslintrc => toolkit/modules/tests/chrome/.eslintrc.js
rename : toolkit/modules/tests/mochitest/.eslintrc => toolkit/modules/tests/mochitest/.eslintrc.js
rename : toolkit/modules/tests/xpcshell/.eslintrc => toolkit/modules/tests/xpcshell/.eslintrc.js
rename : toolkit/mozapps/downloads/tests/chrome/.eslintrc => toolkit/mozapps/downloads/tests/chrome/.eslintrc.js
rename : toolkit/mozapps/downloads/tests/unit/.eslintrc => toolkit/mozapps/downloads/tests/unit/.eslintrc.js
rename : toolkit/mozapps/extensions/.eslintrc => toolkit/mozapps/extensions/.eslintrc.js
rename : toolkit/mozapps/extensions/test/browser/.eslintrc => toolkit/mozapps/extensions/test/browser/.eslintrc.js
rename : toolkit/mozapps/extensions/test/mochitest/.eslintrc => toolkit/mozapps/extensions/test/mochitest/.eslintrc.js
rename : toolkit/mozapps/extensions/test/xpcshell/.eslintrc => toolkit/mozapps/extensions/test/xpcshell/.eslintrc.js
rename : toolkit/mozapps/extensions/test/xpinstall/.eslintrc => toolkit/mozapps/extensions/test/xpinstall/.eslintrc.js
rename : toolkit/mozapps/update/tests/chrome/.eslintrc => toolkit/mozapps/update/tests/chrome/.eslintrc.js
rename : toolkit/mozapps/update/tests/unit_aus_update/.eslintrc => toolkit/mozapps/update/tests/unit_aus_update/.eslintrc.js
rename : toolkit/mozapps/update/tests/unit_base_updater/.eslintrc => toolkit/mozapps/update/tests/unit_base_updater/.eslintrc.js
rename : toolkit/mozapps/update/tests/unit_service_updater/.eslintrc => toolkit/mozapps/update/tests/unit_service_updater/.eslintrc.js
rename : toolkit/profile/test/.eslintrc => toolkit/profile/test/.eslintrc.js
rename : toolkit/themes/osx/mochitests/.eslintrc => toolkit/themes/osx/mochitests/.eslintrc.js
rename : toolkit/xre/test/.eslintrc => toolkit/xre/test/.eslintrc.js
rename : tools/lint/eslint/eslint-plugin-mozilla/lib/rules/.eslintrc => tools/lint/eslint/eslint-plugin-mozilla/lib/rules/.eslintrc.js
extra : rebase_source : 60affc4b9bf436bba7e0e21a8da3a85d16c9fc06
2016-10-18 08:38:10 +01:00
Kit Cambridge
ff4d095ffe Bug 1295521 - Replace GUIDs with sync IDs in PlacesSyncUtils. r=markh,tcsc
MozReview-Commit-ID: Lg3SJx2uGNq

--HG--
extra : rebase_source : f13b90a122d0bcb375b2c0d4d7ae64b9fb43ce4c
2016-09-16 14:55:20 -07:00
Sebastian Hengst
f8d28a3b94 Backed out changeset 50d7b9b0b423 (bug 1309003) for timing out test_chrome_ext_hybrid_addons.html on Android. r=backout 2016-10-11 18:59:11 +02:00
Mike de Boer
750fee2c38 Bug 1279652 - reddit.com invalidates all references in the TextLayer, resulting in zero ClientRects for ranges that we have in the FinderHighlighter cache. This fix makes sure to re-fetch all the ranges when this is detected. r=jaws
MozReview-Commit-ID: 8OEKmKn9Nwc

--HG--
extra : rebase_source : 145f3a950b15b8300d8c055f5ff61cce8688ba72
2016-10-11 11:18:14 +02:00
Mike de Boer
3373c6d29e Bug 1305194 - wait a little longer when the finder iterator is requested to find a query of only one or two characters, which improves usability due to less flickering of highlighter results and performance due to avoiding the most costly nsFind operations there are on a page. r=jaws
Single and double character find operations cause a big hit on nsFind, because
it usually yields many more occurrences than other queries. But most importantly,
it needs to keep iterating each text node much longer than other queries, because
there is much less escapes/ loop exits happening.
This also fixes the FinderIterator infinite-depth call-stack due to unresolved
promises that remain active during the lifetime of the FinderIterator. Unwinding
the call-stack properly should save us bytes from the heap.

MozReview-Commit-ID: 4K19X0yngC7

--HG--
extra : rebase_source : 8acf61df9341c5cf6d7f1462a03681f458e2ee76
2016-10-11 18:06:45 +02:00
Kit Cambridge
14321604da Bug 1302901 - Create a Places mobile bookmarks root. r=mak
MozReview-Commit-ID: IESvIHCM2fK

--HG--
extra : rebase_source : 14db95c76cc8286380d80ef5717151bbd90532bd
2016-09-29 13:44:08 -07:00
Andy McKay
69bfe48899 bug 1282977 handle developer in manifest r=kmag
MozReview-Commit-ID: BsGflddsodd

--HG--
extra : rebase_source : 829a633f0e2d11d2f6f48e233bf91079ecb84b87
2016-09-15 16:37:16 -07:00
Wes Kocher
a0ecf84551 Merge m-c to inbound, a=merge 2016-10-04 17:42:22 -07:00
Wes Kocher
5a2fb874ca Merge inbound to central, a=merge 2016-10-04 17:32:01 -07:00
Tom Schuster
774a8bf34d Bug 1302163 - Change code to use SprintfLiteral instead of snprintf. r=ehsan 2016-10-04 17:57:51 +02:00
Dimi Lee
9e95041e88 Bug 1305801 - Part 5: Support SafeBrowsing v4 partial update. r=gcp
MozReview-Commit-ID: 7OEWLaZbotS

--HG--
extra : rebase_source : ab7a5eda234aaff3166e7082f9dc1f8b450d715b
2016-10-04 09:14:39 +08:00
Matt Howell
47663a3eb6 Bug 1306699 - Only invoke attribution code functionality in desktop Firefox; r=gfritzsche
MozReview-Commit-ID: JMGuP9kI6gD

--HG--
extra : source : a16efcbc34a9a619147a290caeaa90435197407f
2016-10-02 10:48:47 -07:00
Kris Maglione
22c349bd43 Fix space-unary-ops rule for keywords like yield. r=me (no bug) DONTBUILD
MozReview-Commit-ID: 8LHjOTKGis0

--HG--
extra : rebase_source : 672ff5d3b753a8e1240e009ce9eb972fdf05a0d1
extra : histedit_source : e5a0c34300e585091a9f64ce813c3cbe6b56147e
2016-10-04 22:19:33 +01:00
Dimi Lee
3ef7d52f53 Bug 1305801 - Part 4: Store variable-length prefix to disk. r=francois, r=gcp
MozReview-Commit-ID: BMTGtgMuQdg

--HG--
extra : rebase_source : dc4975d9ac8d14ecfabf6fc1229fdb8e863cde46
2016-09-19 11:51:01 +08:00
Mike de Boer
36a2ef8ac3 Bug 1302018 - make the background of the find toolbar dimmed highlighting mode a bit more see-through for readability. r=jaws
MozReview-Commit-ID: ClCRrtD31E9

--HG--
extra : rebase_source : 715b5e85440d685ee3b708c5cd4a8e27b6c910d7
2016-09-29 15:43:38 +02:00
Milan Sreckovic
9624c5aac5 Bug 1305120: CPU microcode as a separate field in the crash report. r=ted.mielczarek
MozReview-Commit-ID: 9g8ku4Et6sM

--HG--
extra : rebase_source : 9f6dec72efc99b7d3a8b14e11b00509d2d3fc656
2016-10-05 18:23:38 -04:00
Dimi Lee
fcaa1bd296 Bug 1305801 - Part 3: Testcase for variable length prefixSet. r=francois, r=gcp
MozReview-Commit-ID: Gy7LtQ11EkV

--HG--
extra : rebase_source : c17c1003e404abe6af08c0806dd6ec96db63f79e
2016-09-14 14:49:41 +08:00
Dimi Lee
9ee562ca5b Bug 1305801 - Part 2: Add telemetry for variable-length prefix set. r=francois
MozReview-Commit-ID: 8SebDJ8ZeKn

--HG--
extra : rebase_source : 2596c2263d7c105cdf93a67523eb3fc6882dfbbe
2016-09-27 14:26:09 -07:00
Dimi Lee
892dd390e7 Bug 1305801 - Part 1: Implement variable length PrefixSet class for Safe Browsing v4. r=francois, r=gcp
MozReview-Commit-ID: FahurMd1KGe

--HG--
extra : rebase_source : a3d17ba3b586cb1c030dabbd867b967aadc0067e
2016-10-04 21:43:08 +08:00
Sebastian Hengst
2bd34f750f Bug 1306137 - remove b2g camera code: Remove MOZ_B2G_CAMERA. r=aosmond
MozReview-Commit-ID: D207i9boeTJ

--HG--
extra : rebase_source : 390031b8a74ba145008328129079dcb0dee5a6c1
2016-09-28 21:10:32 +02:00
Fischer.json
eeb751d411 Bug 1130447 - Hide the password manager timeLastUsed column by default. r=MattN
MozReview-Commit-ID: LxKnIfBhtQh

--HG--
extra : rebase_source : edbb41cc39c29523c65e00f21dc632a0aa2116a7
2016-09-20 15:45:15 +08:00
Rob Wu
24d04d4b4a Bug 1287007 - Set the principal in ChildAPIManager r=billm
The `browser.downloads.download` API takes a "url" parameter. The schema
file at downloads.json defines the type to be "url". This means that the
parameter is checked with `context.checkLoadURL(url)` in Schemas.jsm.
This method uses the principal of the object that was passed to
`Schemas.inject`.

Currently, this works just fine because the `schemaWrapper` in
Extension.jsm returns the context's principal.
But when we move to using the ChildAPIManager, the principal is not
defined and Schemas.jsm will fall back to a Null principal.

As a result, the test_ext_downloads_download.js fails because the
blob:-URL with the extension origin cannot be loaded by a null
principal. To fix this, the context's principal must be set.

MozReview-Commit-ID: FmpqYfPemyY

--HG--
extra : rebase_source : c8f96765cc05fc4a3631120ae4546d6a8512c840
2016-09-07 20:35:39 -07:00
Carsten "Tomcat" Book
750b23e14d Merge mozilla-central to mozilla-inbound 2016-10-05 17:07:19 +02:00
Chris H-C
5ad42eb94c bug 1304519 - Ensure we hold a lock before accumulating. r=gfritzsche
Lock calls to internal_Accumulate from functions that run without locks.

This doesn't render TelemetryHistogram perfectly threadsafe. However,
this does protect all accumulation sites.

MozReview-Commit-ID: 16JUek8NiXI
2016-10-05 09:21:25 -04:00
Gabriele Svelto
8cbbe7f4b5 Bug 1264367 - Upgrade breakpad to upstream revision 704f41ec901c419f8c321742114b415e6f5ceacc r=ted
* * *
Bug 1264367 - Accomodate for the new version of Breakpad
2016-10-05 11:46:07 +02:00
Matthew Wein
ae9ba130ae Bug 1311049 - Rename unifiedcomplete tests to follow the same naming convention r=mak
MozReview-Commit-ID: AqYtXmYFKvg

--HG--
rename : toolkit/components/places/tests/unifiedcomplete/test_autoFill_default_behavior.js => toolkit/components/places/tests/unifiedcomplete/test_autofill_default_behavior.js
rename : toolkit/components/places/tests/unifiedcomplete/test_queryurl.js => toolkit/components/places/tests/unifiedcomplete/test_query_url.js
rename : toolkit/components/places/tests/unifiedcomplete/test_remotetabmatches.js => toolkit/components/places/tests/unifiedcomplete/test_remote_tab_matches.js
rename : toolkit/components/places/tests/unifiedcomplete/test_searchEngine_alias.js => toolkit/components/places/tests/unifiedcomplete/test_search_engine_alias.js
rename : toolkit/components/places/tests/unifiedcomplete/test_searchEngine_current.js => toolkit/components/places/tests/unifiedcomplete/test_search_engine_current.js
rename : toolkit/components/places/tests/unifiedcomplete/test_searchEngine_host.js => toolkit/components/places/tests/unifiedcomplete/test_search_engine_host.js
rename : toolkit/components/places/tests/unifiedcomplete/test_searchEngine_restyle.js => toolkit/components/places/tests/unifiedcomplete/test_search_engine_restyle.js
rename : toolkit/components/places/tests/unifiedcomplete/test_searchSuggestions.js => toolkit/components/places/tests/unifiedcomplete/test_search_suggestions.js
rename : toolkit/components/places/tests/unifiedcomplete/test_tabmatches.js => toolkit/components/places/tests/unifiedcomplete/test_tab_matches.js
rename : toolkit/components/places/tests/unifiedcomplete/test_visiturl.js => toolkit/components/places/tests/unifiedcomplete/test_visit_url.js
extra : rebase_source : 00234d4901922b91f58ecfb2d89957596f59df57
2016-10-18 19:08:50 +01:00
Carsten "Tomcat" Book
c71c756c29 Merge mozilla-central to autoland 2016-10-25 10:49:11 +02:00
Sebastian Hengst
fecfd038fd Bug 1283384 - Implement time picker UI w/ message passing: Fix eslint errors. r=eslint 2016-10-25 09:32:56 +02:00
Tim Huang
85a1cb6b99 Bug 1277803 - Part 1: Add a new ContentPolicy TYPE_INTERNAL_IMAGE_FAVICON for indicating a favicon loading. r=ckerschb 2016-09-07 00:38:00 -04:00
Jessica Jong
b3014cc00b Bug 1288591 - Implement the layout for <input type=time>. r=mconley, r=dholbert, r=smaug 2016-10-06 00:17:00 -04:00
Rob Wu
2b7962648c Bug 1287007 - Remove dead code r=billm
MozReview-Commit-ID: LtuKY5DjB68

--HG--
extra : rebase_source : d79d45cef78822977766f67f2172239d523a7182
2016-09-06 15:50:50 -07:00
Rob Wu
0baf41ff20 Bug 1287007 - Use child's Extension instead of the process' r=billm
MozReview-Commit-ID: 9o8tOuUbchn

--HG--
extra : rebase_source : 8caefb779ea9faef3861aa79a147caace91fe44b
2016-09-06 15:31:33 -07:00
Rob Wu
e15366d54e Bug 1287007 - Fix test_ext_api_permissions.js r=billm
"extension.views" will only be available in content, so
use the "proxy-context-load" event to detect new views.

MozReview-Commit-ID: K86Be5IDk42

--HG--
extra : rebase_source : 97c839efacbb9981399462d712766b5410567bae
2016-09-07 17:10:33 -07:00
Rob Wu
dce0635037 Bug 1287007 - Use IPC to share viewType, tabId and windowId r=billm
Accessing <browser> in ContentChild does not work when extensions run in
a separate process.

MozReview-Commit-ID: EK0aOYeGaZ5

--HG--
extra : rebase_source : 359cb1f9022b8097d27aa74a30e133c4a7e7c742
2016-09-06 15:25:10 -07:00
Chris Manchester
90dd38f890 Bug 1300164 - Move VISIBILITY_FLAGS to Python configure. r=glandium
MozReview-Commit-ID: Ku1oUGVdtdm
2016-10-04 11:48:21 -07:00
Rob Wu
ff65d297cc Bug 1287007 - Move extension context initialization to ExtensionContent r=billm
This is a simple move of ExtensionContext creation logic to
ExtensionChild.

Before the change, ExtensionContext was initialized as follows:

1. (ext-backgroundPage.js) Create background page
2. (Extension.jsm) document-element-inserted observed.
3. (Extension.jsm) new ExtensionContext + unload observer.

After this commit:

1. (ext-backgroundPage.js) Create background page
2. (ext-backgroundPage.js) emit extension-browser-inserted event
3. (Extension.jsm) Pass global to ExtensionContent + unload listener.
4. (ExtensionContent.jsm) document-element-inserted observed.
5. (ExtensionChild.jsm) new ExtensionContext

The next step is to use frame scripts and synchronize state.

MozReview-Commit-ID: K6mPdq7KQ2T

--HG--
extra : rebase_source : c742dfe89646d6717da134c7408aa5a066107c66
2016-09-05 23:50:11 -07:00
Rob Wu
01ddf6d0af Bug 1287007 - Move extension.getViews to child r=billm
MozReview-Commit-ID: SG2pmulzaP

--HG--
extra : rebase_source : 7c2e65794c3d242f8b03e8773f58b84b160085cf
2016-09-07 22:54:07 -07:00
Rob Wu
c68c40357a Bug 1287007 - Move background page API logic to child r=billm
MozReview-Commit-ID: iGROahhkhn

--HG--
extra : rebase_source : c05e46aab941feb017eae8b92d02e7b38ac5f347
2016-09-05 22:34:44 -07:00
Rob Wu
6023c940a4 Bug 1287007 - Rename "context.type" to "context.viewType" r=billm
"viewType" is more easily searchable and not as ambiguous as "type".

MozReview-Commit-ID: 8sG4qagFCBu

--HG--
extra : rebase_source : 39d76379996e631b9fc33f0c77d565cf302b9df9
2016-09-05 22:26:56 -07:00
Scott Wu
7fd5ee8fa1 Bug 1283384 - Implement time picker UI w/ message passing, r=mconley
MozReview-Commit-ID: Gn3Itf0yFrN

--HG--
extra : rebase_source : 7eda91dfe52cd48a0cf795293f4220f7258796cb
2016-09-06 13:01:40 +08:00
Rob Wu
dedac1507f Bug 1287007 - Introduce ChildAPIManager to addon code r=billm
This is the bare minimum to separate the generation of addon_parent and
addon_child APIs. Now it is possible to have methods with the same name
but different implementations in the parent and child.

Many APIs are not compatible with the proxied API implementation, so
they temporarily fall back to directly invoking the parent API, just as
before this commit.

MozReview-Commit-ID: fwuZUvD8tY

--HG--
extra : rebase_source : 5360af53ff628602014ca8bcff74828ce3cda742
2016-09-05 18:57:38 -07:00
Rob Wu
bcd1d0ccd2 Bug 1287007 - Do not neuter error messages from the same principal r=billm
With an upcoming change that introduces another ProxyContext,
errors from a different scope may bubble up. These messages should
be reported, not replaced with "An unexpected error occurred".

MozReview-Commit-ID: ByUktVkhDyx

--HG--
extra : rebase_source : 30c6d8629c705b3cb1b3a186550720137d641e20
2016-09-05 17:04:28 -07:00
Rob Wu
78dc0225aa Bug 1287007 - Move ExtensionContext to separate file r=billm
This is just a mechanical change, literally nothing more than cutting
ExtensionContext from Extension.jsm, pasting it in ExtensionChild.jsm
and adding the minimal imoort boilerplate.

MozReview-Commit-ID: 5uVt1IOdEFU

--HG--
extra : rebase_source : 7ab912ded4dee4e5104deebe3d5268017b63eb9b
2016-09-05 00:15:18 -07:00
Rob Wu
9f636c39af Bug 1287007 - Fix cross-process browser.storage.local serialization r=billm
- Lazily initialize file IO-specific stuff in ExtensionStorage.jsm,
  and limit this work to the main process.

- Add local versions of the `storage.local.get` and `storage.local.set`
  implementations that perform sanitization (without the change, values
  are improperly serialized over IPC).

- Copied the `backgroundScript` test from xpcshell/test_ext_storage.js
  to mochitest/test_ext_storage_content.html because they should behave
  identical. Before this patch the test failed due to IPC serialization
  issues, now the test passes.
  Note that the old test also passes with the changes.

MozReview-Commit-ID: 8J8CCdwMACN

--HG--
extra : rebase_source : 7b8a490b79c09f69a10d4dc13ad23f8382b641d1
2016-09-04 19:19:17 -07:00
Rob Wu
92af808fd6 Bug 1287007 - Derive context.principal from sandbox r=billm,kmag
`context.principal` should be equal to the principal of the sandbox, so
that if a new sandbox is created using `Cu.Sandbox(principal)`, that
objects can be shared between the new sandbox and `context.cloneScope`
(= `context.sandbox`) without issues.

Without this change, using `context.jsonStringify` on an object from a
content script would trigger the following error:

> Error: Permission denied to access property "toJSON"

This scenario is covered by the test
toolkit/components/extensions/test/mochitest/test_ext_storage_content.html
in the next commit.

MozReview-Commit-ID: E4Jt8TDwNAZ

--HG--
extra : rebase_source : ada568f456efc31d6bcd0fa0b07ffe0358f30c1c
2016-09-30 19:16:34 +02:00
Rob Wu
8ccd32af9a Bug 1287007 - Allow local implementations to call remote implementations r=billm
- Add callParentFunctionNoReturn / callParentAsyncFunction to
  ChildAPIManager to implement remote calls.

- Add in-process browser.test implementation that uses this.

- Add tests to verify that the browser.test.assert* methods with
  the `allowAmbiguousOptionalArguments` schema attribute are working
  with objects that cannot be passed as-is over IPC.
  (except test.sendMessage, because stringifying the arguments has an
   observable impact on test behavior)

MozReview-Commit-ID: 6cFVgmFfU93

--HG--
extra : rebase_source : 8e1046d5c7b2ec18e6130ae92fe539f3c0e02706
2016-09-04 02:29:48 -07:00
Mike de Boer
da36d08c94 Bug 1305194 - wait a little longer when the finder iterator is requested to find a query of only one or two characters, which improves usability due to less flickering of highlighter results and performance due to avoiding the most costly nsFind operations there are on a page. r=jaws
Single and double character find operations cause a big hit on nsFind, because
it usually yields many more occurrences than other queries. But most importantly,
it needs to keep iterating each text node much longer than other queries, because
there is much less escapes/ loop exits happening.
This also fixes the FinderIterator infinite-depth call-stack due to unresolved
promises that remain active during the lifetime of the FinderIterator. Unwinding
the call-stack properly should save us bytes from the heap.

MozReview-Commit-ID: 4K19X0yngC7

--HG--
extra : rebase_source : 1801dc16736d0ff9c7534bdaf3ec5a73b326f244
2016-10-12 15:46:44 +02:00
Rob Wu
8a87af36f9 Bug 1287007 - Require "async" in schemas to match name r=billm
In the pageAction and browserAction schemas, several methods are
declared with `"async": true` but without a specified callback in the
`"parameters"` object, so callbacks are not allowed. However, when a
callback is proxied, the `ParentAPIManager` will mirror the call by
passing in an extra callback to the proxied API - and break.

This patch fixes the issue by removing uses of async:true.  Also for
consistency between the browserAction and pageAction methods, the
methods that were not declared as async have also been marked as async.

MozReview-Commit-ID: JQqzmTUAotB

--HG--
extra : rebase_source : 62d1cbc4843dd6c792318337158e4311f8df94a4
2016-09-02 03:37:55 -07:00
Rob Wu
e2e6ffa6f0 Bug 1287007 - Refactor test_ext_schemas_api_injection.js r=billm
When the background API move to a separate implementation,
then the schema APIs will be generated (and ChildAPIManager
will just delegate the implementation to the parent process).

The purpose of the test is to verify that nested namespaces and
null-feturn values work, so just use the base classes instead of a
concrete implementation for BaseContext / SchemaAPIManager instead of
setting up a full extension.

MozReview-Commit-ID: CB5s7Ae24zS

--HG--
extra : rebase_source : c9f50d84151b18323097e1a00d2eb3839a22f64d
2016-09-02 05:36:33 -07:00
Rob Wu
9b86e99594 Bug 1287007 - Improve errors for non-existing remote APIs r=billm
Currently, if the remote implementation is missing, the next unhelpful
error message is logged to the console:
"TypeError: findPathInObject(...) is not a function" or
"TypeError: findPathInObject(...) is undefined", etc.

This commit makes the message more useful:
"WebExtension API tabs.create not found (it may be unimplemented by Firefox)"

MozReview-Commit-ID: FhPEYKSjnLm

--HG--
extra : rebase_source : 29725b686428c7c052838681f396ff877d19bb18
2016-09-01 21:14:31 -07:00
Rob Wu
af60812f40 Bug 1287007 - Fix some flaws in ProxyAPIImplementation r=billm
- removeListener: There is no set.remove, use set.delete.
- Async callbacks: Do not unconditionally turn the result in a
  SpreadArgs because it causes the result to unconditionally
  be wrapped in an array (+test).

MozReview-Commit-ID: LqwtBsHWJJr

--HG--
extra : rebase_source : 1c569ab4733c8111960613fc210357960ae09e88
2016-09-01 21:10:18 -07:00
dimi
2660320626 Bug 1305780 - P2. Testcase for update fail. r=gcp
MozReview-Commit-ID: CopsfRuawdm

--HG--
extra : rebase_source : 85a19da2ac4666cdc0ca48fb307f1d8994870282
2016-10-24 08:43:54 +08:00
DimiL
48ddedb04e Bug 1305780 - P1. Implement the update fail scheme for v4. r=gcp
MozReview-Commit-ID: LeVpVIUdmjc

--HG--
extra : rebase_source : bfc189b5a3f1cfc17bd269bcb7e7edad826769a3
2016-10-19 12:52:05 +08:00
Dave Townsend
5ae97524cb Bug 1312055: Fix various eslint errors. r=standard8
MozReview-Commit-ID: 2XbldhBnofs

--HG--
extra : rebase_source : f0c91dfbe37159077b8d0506913dd719fe577f17
2016-10-21 10:03:51 -07:00
Eitan Isaacson
a90bd7a14c Bug 1307962 - Don't close VoiceList when focusing on toggle button. r=Gijs
MozReview-Commit-ID: E8P8y3oYbtb

--HG--
extra : rebase_source : 7ae04213ef0f6c1babe0dd8fd5c5e85578058d1e
2016-10-04 14:41:08 -07:00
Georg Fritzsche
f827f7c526 Bug 1311021 - Add BUG_COMPONENT build meta-data for Telemetry. r=froydnj 2016-10-18 16:27:35 +02:00
Mike Conley
3027242882 Bug 1296638 - Adjust autocomplete test helpers to account for the new richlistbox implementation. r=MattN
MozReview-Commit-ID: 4FmGMKfBn07

--HG--
extra : rebase_source : ecc7779172639342e49f8fff6a2ba46336a04ddc
2016-08-23 16:01:10 -04:00
Phil Ringnalda
435a27119b Merge m-c to m-i
MozReview-Commit-ID: 8nqgw9Q3gSY
2016-10-25 22:07:07 -07:00
Ting-Yu Chou
f43ddde533 Bug 1312309 - Use updated option of "-fexceptions" for clang-cl. r=froydnj
MozReview-Commit-ID: A3Qlgbzfkce
2016-10-24 09:53:55 +08:00
Chris Manchester
f63cec632c Bug 1305145 - Move --enable-tree-freetype to Python configure. r=glandium
This commit also removes the option, as it's only known to work
on Android, where it is the default.

MozReview-Commit-ID: JqdC5Q5dwQH
2016-10-14 11:06:31 -07:00
Chris Manchester
a3e6682857 Bug 1305145 - Move freetype2 detection to Python configure. r=glandium
MozReview-Commit-ID: 1O4SdH0HvzL
2016-10-14 11:06:31 -07:00
Chris Manchester
7d177e214f Bug 1305145 - Move fontconfig detection to Python configure. r=glandium
MozReview-Commit-ID: J6XQFA6whCr
2016-10-14 11:06:31 -07:00