These are mac-only functions used to support the dock and application menu for
non browser windows (anything that includes macWindow.inc.xul). Make this more
straightforward by splitting the code out into a new script file that gets loaded
directly by macWindow.inc.xul rather than unconditionally adding the functions
and only calling them when needed.
MozReview-Commit-ID: 8y3rij5vqyh
--HG--
extra : rebase_source : 4e9aae343a41ed497e7da1e2c7acab3d42fea8a2