Commit Graph

206 Commits

Author SHA1 Message Date
Neil Deakin
a45643cbe4 Bug 1730217, hide keyboard shortcut warning checkbox if the browser.quitShortcut.disabled preference if enabled, r=mhowell,preferences-reviewers,jaws
Differential Revision: https://phabricator.services.mozilla.com/D125246
2021-09-14 19:04:34 +00:00
Neil Deakin
528679c058 Bug 1726736, add checkbox to the main preferences page for the confirm on pressing the quit keyboard shortcut setting, r=Gijs,fluent-reviewers,preferences-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D124223
2021-09-08 12:32:58 +00:00
Neil Deakin
a119e0db4e Bug 1724976, whether to show quit warning should not be dependent on session restore state, and remove the redundant browser.sessionstore.warnOnQuit preference, r=Gijs,fluent-reviewers,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D124221
2021-09-08 12:32:57 +00:00
Gijs Kruitbosch
f189bc5190 Bug 1723723 - stop using getURLSpecFromFile from JS code to avoid mainthread IO, r=florian
Differential Revision: https://phabricator.services.mozilla.com/D121620
2021-08-03 18:32:50 +00:00
Zibi Braniecki
09b292bd73 Bug 1613705 - [localization] part16: Fix preferences language menu selection test. r=platform-i18n-reviewers,dminor
Depends on D116755

Differential Revision: https://phabricator.services.mozilla.com/D116791
2021-08-03 16:25:16 +00:00
Butkovits Atila
704b42a2a2 Backed out 19 changesets (bug 1613705) for causing build bustages complaining about Document.cpp. CLOSED TREE
Backed out changeset 2ee1091dd20d (bug 1613705)
Backed out changeset d377afc0b09f (bug 1613705)
Backed out changeset de9d4378f0ac (bug 1613705)
Backed out changeset 9843372abb6e (bug 1613705)
Backed out changeset 5fc5918e5905 (bug 1613705)
Backed out changeset a7aeae7afd49 (bug 1613705)
Backed out changeset 5d61617a5402 (bug 1613705)
Backed out changeset 85bf98573899 (bug 1613705)
Backed out changeset 175af8a1b8c2 (bug 1613705)
Backed out changeset 93fcb23d7898 (bug 1613705)
Backed out changeset 595529cd906f (bug 1613705)
Backed out changeset 9f3e2963d925 (bug 1613705)
Backed out changeset 442289058933 (bug 1613705)
Backed out changeset fc3b9acb0e81 (bug 1613705)
Backed out changeset 408983c64f7f (bug 1613705)
Backed out changeset 08b637fc3fcd (bug 1613705)
Backed out changeset 6ef0aafd2db0 (bug 1613705)
Backed out changeset d88b294e0a5e (bug 1613705)
Backed out changeset e6bebff87544 (bug 1613705)
2021-08-03 12:36:01 +03:00
Zibi Braniecki
6dc7c1f955 Bug 1613705 - [localization] part16: Fix preferences language menu selection test. r=platform-i18n-reviewers,dminor
Depends on D116755

Differential Revision: https://phabricator.services.mozilla.com/D116791
2021-08-03 05:52:06 +00:00
Zibi Braniecki
6424c0adb2 Bug 1660392 - [l10nregistry] part7: Move L10nRegistry callees to use WebIDL one. r=preferences-reviewers,Gijs,platform-i18n-reviewers,gregtatum
Depends on D105416

Differential Revision: https://phabricator.services.mozilla.com/D105584
2021-07-30 16:47:49 +00:00
Molly Howell
39c252e415 Bug 1709978 - Disable app update when running as a packaged app. r=agashlin,preferences-reviewers
This patch disables the update service as if it were disabled by policy
whenever a package identify is present. User interfaces are treated as if
the updater had not been included in the build, because that prevents any of
our usual update UI from being shown, and in particular ensures that we do not
generate messages about an administrator handling updates, as would normally
happen when disabling updates via policy.

The telemetry environment's update.enabled flag is deliberately left alone in
this patch, because the mere fact of using an app package does not really say
anything about whether the user intends to allow automatic updating or not.

Depends on D114427

Differential Revision: https://phabricator.services.mozilla.com/D114886
2021-07-15 20:58:21 +00:00
Csoregi Natalia
3c1b358566 Backed out changeset cec939837018 (bug 1709978) for causing failures on app update. CLOSED TREE 2021-07-14 22:21:53 +03:00
Molly Howell
9b2e4a1c87 Bug 1709978 - Disable app update when running as a packaged app. r=agashlin,preferences-reviewers
This patch disables the update service as if it were disabled by policy
whenever a package identify is present. User interfaces are treated as if
the updater had not been included in the build, because that prevents any of
our usual update UI from being shown, and in particular ensures that we do not
generate messages about an administrator handling updates, as would normally
happen when disabling updates via policy.

The telemetry environment's update.enabled flag is deliberately left alone in
this patch, because the mere fact of using an app package does not really say
anything about whether the user intends to allow automatic updating or not.

Differential Revision: https://phabricator.services.mozilla.com/D114886
2021-07-14 18:23:41 +00:00
Andre Natal
612e9f013e Bug 1715913 - Update Firefox Translations to 0.4.3 r=preferences-reviewers,jaws,fluent-reviewers,flod,mixedpuppy
Updating Firefox Translations to 0.4.3 https://bugzilla.mozilla.org/show_bug.cgi?id=1715913
Adding a new option to the preferences menu to handle translations exceptions https://bugzilla.mozilla.org/show_bug.cgi?id=1714031
Fixes diffoscope issues https://bugzilla.mozilla.org/show_bug.cgi?id=1713561

Differential Revision: https://phabricator.services.mozilla.com/D117512
2021-07-13 21:00:08 +00:00
Kirk Steuber
932e0a6f30 Bug 1703302 - Remove app.background.experimental to show background update UI unconditionally r=nalexander,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D111199
2021-04-14 17:50:07 +00:00
alwu
2143d1c4ea Bug 1700829 - remove probe expiring in Fx90 : MEDIA_CONTROL_SETTING_CHANGE. r=preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D111657
2021-04-14 16:56:57 +00:00
Kirk Steuber
7425278256 Bug 1674277 - Make AUS.stopDownload asynchronous r=nalexander,preferences-reviewers
The Downloader's cleanup function really ought to be asynchronous. The observer for "quit-application" is already asynchronous, so there's no problem there. But really, we ought to be cleaning up each downloader that we use, not just the last one. Which means that the cleanup ought to happen in AUS.stopDownload. So this patch will convert AUS.stopDownload to be asynchronous so that we can properly clean up the downloader from there.

Differential Revision: https://phabricator.services.mozilla.com/D110646
2021-04-05 19:52:12 +00:00
Bernard Igiri
186b5a93bd Bug 1692303 - Flip default value to browser.ctrlTab.recentlyUsedOrder to false r=mstriemer,mconley,preferences-reviewers
Changed default Ctrl+Tab preference to false and added UI migration to reset it for users who haven't not used the feature before.

Differential Revision: https://phabricator.services.mozilla.com/D109653
2021-03-26 21:56:41 +00:00
Gijs Kruitbosch
1187de795d Bug 1694511 - update references inside the prefs/about:addons to Preferences/Options to use 'Settings' instead, r=preferences-reviewers,fluent-reviewers,jaws,robwu
Differential Revision: https://phabricator.services.mozilla.com/D106199
2021-03-25 19:11:47 +00:00
Csoregi Natalia
a46838a0ab Backed out changeset 816285ac4de4 (bug 1694511) for failures on browser_experimental_features.js. CLOSED TREE 2021-03-24 15:15:27 +02:00
Gijs Kruitbosch
ccc4df07c0 Bug 1694511 - update references inside the prefs/about:addons to Preferences/Options to use 'Settings' instead, r=preferences-reviewers,fluent-reviewers,jaws,robwu
Differential Revision: https://phabricator.services.mozilla.com/D106199
2021-03-24 11:27:27 +00:00
Kirk Steuber
64050ee4b5 Bug 1483399 - Add a UI to about:preferences to control app.update.background.enabled r=nalexander,preferences-reviewers,Gijs
The UI is currently hidden unless app.update.background.experimental is set to true. The preferences page must be reloaded after setting this pref.

Differential Revision: https://phabricator.services.mozilla.com/D108705
2021-03-22 20:40:27 +00:00
Bernard Igiri
6a4e30b806 Bug 1685961 - Hide Content Process Limit UI r=Gijs
Hides the "Content Process Limit" UI when Fission is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D105055
2021-03-01 18:23:31 +00:00
smolnar
b61457bbd9 Backed out changeset ca970620edf2 (bug 1685961) for causing mochitest failures in browser_performance. CLOSED TREE 2021-02-25 01:40:51 +02:00
Bernard Igiri
582c6c4fa6 Bug 1685961 - Hide Content Process Limit UI r=Gijs
Hides the "Content Process Limit" UI when Fission is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D105055
2021-02-24 20:42:31 +00:00
Tim Nguyen
bc25fa0cb4 Bug 1523453 - Remove unused workaround for gAppUpdater in preferences. r=preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D103604
2021-02-01 13:47:17 +00:00
Tim Nguyen
a557545e39 Bug 1689742 - Stop using XUL <deck> for #setDefaultPane. r=preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D103522
2021-01-30 16:31:53 +00:00
Kirk Steuber
e11fcb7187 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
845b782213 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
8ea5bd039b 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
7803553ce1 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
1143731a3c 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
aae2d6a936 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
31e22f61d3 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
50cff95440 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
735923df57 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
9684cdfd60 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
34ac1f4f95 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
53c0887b8f 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
431b3e2a3a 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
aa98afcafd 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
bb5c52efa7 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
9bddbcfdd1 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
0720b18caa 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
0dc7ead757 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
ef6b72636b 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
5801b582fd 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
90e66225d6 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
0a0d8bf126 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
4d47681228 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
2079a13365 Backed out changeset 24437647ba33 (bug 1581383) for bc failures at browser_applications_selection.js. 2020-05-03 20:32:26 +03:00
Jared Wein
388caf285a 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