Граф коммитов

633662 Коммитов

Автор SHA1 Сообщение Дата
Dave Townsend 1e3b008bd7 Bug 1455707: Detect when running an older version than previously ran with the selected profile. r=froydnj, r=mconley, r=Gijs
Use the information in compatibility.ini to detect that the current running
application is an older version than previously ran with the profile and in
that case open a UI allowing the user to launch the profile manager, launch
the previous instance of the application or quit.

Also includes the patch from bug 1523725.

--HG--
rename : browser/themes/shared/information.svg => toolkit/themes/shared/profile/information.svg
extra : rebase_source : 3bf8b329eb5ea9e71fe2f0ed34a7e44dfdc434fd
extra : intermediate-source : 21a801ca5f6d435509f93e1dee187cb6ca868c8f
extra : source : c9d89812bc226ca593119bf440cb4f5e50ac2ace
2019-01-30 14:56:30 -08:00
Dave Townsend 5d41d30a08 Bug 1518632: Show the first-run experience for users that get pushed to a new profile. r=Gijs, r=flod, r=stomlinson
On startup of a fresh dedicated profile show a welcome page and a modal dialog
to explain what has happened.

--HG--
extra : rebase_source : 1505cf27f900070debc1f9e1c71ec4bef3bc099d
extra : source : 05200c5388b4f7adc4414268727458515d7b9ed9
2019-01-30 11:31:13 -08:00
Dave Townsend 0b0a1e8daa Bug 1522934: Add telemetry data to record what happened during profile selection at startup. r=froydnj, datareview=chutten
Set a telemetry scalar depending on the path taken during profile selection at
startup.

Differential Revision: https://phabricator.services.mozilla.com/D17696

--HG--
extra : rebase_source : bb4056c1c234f3aa61aedc8fddc87193f7aa45a9
extra : source : ebcd8225434ae82b837d632b5ef44bcc9dd5c5b0
2019-01-25 14:05:39 -08:00
Dave Townsend ca5293cbed Bug 1474285: Implement dedicated profiles per install. r=froydnj, r=Gijs
Uses a different profile depending on the install directory of the application.
installs.ini is used to map a hash of the install directory to a profile
directory.

If no profile is marked as default for the current install we use a heuristic
explained in the code to decide whether to use the profile that would have
been used before this feature.

The feature is disabled in snap builds where the install directory changes for
every version of the app, but multiple instances cannot share profiles anyway.
A boolean flag is used to turn on the feature because in a later patch we need
to be able to turn off the behaviour at runtime.

Includes code folded in from bug 1518634, bug 1522751, bug 1518632 and bug 1523024.

--HG--
extra : rebase_source : 0250c70e992fd8369e52ccee3755cf116a894791
extra : intermediate-source : e69cac07b209ad4ef4229815ffd8138ed64c348e
extra : source : e406bf0bcd665bd0e54ddb13d9ae880004badef1
2019-01-25 16:02:28 -08:00
Dave Townsend 9127e8bbdc Bug 1322797: Replace selectedProfile with currentProfile and fix defaultProfile. r=froydnj, r=flod
The current properties selectedProfile and defaultProfile are somewhat confusing
selectedProfile actually returns the default profile for the build and
defaultProfile returns the default profile for non-dev-edition builds. This
confusion leads to callers doing the wrong thing in some places.

What most code actually cares about is being able to set/get the default profile
for this build and getting the current profile in use. So this patch replaces
the previous properties with currentProfile and defaultProfile which do what
makes more sense.

This patch also switches from using the preprocessor to change behaviour for
dev-edition builds to using a boolean flag since some code was incorrectly
ignoring the setting to make dev-edition use the same profile as normal builds.

In order to make currentProfile correct when resetting a profile I had to move
CreateResetProfile into nsToolkitProfileService.

Differential Revision: https://phabricator.services.mozilla.com/D16118

--HG--
extra : rebase_source : cefe252618cd3a1b0e0cd5a71b056dd2b557f1a3
extra : intermediate-source : 35af79575f54f75d22e213fdac7ddd704b40807a
extra : source : 732d1ce192408d4f595f2fce16f45c7354ce3097
2018-12-28 09:44:47 -08:00
Coroiu Cristina d86279fca1 Backed out changeset e90ad6323fd0 (bug 1524068) for devtools failures at devtools/client/styleeditor/test/browser_styleeditor_autocomplete-disabled.js 2019-01-31 05:02:24 +02:00
Gabriel Luong e948541d1b Bug 1524068 - Only setup autocompletion if the autocomplete config is not set. r=bgrins 2019-01-30 20:41:43 -05:00
Coroiu Cristina 98ec0ea927 Backed out 7 changesets (bug 1518632, bug 1463198, bug 1455707, bug 1522934, bug 1322797, bug 1474285) for build bustages at /builds/worker/workspace/build/src/toolkit/xre/nsAppRunner.cpp on a CLOSED TREE
Backed out changeset 82355ab7e063 (bug 1455707)
Backed out changeset b965981c9ce0 (bug 1463198)
Backed out changeset 21a801ca5f6d (bug 1455707)
Backed out changeset 05200c5388b4 (bug 1518632)
Backed out changeset ebcd8225434a (bug 1522934)
Backed out changeset e69cac07b209 (bug 1474285)
Backed out changeset 35af79575f54 (bug 1322797)
2019-01-31 03:34:49 +02:00
Dave Townsend 3a81e14a64 Bug 1455707: Fix rebase breakage. r=bustage CLOSED TREE
--HG--
extra : amend_source : 8eb2287e57d04960e8c368d444b09e1f182b8b86
2019-01-30 17:17:24 -08:00
Dave Townsend e91f114689 Bug 1463198: Submit telemetry whenever the downgrade UI is shown. r=froydnj, datareview=chutten
Send a downgrade ping to telemetry when the downgrade UI is displayed.

--HG--
extra : rebase_source : 799ef400bc20aaab520641d21d744fe83aa5da27
extra : intermediate-source : 6bb1233693b8b2790263dbd511d92857a9d31e0b
extra : source : 348f67b15246aa63b83457fde1a17540fa21379e
2018-05-18 13:03:24 -07:00
Dave Townsend 25ec38eec8 Bug 1455707: Detect when running an older version than previously ran with the selected profile. r=froydnj, r=mconley, r=Gijs
Use the information in compatibility.ini to detect that the current running
application is an older version than previously ran with the profile and in
that case open a UI allowing the user to launch the profile manager, launch
the previous instance of the application or quit.

Also includes the patch from bug 1523725.

--HG--
rename : browser/themes/shared/information.svg => toolkit/themes/shared/profile/information.svg
extra : rebase_source : f81be6c98b8248ca9a09c1e3d70cff2f925ad77f
extra : intermediate-source : 198a6d5b96d4127b6d21485a3b1b0ab2d3bc2f72
extra : source : c9d89812bc226ca593119bf440cb4f5e50ac2ace
2019-01-30 14:56:30 -08:00
Dave Townsend 93581af510 Bug 1518632: Show the first-run experience for users that get pushed to a new profile. r=Gijs, r=flod, r=stomlinson
On startup of a fresh dedicated profile show a welcome page and a modal dialog
to explain what has happened.

--HG--
extra : rebase_source : a033baf831aa8b9fcfa95d1f921364632a837390
2019-01-30 11:31:13 -08:00
Dave Townsend 1fb2dfc2ee Bug 1522934: Add telemetry data to record what happened during profile selection at startup. r=froydnj, datareview=chutten
Set a telemetry scalar depending on the path taken during profile selection at
startup.

Differential Revision: https://phabricator.services.mozilla.com/D17696

--HG--
extra : rebase_source : 6c797b4a8122db69e61d0d954dcfd726d3d1970e
2019-01-25 14:05:39 -08:00
Dave Townsend 007be95c70 Bug 1474285: Implement dedicated profiles per install. r=froydnj, r=Gijs
Uses a different profile depending on the install directory of the application.
installs.ini is used to map a hash of the install directory to a profile
directory.

If no profile is marked as default for the current install we use a heuristic
explained in the code to decide whether to use the profile that would have
been used before this feature.

The feature is disabled in snap builds where the install directory changes for
every version of the app, but multiple instances cannot share profiles anyway.
A boolean flag is used to turn on the feature because in a later patch we need
to be able to turn off the behaviour at runtime.

Includes code folded in from bug 1518634, bug 1522751, bug 1518632 and bug 1523024.

--HG--
extra : rebase_source : b4608f6e8800af4f154daf0e0262f521c8ebd9fd
extra : intermediate-source : ba34b021c8e995ec7fc7c7fbb3dcc5dcf268278c
extra : source : e406bf0bcd665bd0e54ddb13d9ae880004badef1
2019-01-25 16:02:28 -08:00
Dave Townsend dd2eee0019 Bug 1322797: Replace selectedProfile with currentProfile and fix defaultProfile. r=froydnj, r=flod
The current properties selectedProfile and defaultProfile are somewhat confusing
selectedProfile actually returns the default profile for the build and
defaultProfile returns the default profile for non-dev-edition builds. This
confusion leads to callers doing the wrong thing in some places.

What most code actually cares about is being able to set/get the default profile
for this build and getting the current profile in use. So this patch replaces
the previous properties with currentProfile and defaultProfile which do what
makes more sense.

This patch also switches from using the preprocessor to change behaviour for
dev-edition builds to using a boolean flag since some code was incorrectly
ignoring the setting to make dev-edition use the same profile as normal builds.

In order to make currentProfile correct when resetting a profile I had to move
CreateResetProfile into nsToolkitProfileService.

Differential Revision: https://phabricator.services.mozilla.com/D16118

--HG--
extra : rebase_source : 24feb46363b5e43f35b51614d9dc6ae20ae49b65
extra : amend_source : 3c2051b98f19dc3288c59b0028db7d33c6953be3
extra : intermediate-source : 8404cc6140177a40c7086ddd4bf5d84735681048
extra : source : 732d1ce192408d4f595f2fce16f45c7354ce3097
2018-12-28 09:44:47 -08:00
Nathan Froyd c14951813a Bug 1523948 - avoid bounds checks in nsTArray binary search methods; r=erahm
We already take steps in `IndexOf` to avoid bounds checks--by using
direct pointer accesses--and we should do the same thing for binary
searches as well.
2019-01-30 17:26:27 -05:00
Nathan Froyd 628d7fba21 Bug 1523949 - part 2 - switch BlockingResourceBase to MOZ_THREAD_LOCAL; r=erahm,emilio
This change results in somewhat nicer code and should be slightly more
performant.
2019-01-30 17:26:27 -05:00
Nathan Froyd 0d56a7008a Bug 1523949 - part 1 - make MOZ_THREAD_LOCAL name lookups work anywhere; r=erahm
MOZ_THREAD_LOCAL currently assumes its invocations live in the global
namespace, which may not always be true, e.g. when declaring a static
class member whose enclosing class lives in `namespace mozilla` or
similar.  We should qualify the name lookups required to always start
from the global namespace to avoid such problems.
2019-01-30 17:26:27 -05:00
Daniel Varga 65862fa8e5 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-01-31 00:04:48 +02:00
Daniel Varga 007e1e4a2f Merge mozilla-inbound to mozilla-central. a=merge 2019-01-30 23:54:54 +02:00
Daniel Holbert cefac136b8 Bug 1504594: Increase fuzzy tolerance for reftest mouse-click-twice-float-details.html (no review, just minor adjustment to test annotation) 2019-01-30 12:53:51 -08:00
Lee Salzman bf39f6a3ba Bug 1520176 - use HasAnimationOfTransform() to detect if WR stacking context is animated. r=mattwoodrow 2019-01-30 15:49:13 -05:00
Gabriel Luong a0b3145d6d Bug 1524034 - Lazy load CSSCompleter in the source editor. r=bgrins 2019-01-30 15:14:29 -05:00
Kartikaya Gupta ee2016670c Bug 1519636 - Follow-up to properly turn off clang formatting for debug logging code. r=me 2019-01-30 15:11:20 -05:00
Eric Faust 32c3097562 Bug 1520274 - Allow serving BinAST scripts with nosniff. (r=baku, r=dveditz)
--HG--
extra : rebase_source : 0e0599b4501d7c2ba37dc127b8deaf94b5ab52c5
2019-01-30 10:50:47 -08:00
Brian Hackett 3057b313f6 Bug 1520993 - Fix ESLint failures. 2019-01-30 07:47:41 -10:00
Myk Melez 25349d2601 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Tom Prince dee8c2fbb2 Bug 1517177: Fix hash verification of downloaded toolchains; r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D15961

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:26 +00:00
Kartikaya Gupta eaf27c9c98 Bug 1515310 - Eliminate antialiasing fuzz from reftests. r=emilio
The text in the <th> element was causing intermittent fuzz due to
antialiasing. This patch removes the text to eliminate the problem.

Differential Revision: https://phabricator.services.mozilla.com/D18092

--HG--
extra : moz-landing-system : lando
2019-01-30 17:18:02 +00:00
Bobby Holley 06c9ebf4d3 Bug 1512287 - Support incremental invalidation tests in wrench. r=gw
Note that the dirty rect assertions don't seem to quite work yet, but
Glenn is going to take over that last piece.

Depends on D17995

Differential Revision: https://phabricator.services.mozilla.com/D17996

--HG--
extra : moz-landing-system : lando
2019-01-30 17:18:09 +00:00
Bobby Holley eb9412b5fb Bug 1512287 - Don't recalculate root_clip_rect if in the root pipeline. r=gw
The current code panics with an out-of-bounds access here if picture
caching is used outside an iframe.

Depends on D17994

Differential Revision: https://phabricator.services.mozilla.com/D17995

--HG--
extra : moz-landing-system : lando
2019-01-30 08:59:04 +00:00
Bobby Holley 44128c7c85 Bug 1512287 - Enable picture caching after 1 frame of identical content, rather than two, and expose constant. r=gw
Per discussion with gw, the current behavior is an oversight. We also
want to expose this to wrench.

Depends on D17993

Differential Revision: https://phabricator.services.mozilla.com/D17994

--HG--
extra : moz-landing-system : lando
2019-01-30 08:58:40 +00:00
Bobby Holley f12e716db2 Bug 1512287 - Use smaller tiles during testing. r=gw
Depends on D17992

Differential Revision: https://phabricator.services.mozilla.com/D17993

--HG--
extra : moz-landing-system : lando
2019-01-30 08:57:52 +00:00
Bobby Holley d9c60f139c Bug 1512287 - Expose dirty regions to wrench. r=gw
Depends on D17991

Differential Revision: https://phabricator.services.mozilla.com/D17992

--HG--
extra : moz-landing-system : lando
2019-01-30 08:57:37 +00:00
Bobby Holley c7b68459e9 Bug 1512287 - Add a testing mode to WebRender. r=gw
There are various testing-only things we want to do here, specifically
copying around dirty regions, and shrinking the tile size. We could make
each of these specific options and thread them all through to the right
places, but that adds complexity without a use-case. So we just add a
simple testing mode for wrench.

Differential Revision: https://phabricator.services.mozilla.com/D17991

--HG--
extra : moz-landing-system : lando
2019-01-30 08:55:25 +00:00
Justin Wood 6a3fb62388 Bug 1523444 - Don't try to push to release candidate directories. r=tomprince
This will need available scopes for oak to be changed.

Differential Revision: https://phabricator.services.mozilla.com/D17899

--HG--
extra : moz-landing-system : lando
2019-01-29 05:54:54 +00:00
Gurzau Raul 7dbbfd497b Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-30 19:06:00 +02:00
Gurzau Raul 7555c5cdea Merge inbound to mozilla-central. a=merge 2019-01-30 19:03:12 +02:00
Bogdan Tara 19bcfc41e1 Backed out 8 changesets (bug 1465635) for failures on browser_canvas-actor-test-10.js, browser_target_server_compartment.js CLOSED TREE
Backed out changeset e8e363f98525 (bug 1465635)
Backed out changeset 9ec017a91e78 (bug 1465635)
Backed out changeset 11413ebfbcaf (bug 1465635)
Backed out changeset 52728b761d5d (bug 1465635)
Backed out changeset 734646bf9829 (bug 1465635)
Backed out changeset d9ae7cd34c1a (bug 1465635)
Backed out changeset 00d325ab677a (bug 1465635)
Backed out changeset a9b181f32189 (bug 1465635)
2019-01-30 18:54:05 +02:00
Drew Willcoxon d047a4eaa5 Bug 1523773 - When the heuristic result is a URL, make its secondary text "Visit" and make it an action. r=dao
This is based on https://phabricator.services.mozilla.com/D17966

Differential Revision: https://phabricator.services.mozilla.com/D17985

--HG--
extra : moz-landing-system : lando
2019-01-30 10:10:34 +00:00
Andreas Farre aff8c1286e Bug 1521149 - Keep track of all BrowsingContext object in a BrowsingContextGroup r=nika
Differential Revision: https://phabricator.services.mozilla.com/D17003

--HG--
extra : moz-landing-system : lando
2019-01-30 16:07:21 +00:00
Andrei Lazar 94c81d7d12 Bug 1523572 Increment Leanplum's version r=sdaswani
Incremented Leanplum's version to 3.0.2

Differential Revision: https://phabricator.services.mozilla.com/D17930

--HG--
extra : moz-landing-system : lando
2019-01-29 18:29:09 +00:00
Bogdan Tara 01884da282 Backed out 2 changesets (bug 1523457) for test_domloc* failures CLOSED TREE
Backed out changeset 05a81f3e0729 (bug 1523457)
Backed out changeset 23cef9112d5e (bug 1523457)
2019-01-30 17:45:55 +02:00
Alexandre Poirot 0b98a1f393 Bug 1465635 - Ensure removing BrowsingContextTarget front events when destroying it. r=jdescottes
When destroying the target, Target.destroy (for local tabs) only calls DebuggerClient.close,
which isn't going to call `detach`. But we still do need to unregister
the tabNavigated/frameUpdate listener to prevent unecessary event from firing.

Depends on D17609

Differential Revision: https://phabricator.services.mozilla.com/D17610

--HG--
extra : moz-landing-system : lando
2019-01-30 13:28:29 +00:00
Alexandre Poirot 6483fbf5a1 Bug 1465635 - Prevent netmonitor from destroying all "close" event listeners. r=jdescottes
Depends on D16874

Differential Revision: https://phabricator.services.mozilla.com/D17609

--HG--
extra : moz-landing-system : lando
2019-01-30 13:28:27 +00:00
Alexandre Poirot dc852753a8 Bug 1465635 - Remove Target.activeTab property. r=yulia
Depends on D15831

Differential Revision: https://phabricator.services.mozilla.com/D16874

--HG--
extra : moz-landing-system : lando
2019-01-30 13:28:25 +00:00
Alexandre Poirot ebfbdd02fa Bug 1465635 - Merge all target fronts with Target class. r=yulia,jdescottes
This patch makes it so that all target fronts inherits from a Target class mixin.
We are using a mixin as fronts should inherit from a custom Front class,
which is augmented with its own RDP request and events defined in its spec.
(This is done via FrontClassWithSpec(spec))

Depends on D15830

Differential Revision: https://phabricator.services.mozilla.com/D15831

--HG--
extra : moz-landing-system : lando
2019-01-30 13:28:23 +00:00
Alexandre Poirot a9ef0997b4 Bug 1465635 - Use Target.title to fetch target's title instead of using its form. r=yulia
Depends on D15828

Differential Revision: https://phabricator.services.mozilla.com/D15830

--HG--
extra : moz-landing-system : lando
2019-01-30 13:28:15 +00:00
Alexandre Poirot b36f6878dd Bug 1465635 - Always consider that Target.activeTab is set. r=yulia
Depends on D15826

Differential Revision: https://phabricator.services.mozilla.com/D15828

--HG--
extra : moz-landing-system : lando
2019-01-30 13:28:13 +00:00
Alexandre Poirot 9ad26a5f93 Bug 1465635 - Convert canvas front instantiation to Target.getFront. r=yulia
Depends on D15825

Differential Revision: https://phabricator.services.mozilla.com/D15826

--HG--
extra : moz-landing-system : lando
2019-01-30 13:28:11 +00:00