 Before 1779, it also included the Innviertel, now part of modern Austria.This was ceded to the Habsburgs by the Treaty of Teschen, which ended the War of the Bavarian Succession.There were a considerable number of independent enclaves and jurisdictions within those broad areas, however, including the principalities of Palatinate-Neuburg and Palatinate-Sulzbach in the Upper Palatinate, which were held by cadet branches of the Palatinate line of the Wittelsbachs; the ecclesiastical states of Freising, Regensburg, and Passau, and the imperial free city of Regensburg.