Default locations depends on type

review975002
issue3289
(transplanted from 77b6eb28abfb3cabd168ae2cb3e6257ce7f50216)

--HG--
extra : transplant_source : w%B6%EB%28%AB%FB%3C%AB%D1h%AE%2C%B3%E6%25%7C%E7%F5%02%16