Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html	(revision 3774)
+++ /CKEditor/trunk/CHANGES.html	(revision 3775)
@@ -58,4 +58,7 @@
 		<li><a href="http://dev.fckeditor.net/ticket/3830">#3830</a> : Table cell properties dialog
 			doesn't apply to all selected cells.</li>
+		<li><a href="http://dev.fckeditor.net/ticket/3835">#3835</a> : Element path is not refreshed
+			after click on 'newpage'; and safari is not putting focus on document also.
+			</li>
 	</ul>
 	<h3>
Index: /CKEditor/trunk/_source/core/dom/window.js
===================================================================
--- /CKEditor/trunk/_source/core/dom/window.js	(revision 3774)
+++ /CKEditor/trunk/_source/core/dom/window.js	(revision 3775)
@@ -36,4 +36,7 @@
 		focus : function()
 		{
+			// Webkit is sometimes failed to focus iframe, blur it first(#3835).
+			if( CKEDITOR.env.webkit && this.$.parent )
+				this.$.parent.focus();
 			this.$.focus();
 		},
Index: /CKEditor/trunk/_source/plugins/wysiwygarea/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/wysiwygarea/plugin.js	(revision 3774)
+++ /CKEditor/trunk/_source/plugins/wysiwygarea/plugin.js	(revision 3775)
@@ -190,5 +190,5 @@
 		// unexitable block.
 		var lastNode = body.getLast( true );
-		if ( lastNode.getName && ( lastNode.getName() in nonExitableElementNames ) )
+		if ( lastNode && lastNode.getName && ( lastNode.getName() in nonExitableElementNames ) )
 		{
 			var paddingBlock = editor.document.createElement(
