Oh this is indeed very complex, I think at this level of complexity you should lean on vendor cross device integration. Safari do this between iOS and Mac OS. I am sure Chrome has something similar in either a plugin or something like that.
I get the desire here, but I worry that a feature like this introduces enormous amounts of complexity.