X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fdevtools%2Ffront_end%2Fcomponents%2FExecutionContextSelector.js;h=80594a6d1589020e6afcd26cd16e8f3062d1437f;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=2a3a5b2ef558df4384609da7eeca61841f1f4a2c;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/devtools/front_end/components/ExecutionContextSelector.js b/src/third_party/WebKit/Source/devtools/front_end/components/ExecutionContextSelector.js index 2a3a5b2..80594a6 100644 --- a/src/third_party/WebKit/Source/devtools/front_end/components/ExecutionContextSelector.js +++ b/src/third_party/WebKit/Source/devtools/front_end/components/ExecutionContextSelector.js @@ -23,8 +23,12 @@ WebInspector.ExecutionContextSelector.prototype = { */ targetAdded: function(target) { - if (!WebInspector.context.flavor(WebInspector.Target)) - WebInspector.context.setFlavor(WebInspector.Target, target); + // Defer selecting default target since we need all clients to get their + // targetAdded notifications first. + setImmediate(function() { + if (!WebInspector.context.flavor(WebInspector.Target)) + WebInspector.context.setFlavor(WebInspector.Target, target); + }); }, /**