Commit Graph

31046 Commits

Author SHA1 Message Date
Nick Fitzgerald
7af93cdc2a Bug 1200446 - Add a method for saving heap snapshots to MemoryActor; r=jryans 2015-09-04 18:36:52 -07:00
Wes Kocher
239c2be110 Merge m-c to fx-team, a=merge 2015-09-04 15:42:29 -07:00
Wes Kocher
a5709b4620 Merge inbound to central, a=merge 2015-09-04 15:34:42 -07:00
Jordan Santell
980a030265 Bug 1201543 - Move CensusTreeNode to toolkit/devtools/heapsnapshot/*. r=fitzgen
--HG--
rename : browser/devtools/memory/modules/census.js => toolkit/devtools/heapsnapshot/census-tree-node.js
rename : browser/devtools/memory/test/unit/test_census-01.js => toolkit/devtools/heapsnapshot/tests/unit/test_census-tree-node-01.js
rename : browser/devtools/memory/test/unit/test_census-02.js => toolkit/devtools/heapsnapshot/tests/unit/test_census-tree-node-02.js
rename : browser/devtools/memory/test/unit/test_census-03.js => toolkit/devtools/heapsnapshot/tests/unit/test_census-tree-node-03.js
2015-09-04 10:04:02 -07:00
Andrew McCreight
13445609b8 Backed out changeset 351d5f864f9e for not compiling. 2015-09-04 09:52:24 -07:00
Andrew McCreight
cc00f8d5c9 Bug 1201271 - Warn about unused results for more methods of nsTArray. r=froydnj
This leaves alone the AppendElement methods.
2015-09-04 09:45:44 -07:00
Bill McCloskey
48a154e45c Bug 1201935 - Disable WebExtension tests on MacOS because sandbox breaks them 2015-09-04 09:45:03 -07:00
Bill McCloskey
5417189a5b Bug 1201377 - [webext] Nuke content script sandbox when page closes (r=gabor) 2015-09-04 09:45:02 -07:00
Bill McCloskey
1b946c60b2 Bug 1199832 - [webext] browser.tabs.executeScript must create a context (r=gabor) 2015-09-04 09:45:02 -07:00
Bill McCloskey
828a74056a Bug 1199698 - [webext] Fix chrome.* from content scripts (r=gabor) 2015-09-04 09:45:01 -07:00
Bill McCloskey
d4c8e8942d Bug 1199800 - [webext] Allow extensions to be generated from JSON (r=gabor) 2015-09-04 09:45:01 -07:00
Bill McCloskey
1a7f006d5a Bug 1199800 - [webext] Refactoring to support using extensions from chrome tests (r=gabor) 2015-09-04 09:45:00 -07:00
Bill McCloskey
a60d7870e2 Bug 1197437 - [webext] Fix content script run_at parameter (r=gabor) 2015-09-04 09:44:59 -07:00
Carsten "Tomcat" Book
ba11394eac Merge mozilla-central to fx-team 2015-09-04 16:25:40 +02:00
Carsten "Tomcat" Book
57bd4d9f0d merge mozilla-inbound to mozilla-central a=merge 2015-09-04 16:05:11 +02:00
Carsten "Tomcat" Book
3145bc32e7 Backed out 11 changesets (bug 1201377, bug 1199800, bug 1197437, bug 1199832, bug 1199698, bug 1199842) for breaking browser_ext_tabs_executeScript.js test on a CLOSED TREE
Backed out changeset 8d8d73d3c3e1 (bug 1201377)
Backed out changeset 4ed8951e3f54 (bug 1199842)
Backed out changeset 5830178bc008 (bug 1199832)
Backed out changeset 4445c570fe49 (bug 1199698)
Backed out changeset 35fc1e25d167 (bug 1199800)
Backed out changeset 54c4c3bd2454 (bug 1199800)
Backed out changeset bd3112ce6b9b (bug 1199800)
Backed out changeset 701e56e18ca7 (bug 1199800)
Backed out changeset 4407d50a7995 (bug 1199800)
Backed out changeset af2fbe345712 (bug 1199800)
Backed out changeset 0a41d20fcf77 (bug 1197437)
2015-09-04 09:59:34 +02:00
Phil Ringnalda
48457bc69c Backed out 4 changesets (bug 1192921) for b2g desktop Gu hangs
Backed out changeset 1bfa2dead61f (bug 1192921)
Backed out changeset f310cab1dd4e (bug 1192921)
Backed out changeset c3009691dfe6 (bug 1192921)
Backed out changeset d8233b994741 (bug 1192921)
2015-09-03 20:53:50 -07:00
Nick Fitzgerald
366d93ee3c Bug 1201213 - Add a HeapAnalyses{Worker,Client} for running heap analyses; r=jsantell 2015-09-03 17:29:40 -07:00
Nick Fitzgerald
6688b73304 Bug 1200821 - Move HeapSnapshot code and tests to toolkit/devtools/heapsnapshot; r=jimb
--HG--
rename : toolkit/devtools/server/AutoMemMap.cpp => toolkit/devtools/heapsnapshot/AutoMemMap.cpp
rename : toolkit/devtools/server/AutoMemMap.h => toolkit/devtools/heapsnapshot/AutoMemMap.h
rename : toolkit/devtools/server/CoreDump.pb.cc => toolkit/devtools/heapsnapshot/CoreDump.pb.cc
rename : toolkit/devtools/server/CoreDump.pb.h => toolkit/devtools/heapsnapshot/CoreDump.pb.h
rename : toolkit/devtools/server/CoreDump.proto => toolkit/devtools/heapsnapshot/CoreDump.proto
rename : toolkit/devtools/server/DeserializedNode.cpp => toolkit/devtools/heapsnapshot/DeserializedNode.cpp
rename : toolkit/devtools/server/DeserializedNode.h => toolkit/devtools/heapsnapshot/DeserializedNode.h
rename : toolkit/devtools/server/HeapSnapshot.cpp => toolkit/devtools/heapsnapshot/HeapSnapshot.cpp
rename : toolkit/devtools/server/HeapSnapshot.h => toolkit/devtools/heapsnapshot/HeapSnapshot.h
rename : toolkit/devtools/server/ZeroCopyNSIOutputStream.cpp => toolkit/devtools/heapsnapshot/ZeroCopyNSIOutputStream.cpp
rename : toolkit/devtools/server/ZeroCopyNSIOutputStream.h => toolkit/devtools/heapsnapshot/ZeroCopyNSIOutputStream.h
rename : toolkit/devtools/server/generate-core-dump-sources.sh => toolkit/devtools/heapsnapshot/generate-core-dump-sources.sh
rename : toolkit/devtools/server/tests/gtest/DeserializedNodeUbiNodes.cpp => toolkit/devtools/heapsnapshot/tests/gtest/DeserializedNodeUbiNodes.cpp
rename : toolkit/devtools/server/tests/gtest/DeserializedStackFrameUbiStackFrames.cpp => toolkit/devtools/heapsnapshot/tests/gtest/DeserializedStackFrameUbiStackFrames.cpp
rename : toolkit/devtools/server/tests/gtest/DevTools.h => toolkit/devtools/heapsnapshot/tests/gtest/DevTools.h
rename : toolkit/devtools/server/tests/gtest/DoesCrossZoneBoundaries.cpp => toolkit/devtools/heapsnapshot/tests/gtest/DoesCrossZoneBoundaries.cpp
rename : toolkit/devtools/server/tests/gtest/DoesntCrossZoneBoundaries.cpp => toolkit/devtools/heapsnapshot/tests/gtest/DoesntCrossZoneBoundaries.cpp
rename : toolkit/devtools/server/tests/gtest/SerializesEdgeNames.cpp => toolkit/devtools/heapsnapshot/tests/gtest/SerializesEdgeNames.cpp
rename : toolkit/devtools/server/tests/gtest/SerializesEverythingInHeapGraphOnce.cpp => toolkit/devtools/heapsnapshot/tests/gtest/SerializesEverythingInHeapGraphOnce.cpp
rename : toolkit/devtools/server/tests/gtest/SerializesTypeNames.cpp => toolkit/devtools/heapsnapshot/tests/gtest/SerializesTypeNames.cpp
rename : toolkit/devtools/server/tests/gtest/UniqueStringHashPolicy.cpp => toolkit/devtools/heapsnapshot/tests/gtest/UniqueStringHashPolicy.cpp
rename : toolkit/devtools/server/tests/gtest/moz.build => toolkit/devtools/heapsnapshot/tests/gtest/moz.build
rename : toolkit/devtools/server/tests/mochitest/test_SaveHeapSnapshot.html => toolkit/devtools/heapsnapshot/tests/mochitest/test_SaveHeapSnapshot.html
rename : toolkit/devtools/server/tests/unit/Census.jsm => toolkit/devtools/heapsnapshot/tests/unit/Census.jsm
rename : toolkit/devtools/server/tests/unit/Match.jsm => toolkit/devtools/heapsnapshot/tests/unit/Match.jsm
rename : toolkit/devtools/server/tests/unit/heap-snapshot-worker.js => toolkit/devtools/heapsnapshot/tests/unit/heap-snapshot-worker.js
rename : toolkit/devtools/server/tests/unit/test_HeapSnapshot_takeCensus_01.js => toolkit/devtools/heapsnapshot/tests/unit/test_HeapSnapshot_takeCensus_01.js
rename : toolkit/devtools/server/tests/unit/test_HeapSnapshot_takeCensus_02.js => toolkit/devtools/heapsnapshot/tests/unit/test_HeapSnapshot_takeCensus_02.js
rename : toolkit/devtools/server/tests/unit/test_HeapSnapshot_takeCensus_03.js => toolkit/devtools/heapsnapshot/tests/unit/test_HeapSnapshot_takeCensus_03.js
rename : toolkit/devtools/server/tests/unit/test_HeapSnapshot_takeCensus_04.js => toolkit/devtools/heapsnapshot/tests/unit/test_HeapSnapshot_takeCensus_04.js
rename : toolkit/devtools/server/tests/unit/test_HeapSnapshot_takeCensus_05.js => toolkit/devtools/heapsnapshot/tests/unit/test_HeapSnapshot_takeCensus_05.js
rename : toolkit/devtools/server/tests/unit/test_HeapSnapshot_takeCensus_06.js => toolkit/devtools/heapsnapshot/tests/unit/test_HeapSnapshot_takeCensus_06.js
rename : toolkit/devtools/server/tests/unit/test_HeapSnapshot_takeCensus_07.js => toolkit/devtools/heapsnapshot/tests/unit/test_HeapSnapshot_takeCensus_07.js
rename : toolkit/devtools/server/tests/unit/test_HeapSnapshot_takeCensus_08.js => toolkit/devtools/heapsnapshot/tests/unit/test_HeapSnapshot_takeCensus_08.js
rename : toolkit/devtools/server/tests/unit/test_HeapSnapshot_takeCensus_09.js => toolkit/devtools/heapsnapshot/tests/unit/test_HeapSnapshot_takeCensus_09.js
rename : toolkit/devtools/server/tests/unit/test_HeapSnapshot_takeCensus_10.js => toolkit/devtools/heapsnapshot/tests/unit/test_HeapSnapshot_takeCensus_10.js
rename : toolkit/devtools/server/tests/unit/test_HeapSnapshot_takeCensus_11.js => toolkit/devtools/heapsnapshot/tests/unit/test_HeapSnapshot_takeCensus_11.js
rename : toolkit/devtools/server/tests/unit/test_ReadHeapSnapshot.js => toolkit/devtools/heapsnapshot/tests/unit/test_ReadHeapSnapshot.js
rename : toolkit/devtools/server/tests/unit/test_ReadHeapSnapshot_with_allocations.js => toolkit/devtools/heapsnapshot/tests/unit/test_ReadHeapSnapshot_with_allocations.js
rename : toolkit/devtools/server/tests/unit/test_ReadHeapSnapshot_worker.js => toolkit/devtools/heapsnapshot/tests/unit/test_ReadHeapSnapshot_worker.js
rename : toolkit/devtools/server/tests/unit/test_SaveHeapSnapshot.js => toolkit/devtools/heapsnapshot/tests/unit/test_SaveHeapSnapshot.js
2015-09-03 17:29:40 -07:00
Dave Townsend
0cf2a7c5c2 Bug 1194784: Sideloaded add-ons without full signing don't display an appropriate warning in the add-ons manager. r=dao
--HG--
extra : commitid : 10VQvgDJsbv
extra : rebase_source : 9a2ea211db29e335a37ddf824bd18776d62cbeca
2015-09-03 12:39:29 -07:00
Tom Tromey
a07ecc2605 Bug 1201136 - make output-parser correctly handle special color values. r=bgrins 2015-09-03 11:46:00 +02:00
Carsten "Tomcat" Book
3961c96b63 Merge mozilla-central to mozilla-inbound 2015-09-04 16:14:00 +02:00
Jim Mathies
f0f7a995e4 Bug 1199765 - Add support to TabParent for querying the active state of remote browsers. r=Mossop 2015-09-04 08:42:01 -05:00
Riadh Chtara
1930cc74df Bug 682069 - Password Import from IE not available. r=dolske r=mattn
--HG--
extra : transplant_source : %85p%0C%5B%8CZ%7D%2C%81%8EW%CFC%CD%C4%E0%29%E1M%20
2015-09-01 17:27:04 -07:00
Florian Quèze
e966fcb5ac Bug 1169459 - remove the loadFromJars/jarURIs prefs, r=Mossop. 2015-09-04 11:50:49 +02:00
Florian Quèze
2d82cfc143 Bug 438599 - the currentEngine attribute of nsIBrowserSearchService should never be null, r=Mossop. 2015-09-04 11:39:08 +02:00
David Anderson
ad844728eb Add a timeout to the graphics sanity test. (bug 1195623, r=mchang)
--HG--
extra : rebase_source : f4fe8945cf0269389ca9a9cfbe75aea72eb6f3fb
2015-09-03 20:58:48 -07:00
Bill McCloskey
2a80660ea9 Bug 1201377 - [webext] Nuke content script sandbox when page closes (r=gabor) 2015-09-03 20:59:05 -07:00
Bill McCloskey
ce526a3a05 Bug 1199832 - [webext] browser.tabs.executeScript must create a context (r=gabor) 2015-09-03 20:59:04 -07:00
Bill McCloskey
9ada7e9b9c Bug 1199698 - [webext] Fix chrome.* from content scripts (r=gabor) 2015-09-03 20:59:04 -07:00
Bill McCloskey
bc0c23104b Bug 1199800 - [webext] Allow extensions to be generated from JSON (r=gabor) 2015-09-03 20:59:03 -07:00
Bill McCloskey
e416c237da Bug 1199800 - [webext] Refactoring to support using extensions from chrome tests (r=gabor) 2015-09-03 20:59:01 -07:00
Bill McCloskey
a9349e7383 Bug 1197437 - [webext] Fix content script run_at parameter (r=gabor) 2015-09-03 20:59:01 -07:00
Dave Townsend
a486e9c783 Bug 1192921: Add an install location for system add-ons. r=rhelmer
This adds two new directory install locations. One contains the default system
add-ons that ship with the application, the other contains system add-on that
will eventually be updatable at runtime.

The updatable location tracks the expected list of add-ons in a pref. and only
returns add-ons from that list when asked for its list of add-ons.

After processFileChanges has scanned all add-ons and updated the database it
checks if the updated system add-ons match the expected set. If not we ignore
those add-ons when working out which add-ons should be visible. If they do match
then we ignore the app-shipped system add-ons when working out which are
visible.

--HG--
extra : commitid : H1px7lWsLNj
extra : rebase_source : 6b70fd6c88608169e2974e19acd37bf63243c1cd
2015-08-10 15:47:28 -07:00
Dave Townsend
72d129f6ff Bug 1192921: Split DirectoryInstallLocation into an immutable and mutable version. r=rhelmer
Most directory install locations are immutable at runtime. Only the profile
location can be installed into and uninstalled from. The system add-on locations
will be immutable as well but also be extended with some extra functionality so
it is useful to split the immutable parts out into a shared class that both
the mutable location and eventually system add-on locations can inherit from.

--HG--
extra : commitid : 93JIjq8Dq7f
extra : rebase_source : b7bb657f11a6313a00589790787ad91a26543e36
2015-08-25 16:01:55 -07:00
Dave Townsend
00a22e8793 Bug 1192921: Remove most assumptions that add-on IDs match filenames. r=rhelmer
Normal directory install locations expect add-ons to exist on disk with the
naming convention "<id>.xpi". Originally system add-ons were going to do
something different so I started working on this. In the end it is unnecessary
but this work did reveal some cases where _sourceBundle wasn't being updated
for add-ons and removing most of these assumptions is still valuable.

--HG--
extra : commitid : G0Rr1VMDtWB
extra : rebase_source : 426b21cd9faace5371de939170c12e1b96284386
2015-08-25 15:18:43 -07:00
Dave Townsend
53b799a110 Bug 1192921: Refactor add-on manager startup loop to better support validating install locations after scanning. r=rhelmer
The add-ons manager recognises the notion of "install locations". Each location
can contain add-ons that are installed in the application. There are two main
types, directory locations which exist as a directory somewhere in the
filesystem and registry locations which exist in the Windows registry. The
profile location is the one where add-ons installed through the UI exist, the
other locations are for add-ons that are bundled with the application,
installed by the OS or by third-party applications.

Install locations have priorities. The profile location has the highest priority
then the others gradually lower priorities. When an add-on exists in more than
one install location the version in the highest priority location is the one
that is visible and can be active in the application. We still retain details
about the other versions in the database.

On every startup the add-ons manager scans over these install locations to see
if the set of installed add-ons has changed at all. A very quick check is done
to see if the more thorough check in processFileChanges (which synchronously
loads the add-ons database and install manifests for the add-ons) is needed.

The job of processFileChanges is to load information about all the add-ons and
update the add-ons database to match. It has to decide which add-ons to make
visible, track what changes were made to the visible set of add-ons and call
restartless add-ons install and uninstall scripts.

The original version of processFileChanges attempted to optimise this by doing
all of the work in a single loop over the add-ons in the locations. This mostly
worked but made certain situations difficult to handle (see bug 607818 f.e.).
There isn't much need for this level of optimisation. We're already in a slow
pass and once all the data is loaded off the disk looping over it is fast.

This changeset moves processFileChanges into the XPIProviderUtils file which is
lazy loaded when necessary. While most of the code is the same it instead does
one loop to update the database and gather information, then a second loop to
update add-on visibility, record changes and call bootstrap scripts.

--HG--
extra : commitid : FAyc1y0WszT
extra : rebase_source : 308a674ec0e3f81ee3e0533b7014c37477860d67
2015-08-21 16:49:56 -07:00
Jared Wein
ac64d12539 Bug 1181500 - Instrumentation for tablet mode usage in desktop Firefox. r=ttaubert p=ally
--HG--
extra : rebase_source : c849512daf442c830108e9a234de733b816d7432
2015-09-03 14:34:29 -04:00
Dave Townsend
d78b5ae798 Bug 1200027: Fix installing add-ons from the AMO discovery pane in the add-ons manager. r=dveditz
--HG--
extra : commitid : 94OiH0KUpNn
extra : rebase_source : 5d51f94c1627b19bdc438fe05e5475bd3525070d
extra : amend_source : 203756cbbab7f0f7dbda20ec003292081d96bb51
2015-08-31 11:23:39 -07:00
Marco Bonardo
a530c7b60d Bug 1194568 - Renaming live bookmark while adding it renames the wrong one. r=ttaubert
--HG--
extra : commitid : Fom0hKHZmzq
2015-09-02 16:41:10 +02:00
Carsten "Tomcat" Book
f8b7867258 Merge mozilla-central to fx-team 2015-09-03 14:02:51 +02:00
Carsten "Tomcat" Book
92cc8ece64 merge mozilla-inbound to mozilla-central a=merge 2015-09-03 13:14:37 +02:00
Jan Keromnes
628f7745b8 Bug 1196785 - Make the common category style work in HTML. r=jaws 2015-09-01 01:17:00 +02:00
Francois Marier
22751415d5 Bug 1198586 - Add Disconnect's GPL notice to about:license. r=gerv 2015-09-02 15:38:50 -07:00
Sebastian Kaspari
1fd7001f01 Bug 1199596 - Only install "Parental Controls Theme" for restricted profiles and not guest profiles. r=ally
From browser.js's point of view there's no difference between restricted and guest profiles. Both use the
parental controls API. So there are only two "simple" solutions here:

* 1) Add a method to nsIParentalControlsService to determine whether the current profiles is a restricted or
  a guest profile (Something like isGuest()). But then every platform using this interface would require
  to at least implement a stub for this method.

* 2) Add a new restriction that controls installing the theme.

This patch implements option 2. While this restriction is not of much use besides deciding whether we need
to install a specialized theme (DISALLOW_DEFAULT_THEME), it still offers the most flexibility. In a
follow-up bug we could decide to make the restriction configurable by the device admin (requires localized
strings).

--HG--
extra : commitid : 1HcJmNLuz7b
extra : rebase_source : d43407713b7d41a546213e75b7d5e4f03a8b3d78
2015-08-31 18:09:42 +02:00
Tom Tromey
07c613954a Bug 1196431 - generalize detectIndentation and move to new file. r=pbro 2015-09-01 14:24:00 +02:00
Gabriel Luong
222664fc45 Bug 1194827 - [promise-dbg] Implement panel startup and destroy r=fitzgen 2015-09-01 21:55:15 -07:00
Tom Tromey
559fcbd643 Bug 1195349 - Make css-color preserve original text; add classifyColor. r=pbrosset 2015-09-01 07:26:00 -04:00
Nick Fitzgerald
9d8b5d43fc Bug 1201215 - Implement more robust error handling for DevToolsWorker; r=jsantell 2015-09-02 15:16:29 -07:00
Nick Fitzgerald
38abca5fc5 Bug 1201215 - Whitespace fixes for toolkit/devtools/shared/worker{-helper}.js; r=me 2015-09-02 15:16:29 -07:00