Let $f$ be an entire function. Suppose that there exist two nonempty disjoint, open, connected non-empty sets $A,B$ in the plane such that $f(A)=B$ and $f(B)=A$.
Does it follow that $f$ is linear?
Equivalently, if a meromorphic function satisfies this condition is it necessarily an automorphism?
Neither of the conditions of disjointness and openness can be dropped, of course. I tried to see if results in dynamics about 2-periodic domains apply, but they usually only regard Fatou components or are otherwise not suitable. But it does seem like a question simple enough that it "ought to" be amenable to such machinery.
Any ideas?
The conclusion does not hold, not even for polynomials. If $z_0$ is an attracting fixed point of $f \circ f$ (but not a fixed point of $f$) and $A$ the component of the Fatou set containing $z_0$, then $B = f(A)$ is disjoint from $A$ with $f(B) = A$.
A concrete example is $f(z) = z^2 - 1$ with $f(0) = -1$, $f(-1) = 0$, and $A, B$ the components of the Fatou set containing $0$ and $-1$, respectively.
Here is an image of the Julia set of $z^2-1$ (Attribution: Prokofiev / Public domain):
The Fatou component in the center contains $z=0$ and the next one on the left contains $z=-1$.