Commit Graph

540 Commits

Author SHA1 Message Date
Narcis Beleuzu
5869db3e22 Bug 1583315 - Disable test_headless_screenshot.html on Windows. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D84052
2020-07-19 23:06:44 +00:00
Nick Alexander
cabba6d757 Bug 1651136 - Part 2: Use non-XPCOM bool instead of nsresult in code used in updater. r=bytesized
Differential Revision: https://phabricator.services.mozilla.com/D82641
2020-07-08 23:38:15 +00:00
Kirk Steuber
18a4eefa82 Bug 1621696 - Expose LaunchModernSettingsDialogDefaultApps such that it can be called without libxul r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D73962
2020-07-01 18:42:16 +00:00
Simon Giesecke
a69d79b6db Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Haik Aftandilian
40d9e6729a Bug 1549046 - Re-enable the "Set As Desktop Background" test on macOS r=spohl
Refactor the test to use a python program to check that the background was successfully changed and re-enable the test on macOS.

For running in automation, this test is dependent on Mac test runner instances being configured to allow users to change the desktop background. A code change to allow this has already been landed. See bug for the additional patches.

Differential Revision: https://phabricator.services.mozilla.com/D72456
2020-05-28 14:29:27 +00:00
Martin Stransky
c0fd45f406 Bug 1639197 [Linux/Gtk] Use correct icon name for search provider, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D75940
2020-05-19 20:41:40 +00:00
Martin Stransky
a574f0e89c Bug 1634293 [gnome] Implement icon search for gnome-shell search provider, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D74233
2020-05-14 12:55:46 +00:00
Martin Stransky
f4b2ed4160 Bug 1634292 [gnome] Ship gnome-shell system integration files, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D74631
2020-05-12 06:56:15 +00:00
Sylvestre Ledru
f3c69f480a Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D73347
2020-05-09 14:51:53 +00:00
Emilio Cobos Álvarez
9a8c41776d Bug 1635094 - Cleanup the ReferrerInfo code. r=ckerschb
The cast in InitWithNode is wrong. AsElement() asserts instead of
checking the flag, so we always pass an element (and if we didn't we'd
have type confusion problems). I audited the callers and we're fine.

Anyhow, always require an element, and add two convenience constructors
for C++ code.

Differential Revision: https://phabricator.services.mozilla.com/D73636
2020-05-04 18:50:20 +00:00
Cosmin Sabou
00d059a4c0 Backed out 2 changesets (bug 1635094) for build bustages on nsMacShellService.cpp. CLOSED TREE
Backed out changeset 0a2b0c6ea19a (bug 1635094)
Backed out changeset ead4f26f76ee (bug 1635094)
2020-05-04 20:04:06 +03:00
Emilio Cobos Álvarez
41fba10f7f Bug 1635094 - Cleanup the ReferrerInfo code. r=ckerschb
The cast in InitWithNode is wrong. AsElement() asserts instead of
checking the flag, so we always pass an element (and if we didn't we'd
have type confusion problems). I audited the callers and we're fine.

Anyhow, always require an element, and add two convenience constructors
for C++ code.

Differential Revision: https://phabricator.services.mozilla.com/D73636
2020-05-04 16:26:51 +00:00
Martin Stransky
02d6c61742 Bug 1239694 Implemenet Gnome search provider, r=jhorak,mak
Implement org.gnome.Shell.SearchProvider2 D-Bus interface and enable it when
widget.gnome-search-provider.enabled pref is set, so this feature is disabled
by default.

Differential Revision: https://phabricator.services.mozilla.com/D69181
2020-04-29 18:02:23 +00:00
Bogdan Tara
ba91b48f29 Backed out changeset cee5051ad409 (bug 1239694) for bustages complaining about dbus CLOSED TREE 2020-04-29 14:17:16 +03:00
Martin Stransky
cadb2013e9 Bug 1239694 Implemenet Gnome search provider, r=jhorak,mak
Implement org.gnome.Shell.SearchProvider2 D-Bus interface and enable it when
widget.gnome-search-provider.enabled pref is set, so this feature is disabled
by default.

Differential Revision: https://phabricator.services.mozilla.com/D69181
2020-04-29 10:50:10 +00:00
Haik Aftandilian
a91c1a8076 Bug 1629313 - Part 2 - Avoid setting the desktop background twice for each request on Mac r=smaug
Update the check in the OnStateChange() so that we only attempt to set the background image once.

Differential Revision: https://phabricator.services.mozilla.com/D71427
2020-04-21 21:58:30 +00:00
Haik Aftandilian
ccc8fec0cf Bug 1629313 - Part 1 - Set As Desktop Background fails on macOS r=spohl
Change the nsMacShellService::SetDesktopBackground() implementation (specifically code in the OnStateChange handler) to use the Apple setDesktopImageURL API instead of Apple Events to allow the "Set As Desktop Background..." context menu option to work again.

Alternatively, to allow the AppleEvent-base implementation to work again, Firefox could be signed with the com.apple.security.automation.apple-events entitlement but this would also require the user to grant Firefox permission to control Finder. setDesktopImageURL requires Mac OS 10.6 or newer and hence was not an option originally.

The implementation only changes the background of the focused screen in the current workspace (which matches the behavior of Safari).

Differential Revision: https://phabricator.services.mozilla.com/D71426
2020-04-21 19:57:29 +00:00
Brian Grinstead
fc15d98aae Bug 1623992 - Automated rewrite from chrome://global/skin/ to chrome://global/skin/global.css in markup r=marionette-reviewers,perftest-reviewers,mossop,whimboo,sparky
This was generated with

```
cp .gitignore .rgignore
rg -l -g '*.{html,xhtml}' 'href="chrome://global/skin/"' | xargs sed -i "" 's/href\="chrome:\/\/global\/skin\/"/href\="chrome:\/\/global\/skin\/global.css"/g'
```

Differential Revision: https://phabricator.services.mozilla.com/D67687
2020-04-03 22:23:23 +00:00
Sylvestre Ledru
0cec1a9d7c Bug 1622328 - ScreenshotChild.jsm: Add the license r=aswan
Depends on D66802

Differential Revision: https://phabricator.services.mozilla.com/D66803
2020-03-13 18:51:04 +00:00
Mark Banner
d375cfec54 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D65703
2020-03-07 10:09:44 +00:00
Sergio Schvezov
d3c7562131 Bug 1616870 - Correctly detect when running as a snap r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D64741
2020-03-04 10:52:43 +00:00
Matthew Noorenberghe
dd27be4a2e Bug 1615134 - Shell service API to open macOS Security & Privacy preferences panes. r=spohl
Example: Cc["@mozilla.org/browser/shell-service;1"].getService(Ci.nsIMacShellService).showSecurityPreferences("Privacy_AllFiles")

Differential Revision: https://phabricator.services.mozilla.com/D62690
2020-02-14 04:06:09 +00:00
Artem
28c7ee1830 Bug 1608167 - port setDesktopBackground DTD to fluent r=Gijs,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D60313
2020-02-07 12:27:21 +00:00
Gijs Kruitbosch
2fe6311179 Bug 1613062 - avoid including utilityOverlay.js twice on macOS, r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D61545
2020-02-04 15:27:18 +00:00
Gijs Kruitbosch
fafe470c51 Bug 1526731 - pass content policy to webbrowserpersist to improve image request headers, r=smaug,johannh
Differential Revision: https://phabricator.services.mozilla.com/D60567
2020-01-23 08:36:00 +00:00
Dave Townsend
ec72562c2d Bug 1602195: Show site specific browsers as separate taskbar entries on windows. r=mhowell
Gives a site specific browser window a custom model ID and adds the same model
ID to its shortcut. This makes the window appear distinct from the rest of
Firefox's windows in the taskbar and allows for pinning the new entry to the
taskbar.

Differential Revision: https://phabricator.services.mozilla.com/D56780
2019-12-29 11:50:19 +00:00
Bogdan Tara
47166f5f0a Backed out 2 changesets (bug 1602195) for toolkit/components/alerts/test/test_alerts.html failures CLOSED TREE
Backed out changeset 399d66c91450 (bug 1602195)
Backed out changeset c007b95a362c (bug 1602195)
2019-12-19 03:50:16 +02:00
Dave Townsend
eb784a9ee1 Bug 1602195: Show site specific browsers as separate taskbar entries on windows. r=mhowell
Gives a site specific browser window a custom model ID and adds the same model
ID to its shortcut. This makes the window appear distinct from the rest of
Firefox's windows in the taskbar and allows for pinning the new entry to the
taskbar.

Differential Revision: https://phabricator.services.mozilla.com/D56780
2019-12-18 22:01:40 +00:00
Gurzau Raul
dae806f865 Backed out 2 changesets (bug 1602195) for assertion failures at ServoUtils.h on a CLOSED TREE.
Backed out changeset 1ed20a4511bf (bug 1602195)
Backed out changeset db0d6cb87c2a (bug 1602195)
2019-12-18 21:13:02 +02:00
Dave Townsend
fd6edd9b19 Bug 1602195: Show site specific browsers as separate taskbar entries on windows. r=mhowell
Gives a site specific browser window a custom model ID and adds the same model
ID to its shortcut. This makes the window appear distinct from the rest of
Firefox's windows in the taskbar and allows for pinning the new entry to the
taskbar.

Differential Revision: https://phabricator.services.mozilla.com/D56780
2019-12-18 16:38:46 +00:00
Dave Townsend
20677cc919 Bug 1602196: Generate an icon for the ssb shortcut on windows. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D56773
2019-12-18 16:38:23 +00:00
Dave Townsend
dcfa99738a Bug 1602191: Create a shortcut on the windows desktop to launch an installed ssb. r=mhowell,Gijs
Adds an XPCOM API for creating a windows shortcut and uses it to create one
when installing a SSB.

Differential Revision: https://phabricator.services.mozilla.com/D56292
2019-12-17 03:44:31 +00:00
Narcis Beleuzu
9f61abce8d Backed out 3 changesets (bug 1602191, bug 1602194, bug 1602196) for Windows MinGW bustages on WindowsUIUtils.cpp. CLOSED TREE
Backed out changeset 73c93dc0c790 (bug 1602196)
Backed out changeset ab3c0af1ec40 (bug 1602194)
Backed out changeset f1b308c595c8 (bug 1602191)
2019-12-17 05:41:41 +02:00
Dave Townsend
f3e09a9696 Bug 1602196: Generate an icon for the ssb shortcut on windows. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D56773
2019-12-16 21:40:38 +00:00
Dave Townsend
009ee3a30f Bug 1602191: Create a shortcut on the windows desktop to launch an installed ssb. r=mhowell,Gijs
Adds an XPCOM API for creating a windows shortcut and uses it to create one
when installing a SSB.

Differential Revision: https://phabricator.services.mozilla.com/D56292
2019-12-16 20:11:04 +00:00
Emma Malysz
ce4da4686b Bug 1601094, rename the remaining .xul files in browser/ to .xhtml r=marionette-reviewers,whimboo,mossop
Differential Revision: https://phabricator.services.mozilla.com/D55751
2019-12-11 00:27:19 +00:00
Kirk Steuber
fae45264bb Bug 1585482 - Restructure all <xul:dialog> usages such that they are not the top level element r=bgrins
This patch also includes necessary JS changes to support this. Most commonly, the dialog was accessed with document.documentElement, which needed to be changed now that the dialog is not the top level element.

Differential Revision: https://phabricator.services.mozilla.com/D52411
2019-12-10 18:25:59 +00:00
Gabriele Svelto
eeb9bfc398 Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

Differential Revision: https://phabricator.services.mozilla.com/D55443
2019-12-06 09:16:44 +00:00
Brian Grinstead
f7066e1806 Bug 1600281 - Rewrite horizontal boxes that were incorrectly translated from align=right to align=end to use pack=end r=Gijs
- align="left" maps to pack="start" for horizontal boxes and align="start" for vertical boxes.
- align="right" maps to pack="end" for horizontal boxes and align="end" for vertical boxes.

Differential Revision: https://phabricator.services.mozilla.com/D55528
2019-12-02 21:08:45 +00:00
Brian Grinstead
628c0a5dcc Bug 1596591 - Rename inc.xul files to inc.xhtml r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D53843
2019-11-21 09:46:01 +00:00
Brian Grinstead
92c7336a05 Bug 1592369 - Rewrite [align="left"] to [align="start"] and [align="right"] to [align="end"] in XUL elements r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D51164
2019-11-19 20:30:34 +00:00
Mark Banner
ba7ecdeeaf Bug 324361 - Remove openApplication/openApplicationWithURI from the shell service as they aren't used. r=mossop
Keeps a function for opening the Mac desktop preferences.

Differential Revision: https://phabricator.services.mozilla.com/D43269
2019-08-27 08:03:12 +00:00
Mike Hommey
96b2f630c4 Bug 1575420 - Replace MOZ_WIDGET_TOOLKIT value of "gtk3" with "gtk". r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D42765
2019-08-21 12:25:42 +00:00
Cosmin Sabou
8ff81869f6 Bug 1429950 - Disable test_headless_screenshot.html on linux !e10s. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D41474
2019-08-12 16:25:11 +00:00
Andrew Swan
1121e13482 Bug 1569135 Fix --screenshot r=kmag
This patch ressurects HiddenFrame.jsm and uses it when handling
the --screenshot command line argument to load the requested page
in a content process.  The actual logic for grabbing the image is
also ported to a JSWindowActor.  The test for this feature remains
suboptimal as described in the bug.

Differential Revision: https://phabricator.services.mozilla.com/D40148
2019-08-07 21:33:49 +00:00
Brindusan Cristian
7109fcc39d Backed out changeset b4678e759a18 (bug 1569135) for mochitest failures at test_headless_screenshot.html. CLOSED TREE 2019-08-07 20:38:53 +03:00
Andrew Swan
0022ebe93c Bug 1569135 Fix --screenshot r=kmag
This patch ressurects HiddenFrame.jsm and uses it when handling
the --screenshot command line argument to load the requested page
in a content process.  The actual logic for grabbing the image is
also ported to a JSWindowActor.  The test for this feature remains
suboptimal as described in the bug.

Differential Revision: https://phabricator.services.mozilla.com/D40148
2019-08-07 16:07:08 +00:00
Edwin Gao
f78650f34c Bug 1555454 - disable permafailing tests on macosx1014, migrate mochitest-browser-chrome to macosx1014 r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D38783
2019-07-23 18:30:26 +00:00
Bogdan Tara
7bb7cb8fa1 Backed out changeset ad5e0980c273 (bug 1555454) for central permafails on browser_devices_get_user_media.js a=backout 2019-07-22 07:45:40 +03:00
Edwin Gao
e92fed79bc Bug 1555454 - disable permafailing tests on macosx1014, migrate mochitest-browser-chrome to macosx1014 r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D38783
2019-07-21 09:27:47 +00:00