Fix test-ipcbrowser bug, as part of bug 593310 why not. a=b
authorChris Jones <jones.chris.g@gmail.com>
Wed, 26 Jan 2011 00:26:37 -0600
changeset 61314 bfd44071cce9c3a35c059915959c876ad61d2365
parent 61313 8d160fb8f2db3f7929f656732c4f479b13b6a420
child 61315 23cfa8965c9e749afda622091c4ee40cee0047ce
push idunknown
push userunknown
push dateunknown
reviewersb
bugs593310
milestone2.0b11pre
Fix test-ipcbrowser bug, as part of bug 593310 why not. a=b
layout/ipc/test-ipcbrowser-chrome.js
layout/ipc/test-ipcbrowser.xul
--- a/layout/ipc/test-ipcbrowser-chrome.js
+++ b/layout/ipc/test-ipcbrowser-chrome.js
@@ -4,20 +4,22 @@ function init() {
         "chrome://global/content/test-ipcbrowser-content.js", true
     );
 }
 
 function browser() {
     return document.getElementById("content");
 }
 
+function frameLoader() {
+    return browser().QueryInterface(Components.interfaces.nsIFrameLoaderOwner).frameLoader;
+}
+
 function viewManager() {
-    return browser().QueryInterface(Components.interfaces.nsIFrameLoaderOwner)
-                    .frameLoader
-                    .QueryInterface(Components.interfaces.nsIContentViewManager);
+    return frameLoader().QueryInterface(Components.interfaces.nsIContentViewManager);
 }
 
 function rootView() {
     return viewManager().rootContentView;
 }
 
 function enableAsyncScrolling() {
     var i = Components.interfaces.nsIFrameLoader_MOZILLA_2_0_BRANCH;
--- a/layout/ipc/test-ipcbrowser.xul
+++ b/layout/ipc/test-ipcbrowser.xul
@@ -64,11 +64,11 @@
     <textbox id="vsX" flex="1" value="2.0"/>
     <textbox id="vsY" flex="1" value="2.0"/>
     <toolbarbutton
        onclick="setViewportScale(document.getElementById('vsX').value,
                                  document.getElementById('vsY').value);"
        label="setViewportScale"/>
   </toolbar>
 
-  <browser type="content" src="http://people.mozilla.com/~cjones/anim.html" flex="1" id="content"
+  <browser type="content" src="http://www.google.com/" flex="1" id="content"
            remote="true"/>
 </window>