Skip to content
This repository has been archived by the owner on Sep 19, 2018. It is now read-only.

Don't error out trying to access cross-origin functions when document.domain got set. #114

Merged
merged 1 commit into from Apr 10, 2015

Conversation

jgraham
Copy link
Member

@jgraham jgraham commented Apr 9, 2015

Setting document.domain changes the origin of the current document to be different
to the origin it had before. This invalidates the cache of origins, so in this case
we need to catch the error and make sure we don't try to call a cross-origin function.

….domain got set.

Setting document.domain changes the origin of the current document to be different
to the origin it had before. This invalidates the cache of origins, so in this case
we need to catch the error and make sure we don't try to call a cross-origin function.
@hoppipolla-critic-bot
Copy link

Critic review: https://critic.hoppipolla.co.uk/r/4619

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

Ms2ger added a commit that referenced this pull request Apr 10, 2015
Don't error out trying to access cross-origin functions when document.domain got set; r=Ms2ger
@Ms2ger Ms2ger merged commit 7de19d4 into master Apr 10, 2015
@Ms2ger Ms2ger deleted the jgraham/document_domain_dispatch branch April 10, 2015 06:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants