Restore the correct domain before calling the user callback.