<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">With <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1401343" target="_blank">bug 1401343</a> fixed, `TabChildGlobal`s for the attached content process are exposed via a `tabs` getter in the Browser Content Toolbox's console tab. This makes it much easier to inspect a remote tab's state or to access privileged APIs related to remote tab content. The motivation for this change is to make it less tedious to inspect remote tab state with e10s, especially without add-on shims/CPOWs.<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">For those of you who don't know, when the "devtools.chrome.enabled" pref is true the Web Developer > Browser Content Toolbox opens a toolbox targeting the content process that the selected tab is loaded in. From there you can access `tabs` in the Console tab to get an array of the `TabChildGlobal`s (which have access to the content Window object via `content`).</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Examples:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">1) Access a ChromeOnly property on an element: `tabs[0].content.document.<wbr>querySelector("#myEl").<wbr>nodePrincipal`</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">2) Add an event listener to a tab child: `tabs[3].addEventListener("change", tabs[3].console.log)`<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif" class="gmail_default"><span id="gmail-m_2620412256618863817gmail-field-value-see_also"><a class="gmail-m_2620412256618863817gmail-bz_bug_link gmail-m_2620412256618863817gmail-bz_status_ASSIGNED" title="ASSIGNED - Browser Content Toolbox should expose focused tab in the console" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1346316" target="_blank">Bug 1346316</a></span> tracks giving easier access to the selected tab's TabChildGlobal and making the frame picker work (to more easily change between `TabChildGlobal`s by URL).</div><div style="font-family:arial,helvetica,sans-serif" class="gmail_default"><br></div><div style="font-family:arial,helvetica,sans-serif" class="gmail_default">Happy debugging!</div><div style="font-family:arial,helvetica,sans-serif" class="gmail_default">Matthew Noorenberghe (:MattN)<br></div></div>