microsoft / Office-Online-Test-Tools-and-Documentation

Office Online test tools and documentation
https://docs.microsoft.com/en-us/microsoft-365/cloud-storage-partner-program/
MIT License
232 stars 162 forks source link

HostViewUrl/HostEditUrl: What behavior changes if they're not provided? In other words, when are they used? #88

Open tylerbutler opened 9 years ago

tylerbutler commented 9 years ago

HostEditUrl is definitely needed in the business user flow, and is called out explicitly there already. However, do these two values actually change any behavior in the apps? Do we show/hide the view/edit button based on the presence of these properties in Check?

View/edit mode transitions are inner iframe navigations, not outer page navigations, so these shouldn't matter there (though the access tokens may be different for view and edit, and we would need a new access token to navigate to the new mode - so maybe they are). And in the case where a dialog is shown asking the user to refresh, we do a straight browser refresh, so that should refresh the host page directly. So bottom line, are these really needed?

philipjrose commented 9 years ago

FWIW, if HostViewUrl is absent, the full screen button in the embedview version of the UI is either disabled or broken (depending on whether you're looking at Word, Excel or PowerPoint).