extension_testExtensionWatchSidebarExpression() sometimes dumps an empty sidebar pane, here's how it happens: 1. The test requests result of expression evaluated on inspected page to be rendered in sidebar pane 2. ExtensionWatchSidebarPane evaluates expression in page 3. When expression is evaluated, ExtensionWatchSidebarPane creates ObjectPropertiesSection, adds the result object and expands it the secion 4. ExtensionWatchSidebarPane dispatches a notification to client (test extension) on sidebar being updated. 5. ObjectPropertiesSection retrieves list of remote object properties in the inspected page (4) happens asynchronously WRT (5), so test extension may dump an empty sidebar before remote properties list arrives.
Created attachment 74874 [details] patch
Comment on attachment 74874 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=74874&action=review > LayoutTests/inspector/extensions.html:63 > + webInspector.inspectedWindow.eval("", bind(extension_dumpSidebarContent, null, nextTest)); Please use runAfterPendingDispatches.
Created attachment 74875 [details] patch
Manually committed r72755: http://trac.webkit.org/changeset/72755