Konqueror does something lik this intelligently already. For "Open new
windows", you can choose "Allow", "Ask", "Deny" and "Smart". They also
have an "Allow" and "Ignore" for:
1. Resize window
2. Move window
3. Focus window
4. Modify status bar text
Presumably, they could add a 5:
5. Examine URL history