Skip to content

Conversation

@rassilon
Copy link
Contributor

Ought to be pretty straightforward.

I wasn't sure if just checking IsPopup was good enough.

The existing test wasn't good enough because DevTools is the main frame for the popup DevTools browser.

Bill

@rassilon rassilon modified the milestone: 39.0.0 Mar 20, 2015
@amaitland
Copy link
Member

I would have though !browser->IsPopup() would have done the trick. Did it not resolve the issue?

@rassilon
Copy link
Contributor Author

IsPopup did indeed work just fine apparently.

rassilon added a commit that referenced this pull request Mar 21, 2015
Don't change the .Address property when (among other things) you display...
@rassilon rassilon merged commit ff73143 into cefsharp:master Mar 21, 2015
@rassilon rassilon deleted the DontChangeAddressForDevTools branch March 21, 2015 14:22
@rassilon rassilon changed the title Don't change the .Address property when (among other things) you display... Don't change .Address when popups display Mar 21, 2015
@amaitland
Copy link
Member

Still need the main frame check I believe. Otherwise ifames etc will change the url also.

@amaitland
Copy link
Member

Looks like the frame check isn't required anymore 👍 From memory it was added for a reason, just can't remember what for. Also possible the behavior of CEF has changed. CEF usually only passes in a frame object when it's relevant. I tested with regular frames and iframes, and it doesn't seem to be called multiple times anymore. So let's ignore my previous comment.

@rassilon
Copy link
Contributor Author

Cool. Thank's for checking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants