forked from mirrors/gecko-dev
Bug 1873782: Remove firefox-bin on macOS. r=mac-reviewers,bradwerth,glandium
Differential Revision: https://phabricator.services.mozilla.com/D197419
This commit is contained in:
parent
ef6ce7eb57
commit
9d7f71a3ce
12 changed files with 25 additions and 20 deletions
|
|
@ -5,7 +5,6 @@
|
||||||
#filter substitution
|
#filter substitution
|
||||||
/*.app/***
|
/*.app/***
|
||||||
/certutil
|
/certutil
|
||||||
/@MOZ_APP_NAME@-bin
|
|
||||||
#if defined(MOZ_GECKODRIVER)
|
#if defined(MOZ_GECKODRIVER)
|
||||||
/geckodriver
|
/geckodriver
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -36,9 +36,11 @@ browser/chrome.manifest
|
||||||
crashreporter.app/Contents/Resources/English.lproj/MainMenu.nib/classes.nib
|
crashreporter.app/Contents/Resources/English.lproj/MainMenu.nib/classes.nib
|
||||||
crashreporter.app/Contents/Resources/English.lproj/MainMenuRTL.nib/classes.nib
|
crashreporter.app/Contents/Resources/English.lproj/MainMenuRTL.nib/classes.nib
|
||||||
|
|
||||||
|
#ifndef XP_MACOSX
|
||||||
# firefox/firefox-bin is bug 658850
|
# firefox/firefox-bin is bug 658850
|
||||||
@MOZ_APP_NAME@
|
@MOZ_APP_NAME@
|
||||||
@MOZ_APP_NAME@-bin
|
@MOZ_APP_NAME@-bin
|
||||||
|
#endif
|
||||||
|
|
||||||
# Row and column icons are duplicated
|
# Row and column icons are duplicated
|
||||||
res/table-remove-column-active.gif
|
res/table-remove-column-active.gif
|
||||||
|
|
|
||||||
|
|
@ -137,7 +137,9 @@
|
||||||
@BINPATH@/browser/VisualElements/PrivateBrowsing_150.png
|
@BINPATH@/browser/VisualElements/PrivateBrowsing_150.png
|
||||||
@BINPATH@/browser/VisualElements/PrivateBrowsing_70.png
|
@BINPATH@/browser/VisualElements/PrivateBrowsing_70.png
|
||||||
#else
|
#else
|
||||||
|
#ifndef XP_MACOSX
|
||||||
@BINPATH@/@MOZ_APP_NAME@-bin
|
@BINPATH@/@MOZ_APP_NAME@-bin
|
||||||
|
#endif
|
||||||
@BINPATH@/@MOZ_APP_NAME@
|
@BINPATH@/@MOZ_APP_NAME@
|
||||||
#endif
|
#endif
|
||||||
@RESPATH@/application.ini
|
@RESPATH@/application.ini
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ You can also start the Browser Console by launching Firefox from the command lin
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
/Applications/FirefoxAurora.app/Contents/MacOS/firefox-bin -jsconsole
|
/Applications/FirefoxAurora.app/Contents/MacOS/firefox -jsconsole
|
||||||
|
|
||||||
The Browser Console looks like this:
|
The Browser Console looks like this:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ followed by the command line you'd like to run, like this:
|
||||||
|
|
||||||
.. code:: bash
|
.. code:: bash
|
||||||
|
|
||||||
$ lldb -- obj-ff-dbg/dist/Nightly.app/Contents/MacOS/firefox-bin -no-remote -profile /path/to/profile
|
$ lldb -- obj-ff-dbg/dist/Nightly.app/Contents/MacOS/firefox -no-remote -profile /path/to/profile
|
||||||
|
|
||||||
Then set breakpoints you need and start the process:
|
Then set breakpoints you need and start the process:
|
||||||
|
|
||||||
|
|
@ -76,5 +76,5 @@ Then set breakpoints you need and start the process:
|
||||||
WARNING: Unable to resolve breakpoint to any actual locations.
|
WARNING: Unable to resolve breakpoint to any actual locations.
|
||||||
|
|
||||||
(lldb) r
|
(lldb) r
|
||||||
Process 7602 launched: '/.../obj-ff-opt/dist/Nightly.app/Contents/MacOS/firefox-bin' (x86_64)
|
Process 7602 launched: '/.../obj-ff-opt/dist/Nightly.app/Contents/MacOS/firefox' (x86_64)
|
||||||
1 location added to breakpoint 1
|
1 location added to breakpoint 1
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ macOS
|
||||||
~~~~~
|
~~~~~
|
||||||
|
|
||||||
Run /Applications/Utilities/Console.app. Expand "~/Library/Logs" and
|
Run /Applications/Utilities/Console.app. Expand "~/Library/Logs" and
|
||||||
"CrashReporter", then look for logs for "firefox-bin".
|
"CrashReporter", then look for logs for "firefox".
|
||||||
|
|
||||||
|
|
||||||
Linux
|
Linux
|
||||||
|
|
|
||||||
|
|
@ -35,11 +35,11 @@ already).
|
||||||
#. Type "export NSPR_LOG_MODULES=cookie:4" and press Enter.
|
#. Type "export NSPR_LOG_MODULES=cookie:4" and press Enter.
|
||||||
#. Run Firefox by typing "./firefox" and pressing Enter
|
#. Run Firefox by typing "./firefox" and pressing Enter
|
||||||
|
|
||||||
Mac OS X
|
macOS
|
||||||
^^^^^^^^
|
^^^^^
|
||||||
|
|
||||||
Open Terminal.app, which is located in the /Applications/Utilities
|
Open Terminal.app, which is located in the /Applications/Utilities
|
||||||
folder (these instructions are for bash, the default shell in Mac OS X
|
folder (these instructions are for bash, the default shell in macOS
|
||||||
10.3 and higher; if you use something else, you probably know how to
|
10.3 and higher; if you use something else, you probably know how to
|
||||||
modify these instructions already).
|
modify these instructions already).
|
||||||
|
|
||||||
|
|
@ -48,7 +48,7 @@ modify these instructions already).
|
||||||
#. Type "export NSPR_LOG_FILE=~/Desktop/cookie-log.txt" and press
|
#. Type "export NSPR_LOG_FILE=~/Desktop/cookie-log.txt" and press
|
||||||
Return.
|
Return.
|
||||||
#. Type "export NSPR_LOG_MODULES=cookie:4" and press Return.
|
#. Type "export NSPR_LOG_MODULES=cookie:4" and press Return.
|
||||||
#. Run Firefox by typing "./firefox-bin" and pressing Return (note that
|
#. Run Firefox by typing "./firefox" and pressing Return (note that
|
||||||
Firefox will launch behind windows for other applications).
|
Firefox will launch behind windows for other applications).
|
||||||
|
|
||||||
Creating the Log
|
Creating the Log
|
||||||
|
|
|
||||||
|
|
@ -144,14 +144,14 @@ running on Linux.
|
||||||
#. When the problem has been reproduced, exit Firefox and look for the
|
#. When the problem has been reproduced, exit Firefox and look for the
|
||||||
generated log files, which you can find at ``/tmp/log.txt``.
|
generated log files, which you can find at ``/tmp/log.txt``.
|
||||||
|
|
||||||
Mac OS X
|
macOS
|
||||||
~~~~~~~~
|
~~~~~
|
||||||
|
|
||||||
These instructions show how to log HTTP traffic in Firefox on Mac OS X.
|
These instructions show how to log HTTP traffic in Firefox on macOS.
|
||||||
|
|
||||||
#. Quit Firefox is if it's currently running, by using the Quit option
|
#. Quit Firefox is if it's currently running, by using the Quit option
|
||||||
in the File menu. Keep in mind that simply closing all windows does
|
in the File menu. Keep in mind that simply closing all windows does
|
||||||
**not** quit Firefox on Mac OS X (this is standard practice for Mac
|
**not** quit Firefox on macOS (this is standard practice for Mac
|
||||||
applications).
|
applications).
|
||||||
|
|
||||||
#. Run the Terminal application, which is located in the Utilities
|
#. Run the Terminal application, which is located in the Utilities
|
||||||
|
|
@ -165,7 +165,7 @@ These instructions show how to log HTTP traffic in Firefox on Mac OS X.
|
||||||
export MOZ_LOG=timestamp,rotate:200,nsHttp:5,cache2:5,nsSocketTransport:5,nsHostResolver:5
|
export MOZ_LOG=timestamp,rotate:200,nsHttp:5,cache2:5,nsSocketTransport:5,nsHostResolver:5
|
||||||
export MOZ_LOG_FILE=~/Desktop/log.txt
|
export MOZ_LOG_FILE=~/Desktop/log.txt
|
||||||
cd /Applications/Firefox.app/Contents/MacOS
|
cd /Applications/Firefox.app/Contents/MacOS
|
||||||
./firefox-bin
|
./firefox
|
||||||
|
|
||||||
(The instructions assume that you've installed Firefox directly into
|
(The instructions assume that you've installed Firefox directly into
|
||||||
your startup disk's Applications folder. If you've put it elsewhere,
|
your startup disk's Applications folder. If you've put it elsewhere,
|
||||||
|
|
|
||||||
|
|
@ -800,7 +800,6 @@ mac-signing:
|
||||||
mozilla-central: security/mac/hardenedruntime/v2/production/nightly.browser.xml
|
mozilla-central: security/mac/hardenedruntime/v2/production/nightly.browser.xml
|
||||||
default: security/mac/hardenedruntime/v2/production/firefox.browser.xml
|
default: security/mac/hardenedruntime/v2/production/firefox.browser.xml
|
||||||
globs:
|
globs:
|
||||||
- "/Contents/MacOS/firefox-bin"
|
|
||||||
- "/" # The .app
|
- "/" # The .app
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
@ -843,7 +842,6 @@ mac-signing:
|
||||||
force: true
|
force: true
|
||||||
entitlements: security/mac/hardenedruntime/v2/developer/browser.xml
|
entitlements: security/mac/hardenedruntime/v2/developer/browser.xml
|
||||||
globs:
|
globs:
|
||||||
- "/Contents/MacOS/firefox-bin"
|
|
||||||
- "/" # The .app
|
- "/" # The .app
|
||||||
|
|
||||||
expiration-policy:
|
expiration-policy:
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ Firefox::
|
||||||
|
|
||||||
import mozversion
|
import mozversion
|
||||||
|
|
||||||
version = mozversion.get_version(binary='/path/to/firefox-bin')
|
version = mozversion.get_version(binary='/path/to/firefox')
|
||||||
for (key, value) in sorted(version.items()):
|
for (key, value) in sorted(version.items()):
|
||||||
if value:
|
if value:
|
||||||
print '%s: %s' % (key, value)
|
print '%s: %s' % (key, value)
|
||||||
|
|
|
||||||
|
|
@ -546,6 +546,10 @@ class TestFunctional(HelperMixin, unittest.TestCase):
|
||||||
self.target_bin = os.path.join(
|
self.target_bin = os.path.join(
|
||||||
buildconfig.topobjdir, "dist", "bin", "firefox.exe"
|
buildconfig.topobjdir, "dist", "bin", "firefox.exe"
|
||||||
)
|
)
|
||||||
|
elif target_platform() == "Darwin":
|
||||||
|
self.target_bin = os.path.join(
|
||||||
|
buildconfig.topobjdir, "dist", "bin", "firefox"
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
self.target_bin = os.path.join(
|
self.target_bin = os.path.join(
|
||||||
buildconfig.topobjdir, "dist", "bin", "firefox-bin"
|
buildconfig.topobjdir, "dist", "bin", "firefox-bin"
|
||||||
|
|
|
||||||
|
|
@ -10,15 +10,15 @@ sub usage() {
|
||||||
print <<EOUSAGE;
|
print <<EOUSAGE;
|
||||||
# bloatdiff.pl - munges the output from
|
# bloatdiff.pl - munges the output from
|
||||||
# XPCOM_MEM_BLOAT_LOG=1
|
# XPCOM_MEM_BLOAT_LOG=1
|
||||||
# firefox-bin -P default resource:///res/bloatcycle.html
|
# firefox -P default resource:///res/bloatcycle.html
|
||||||
# so that it does some summary and stats stuff.
|
# so that it does some summary and stats stuff.
|
||||||
#
|
#
|
||||||
# To show leak test results for a set of changes, do something like this:
|
# To show leak test results for a set of changes, do something like this:
|
||||||
#
|
#
|
||||||
# XPCOM_MEM_BLOAT_LOG=1
|
# XPCOM_MEM_BLOAT_LOG=1
|
||||||
# firefox-bin -P default resource:///res/bloatcycle.html > a.out
|
# firefox -P default resource:///res/bloatcycle.html > a.out
|
||||||
# **make change**
|
# **make change**
|
||||||
# firefox-bin -P default resource:///res/bloatcycle.html > b.out
|
# firefox -P default resource:///res/bloatcycle.html > b.out
|
||||||
# bloatdiff.pl a.out b.out
|
# bloatdiff.pl a.out b.out
|
||||||
|
|
||||||
EOUSAGE
|
EOUSAGE
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue