Commit graph

81 commits

Author SHA1 Message Date
Kirk Steuber
c50930cb95 Bug 1685594 - Add capability for turning off automatic application update checks r=agashlin,preferences-reviewers
Note that this does not add the policy necessary to enable this feature. That policy will be added in Bug 1653430

Differential Revision: https://phabricator.services.mozilla.com/D101251
2021-01-21 23:47:19 +00:00
Gijs Kruitbosch
e7ff71ba6c Bug 1581678 - remove dead plugin code from about:preferences r=preferences-reviewers,ntim
Because 'navigator.mimeTypes' is always the empty string in the parent process, the loop at
_loadPluginHandlers never does anything, and there's no point keeping this now Flash is going
the way of the dodo anyway.

Differential Revision: https://phabricator.services.mozilla.com/D100216
2020-12-22 11:05:00 +00:00
alwu
d63d47bb5a Bug 1667454 - part2 : add telemetry probe to record the number of times a user changes media control setting. r=preferences-reviewers,mossop,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D92872
2020-10-15 05:11:40 +00:00
alwu
2a7f087237 Bug 1667454 - part1 : add a toggle button in preference page for media control. r=preferences-reviewers,fluent-reviewers,Gijs
Add a toggle button to allow user enable/disable media control feature, and here is the UX doc [1].

[1] https://docs.google.com/document/d/1Faayu4_PnIxTDScIiOI3tu20_A5av3kryCRy26J2WyQ/edit

Differential Revision: https://phabricator.services.mozilla.com/D91871
2020-10-14 20:04:41 +00:00
Razvan Maries
a1a77c09cd Backed out 4 changesets (bug 1667454, bug 1668139) for perma failures on browser_media_control.js. CLOSED TREE
Backed out changeset 302032fe6d64 (bug 1668139)
Backed out changeset 859ee72e9e57 (bug 1668139)
Backed out changeset fe7de882fcbf (bug 1667454)
Backed out changeset dfd0308f5ab7 (bug 1667454)
2020-10-14 22:59:00 +03:00
alwu
826647dbc4 Bug 1667454 - part2 : add telemetry probe to record the number of times a user changes media control setting. r=preferences-reviewers,mossop,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D92872
2020-10-14 15:27:46 +00:00
alwu
3f80a10068 Bug 1667454 - part1 : add a toggle button in preference page for media control. r=preferences-reviewers,fluent-reviewers,Gijs
Add a toggle button to allow user enable/disable media control feature, and here is the UX doc [1].

[1] https://docs.google.com/document/d/1Faayu4_PnIxTDScIiOI3tu20_A5av3kryCRy26J2WyQ/edit

Differential Revision: https://phabricator.services.mozilla.com/D91871
2020-10-12 13:34:36 +00:00
Kirk Steuber
839b14efac Bug 1668096 - Replace activeUpdate with downloadingUpdate and readyUpdate r=mhowell,preferences-reviewers
This patch does not make the necessary replacement in tests. Those changes will be made in a later patch in this stack.

Some additional, related changes are also made in this patch:
cleanupActiveUpdate is being replaced with cleanupDownloadingUpdate and cleanupReadyUpdate. The two new functions currently do very similar things, but separating them will allow us to have each function clean up the right update, once we fully support more than one update per session.
The old mechanism to add something to the update history was for it to be assigned to activeUpdate, and then to assign null to activeUpdate. We now need to assign active updates to be null without adding them to the history. As an example, we need to set downloadingUpdate to null when the download completes, but it shouldn't be added to the history at that point. To address this, an explicit addUpdateToHistory function has been added, and assigning null to either active update variable no longer moves the update to the update history.

Differential Revision: https://phabricator.services.mozilla.com/D92289
2020-10-06 18:07:31 +00:00
Tooru Fujisawa
5f55a03e39 Bug 1663500 - Revert bug 1661643 change and resurrect browser.link.open_newwindow=1. r=Gijs,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D89447
2020-09-08 12:09:43 +00:00
pbz
2a72e0a43c Bug 1661030 - Refactor SubDialog and TabDialogBox to support passing multiple window arguments. r=Gijs,preferences-reviewers
This also updates the behavior of the allowDuplicates check:
Instead of only checking if the top dialog is a duplicate, it will now check the whole stack and
skip the dialog open if a duplicate URL is found.
This fixes an issue where callers could alternate between dialogs to bypass the check.

Differential Revision: https://phabricator.services.mozilla.com/D88422
2020-09-02 14:24:47 +00:00
Tooru Fujisawa
9cff0fe8c0 Bug 1661643 - Remove browser.link.open_newwindow=1. r=preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D88572
2020-08-28 13:44:46 +00:00
Adam Gashlin
659f21a530 Bug 1639067 part 4 - Generalize internal handlers in the Applications list. r=Gijs,preferences-reviewers,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D86653
2020-08-17 21:24:47 +00:00
Dorel Luca
806d75bb33 Backed out 4 changesets (bug 1639067) for XPCshell failures in tests/unit/test_getMIMEInfo_pdf.js. CLOSED TREE
Backed out changeset 1e400fafd80b (bug 1639067)
Backed out changeset 7bb3c2ec5c7a (bug 1639067)
Backed out changeset 755fd5771648 (bug 1639067)
Backed out changeset 951e10b7354f (bug 1639067)
2020-08-18 00:18:32 +03:00
Adam Gashlin
949f6d3592 Bug 1639067 part 4 - Generalize internal handlers in the Applications list. r=Gijs,preferences-reviewers,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D86653
2020-08-17 20:13:27 +00:00
Jared Wein
7930a92a34 Bug 1582740 - Default the 'Always check' checkbox to disabled until we load the default browser state to prevent accidental user changes. r=Gijs,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D62479
2020-08-07 22:19:06 +00:00
Kris Maglione
9d78661f88 Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81594
2020-07-10 23:58:28 +00:00
Kris Maglione
3bda67deab Bug 1638153: Part 2 - Fix uses of .rootTreeItem to get top browser window. r=geckoview-reviewers,nika,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75429
2020-06-17 17:17:16 +00:00
Henri Sivonen
d5b9be12ce Bug 1603712 - Remove intl.charset.detector.ng.enabled pref and resulting dead code. r=Gijs,fluent-reviewers,valentin,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D79101
2020-06-15 15:32:21 +00:00
Razvan Maries
a36bb7751f Backed out 3 changesets (bug 1638153) for perma failures on cross-origin-objects.html. CLOSED TREE
Backed out changeset f7aedc92d396 (bug 1638153)
Backed out changeset 07ec713926c6 (bug 1638153)
Backed out changeset 5a656842e241 (bug 1638153)
2020-06-01 23:51:35 +03:00
Kris Maglione
b3fcd970ec Bug 1638153: Part 2 - Fix uses of .rootTreeItem to get top browser window. r=geckoview-reviewers,nika,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75429
2020-06-01 17:59:01 +00:00
Gijs Kruitbosch
6c3c9b5bf3 Bug 1633790 - allow PDF.js use when we've misled the user into misconfiguring PDF handlers, r=jaws,mattwoodrow
Prior to this patch, PDF.js tracks both its own 'disabled' pref (which is used
by enterprise policy) and whether it is the default handler per the handler
service - but it tracks both in one bool, which determines whether its
streamconverter registers.

Really, what we want is to never use PDF.js if it's preffed off.

However, if there is some other default, it should be acceptable to use PDF.js
in some circumstances, like for <embed> or <object>s where otherwise we
would show no content at all.

Even for toplevel PDFs, if the user has configured Firefox to open PDFs in
an external helper app which is Firefox (which is currently an easy mistake
to make in the unknownContentType dialog), or has it set to the OS default,
but has changed their OS default to Firefox, we really still want to open
those PDFs with PDF.js.

This patch fixes all of this by splitting out the pref tracking from the
handler state tracking. Only the pref will completely disable PDF.js.

Then, in the streamconverter code, we check whether PDF.js should be used for
PDFs, and if there's a misconfiguration that we can correct. This code is
invoked from the parent process when we load PDFs in frames or toplevel
documents, and will prevent us from invoking PDF.js in the child if the user
would prefer that not to happen.

As a driveby, this cleans up how we track the pref inside PDF.js, and how we
get notified of changes to the handler - we were missing changes made in the
unknown content type dialog, so it seemed worth making it generic.

Differential Revision: https://phabricator.services.mozilla.com/D73510
2020-05-06 20:28:36 +00:00
Ian Moody
011b59d595 Bug 1536556 - Replace raw thrown Cr.ERRORs with Components.Exception. r=mossop,remote-protocol-reviewers,marionette-reviewers,whimboo,necko-reviewers,geckoview-reviewers,valentin,agi
Raw Cr.ERROR don't get stack information, same as throwing JS literals instead
of `new Error()`s.

This was done automatically with a new eslint rule that will be introduced in
the next commit.  One instance of a raw Cr.ERROR was not replaced since it is
used in a test that specifically checks the preservation of raw Cr values in
XPCJS.  The rule will be disabled for that instance.

Differential Revision: https://phabricator.services.mozilla.com/D28073
2020-05-05 17:41:36 +00:00
Jared Wein
d0679695d6 Bug 1581383 - Rename 'Preview in Firefox' to 'Open in Firefox' since 'preview' projects limited capabilities, and also change the name of the OS option when the file type can be handled internally. r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D72775
2020-05-03 21:51:54 +00:00
Brindusan Cristian
63dd8d9103 Backed out changeset 24437647ba33 (bug 1581383) for bc failures at browser_applications_selection.js. 2020-05-03 20:32:26 +03:00
Jared Wein
47d1d70b51 Bug 1581383 - Rename 'Preview in Firefox' to 'Open in Firefox' since 'preview' projects limited capabilities, and also change the name of the OS option when the file type can be handled internally. r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D72775
2020-05-03 16:09:03 +00:00
Tim Nguyen
89c92a15e9 Bug 1201243 - Reformat with prettier.
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D72039
2020-04-22 23:35:25 +00:00
Tim Nguyen
efcd5a4bff Bug 1201243 - Make browser/components/preferences/in-content top-level and move dialogs to a subdirectory. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D72038
2020-04-22 23:35:08 +00:00
Jared Wein
70099b93ec Bug 1140495 - Remove support for windowed preferences. r=ttaubert
--HG--
extra : rebase_source : 2b29244f4813593171b436f551735dfcc13d6474
2015-09-02 12:12:55 -04:00
Tom Schuster
1290e9c6c2 Bug 1150855 - Remove uses of the curly syntax. r=jaws 2015-05-22 21:23:57 +02:00
Kartikaya Gupta
cd5b55f8d6 Bug 1039866 - Rip out a bunch of metro-only code. r=jimm,gavin,rstrong 2015-04-23 15:10:30 -04:00
Paolo Amadini
6c3fe857a5 Bug 1115791 - Developer Edition profile switching feature broken when in-content preferences are disabled. r=jaws 2014-12-30 16:42:27 +00:00
Paolo Amadini
468dfdbf31 Bug 875648 - Use Downloads.jsm functions to get download directories in Firefox for Desktop. r=jaws 2013-11-01 18:24:00 +00:00
Panos Astithas
92d7e302aa Bug 1095420 - UI Tour should cause a migration to aurora when highlighting Sync. r=markh 2014-11-08 10:53:00 +02:00
Panos Astithas
785bd0838e Bug 1086936 part 2 - Add a flag to nsIAppStartup::quit that restarts the browser without using the same profile and use it for the Aurora UI switch. r=bsmedberg 2014-10-27 21:46:56 +02:00
Panos Astithas
19d4f7f91d Bug 1086936 part 1 - Add a UI switch to disable custom profile selection process in Aurora. r=bsmedberg,jaws f=matej,shorlander
--HG--
extra : rebase_source : ca599ad502e6975ae02ce9884cc207bf1ac62168
2014-10-27 20:52:20 +02:00
Gijs Kruitbosch
5e105d364c Bug 1063529 - should catch shell service exceptions, r=mconley
--HG--
extra : rebase_source : f21763b563cdf5ed7936085d6bdfdb706b53778d
2014-09-24 16:18:45 +01:00
Asaf Romano
485af060ec Bug 1040868 - Move 'default browser'stuff back to the General preferences pane. r=jaws. 2014-08-18 15:02:58 +03:00
Jim Blandy
7e20285e70 Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Paolo Amadini
147dff90bb Bug 899110 - Remove the code to switch between different back-ends from the Downloads Panel. r=enn 2013-11-04 19:21:13 +01:00
Paolo Amadini
04f0f28be1 Bug 824345 - Hide old Download Manager preferences when the Downloads Panel is enabled.
r=mak
2012-12-28 00:54:54 +01:00
Josh Matthews
a36af980fd Backed out changeset 0b3cc2b5fc5f (bug 824345) 2012-12-27 20:44:18 -05:00
Paolo Amadini
fb255232ff Bug 824345 - Hide old Download Manager preferences when the Downloads Panel is enabled.
r=mak
2012-12-28 00:54:54 +01:00
Andres Hernandez
b783039a2c Bug 781973 - Use filepicker's open() instead of the obsolete show() in /browser. r=bbondy 2012-09-19 17:21:38 -06:00
Javi Rueda
589054623a Bug 513164 - Remove "Manage Addons" from Preferences UI; r=gavin 2012-08-27 12:45:48 -04:00
Paolo Amadini
c9b3789953 Bug 748160 - Update the Downloads command to open the Downloads view instead of the Downloads Panel. r=mak 2012-08-25 11:37:55 +02:00
Andres Hernandez
41c0955363 Bug 325901 - fix unnecessarily preprocessed files in browser/, r=gavin
--HG--
extra : rebase_source : cc42d98604e38528f3bc9941dce4f15ec8ad5d67
2012-08-10 14:20:25 -06:00
Andrew Hurle
7d0a88f99a Bug 720154 - Move restore_on_demand checkbox to Tabs page, never disable it. r=zpao, ui-r=jboriss 2012-05-26 09:33:52 -04:00
Gervase Markham
82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Paolo Amadini
9180b309a7 Bug 726444 - Implement the Downloads Panel. r=mak ui-r=limi
Includes: Bug 697679 - By Javi Rueda <leofigueres@yahoo.com>.
2012-04-17 13:35:09 +02:00
Ed Morley
f6653e490a Backout ba7da6256b23 (bug 726444) for talos regressions; a=mak 2012-03-11 23:38:53 +00:00