Earlier quoted context omitted.
The first example I could think of actually counters the OP: when the iPhone launched and developers were told their only option on the platform would be via Web-apps. Of course Apple did a 180 soon after and introduced the iOS SDK. Not so sure if that was flipping the script when they were ready or that Apple had hoped to not have to open the OS but bent to the developer outcry (or saw that there might be some merit…
Not sure if OP means me, but if so there is a big difference. Going from web app only to a full SDK is opening up the platform, and a big step forward. Going from macOS today, to only allowing apps installed from the app store would be closing the platform and stepping backwards in a huge way.
How is that so? The initial promise with "web apps only" was that they would add the necessary APIs for people to develop web-apps that could do almost anything.
Nowadays Apple (intentionally or not) is crippling the entire web-app ecosystem by not supporting the APIs that everyone else does (no notifications, non-standard manifest, etc.).