Bug 826180 - No stylesheets shown after reloading a page with an iframe; r=paul
authorHeather Arthur <fayearthur@gmail.com>
Thu, 03 Jan 2013 02:34:00 +0200
changeset 126696 12c4b39c61f07acced16a5eae13f82091160dc06
parent 126695 2fce7807dc841a18adb8e17e896d45bdedce0aa7
child 126697 34eac9bec3af7eb8be741a6d039c3cb4c9c632eb
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspaul
bugs826180
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 826180 - No stylesheets shown after reloading a page with an iframe; r=paul
browser/devtools/framework/Target.jsm
--- a/browser/devtools/framework/Target.jsm
+++ b/browser/devtools/framework/Target.jsm
@@ -281,17 +281,18 @@ TabWebProgressListener.prototype = {
     let isNetwork = flag & Ci.nsIWebProgressListener.STATE_IS_NETWORK;
     let isRequest = flag & Ci.nsIWebProgressListener.STATE_IS_REQUEST;
 
     // Skip non-interesting states.
     if (!isStart || !isDocument || !isRequest || !isNetwork) {
       return;
     }
 
-    if (this.target) {
+    // emit event if the top frame is navigating
+    if (this.target && this.target.window == progress.DOMWindow) {
       this.target.emit("will-navigate", request);
     }
   },
 
   onProgressChange: function() {},
   onSecurityChange: function() {},
   onStatusChange: function() {},