CCP has a much greater control on its people than others can imagine. If they want to give up on Taiwan, they can do it without much trouble. Japan used to be China's mortal enemy. CCP has no trouble normalized relationship with Japan and built "Sino-Japan friendship" [1]. No citizen uprising over this in China, though CCP used Japan as a whipping symbol to flame up nationalism from time to time. Mongolia used to be part of China and it's an independent country now. No one in China made a sound. Vast vast area of Siberia including the city Vladivostok were taken by Russia from China. Under CCP no one made a sound again. In fact, CCP and Soviet/Russia in the 90's signed a treaty to recognize the ceded territory. Again no one in China made a sound, no one overthrowing CCP on that issue. The funny thing is ROC Taiwan doesn't recognize the ceded territory and still claims the land as part of China. Taiwan is a CCP issue; Chinese people really have no say in it.
[1] Sino-Japanese Friendship and Trade Treaty