[Chromium] Web Inspector: dedicated worker inspector is empty
authoryurys@chromium.org <yurys@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Mar 2012 10:18:24 +0000 (10:18 +0000)
committeryurys@chromium.org <yurys@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Mar 2012 10:18:24 +0000 (10:18 +0000)
https://bugs.webkit.org/show_bug.cgi?id=82181

"beforeunload" event for worker inspector front-end is ingnored if the
window url is "about:blank" as it is just unload of the default content
before the front-end page load.

Reviewed by Pavel Feldman.

* inspector/front-end/WorkerManager.js:
(WebInspector.WorkerManager.prototype._workerInspectorClosing):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112072 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/WorkerManager.js

index 6e0bcda58d6186e5421a847045ba548cc89d5d31..08c9b2bc9baa7d5c86227b59899ae86743c03ffe 100644 (file)
@@ -1,3 +1,17 @@
+2012-03-26  Yury Semikhatsky  <yurys@chromium.org>
+
+        [Chromium] Web Inspector: dedicated worker inspector is empty
+        https://bugs.webkit.org/show_bug.cgi?id=82181
+
+        "beforeunload" event for worker inspector front-end is ingnored if the
+        window url is "about:blank" as it is just unload of the default content
+        before the front-end page load.
+
+        Reviewed by Pavel Feldman.
+
+        * inspector/front-end/WorkerManager.js:
+        (WebInspector.WorkerManager.prototype._workerInspectorClosing):
+
 2012-03-22  Yury Semikhatsky  <yurys@chromium.org>
 
         Web Inspector: split nodes and containment edges into two different arrays
index 7b3b72b58365f3a3fa3eb7b3f347756bc5554384..e59ed8dadccfc4732cedc6c1152652df5be4d271 100644 (file)
@@ -189,6 +189,8 @@ WebInspector.WorkerManager.prototype = {
 
     _workerInspectorClosing: function(workerId, event)
     {
+        if (event.target.location.href === "about:blank")
+            return;
         if (this._ignoreWorkerInspectorClosing)
             return;
         delete this._workerIdToWindow[workerId];