<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }div.foxdiv20180920085022261301 { }body { font-size: 10.5pt; font-family: 'Segoe UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>Thanks a lot for your help. Thank works perfectly. </div>
<div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="FONT-SIZE: 10pt; FONT-FAMILY: verdana; MARGIN: 10px">
<div>Rest Regards,</div>
<div>Shanfeng Cheng</div><div>sfcheng@gmail.com</div></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div> </div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b> <a href="mailto:MattN@mozilla.com">Matthew N.</a></div><div><b>Date:</b> 2018-09-20 01:37</div><div><b>To:</b> <a href="mailto:sfcheng@gmail.com">sfcheng@gmail.com</a></div><div><b>CC:</b> <a href="mailto:firefox-dev@mozilla.org">firefox-dev</a></div><div><b>Subject:</b> Re: Debugging content.js</div></div></div><div><div class="FoxDiv20180920085022261301"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hello,</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">The Browser Content Toolbox is technically per-content-process, not per-tab. From the Browser Content Toolbox you can enumerate the tabs with the `tabs` variable. (e.g. `tabs[0].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">I haven't tested this but I believe if you set the pref "dom.ipc.processCount" = 1 in about:config and restart Firefox then that will force one content process to be used so a single Browser Content Toolbox window should be able to hit breakpoints for all tabs.</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">Let us know if that doesn't work.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Matthew N. (:MattN)<br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 19, 2018 at 7:55 AM, <a href="mailto:sfcheng@gmail.com">sfcheng@gmail.com</a> <span dir="ltr"><<a href="mailto:sfcheng@gmail.com" target="_blank">sfcheng@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div>
<div><span></span>Hi,</div><div><br></div><div>I am still trying to find my way around the source code. It looks like the code inside base\content\content.js is executed for each individual tab. The browser content toolbox is meant to debug such code. However, one browser content toolbox is associated with each individual tab. I can only open the toolbox after the tab is opened. Therefore, I am not able to debug the initialization code inside content.js since it's already run after the tab is opened. Any idea how to work around this?</div>
<div><br></div><hr style="width:210px;height:1px" size="1" color="#b5c4df" align="left">
<div><span><div style="FONT-SIZE:10pt;FONT-FAMILY:verdana;MARGIN:10px">
<div>Rest Regards,</div>
<div>Shanfeng Cheng</div><span class="HOEnZb"><font color="#888888"><div><a href="mailto:sfcheng@gmail.com" target="_blank">sfcheng@gmail.com</a></div></font></span></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div><div class="m_7891049263827729154FoxDiv20180919085133015595"><blockquote type="cite" style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><pre class="m_7891049263827729154moz-quote-pre"></pre>
</blockquote>
</div></div></blockquote>
</div><br>______________________________<wbr>_________________<br>
firefox-dev mailing list<br>
<a href="mailto:firefox-dev@mozilla.org">firefox-dev@mozilla.org</a><br>
<a href="https://mail.mozilla.org/listinfo/firefox-dev" rel="noreferrer" target="_blank">https://mail.mozilla.org/<wbr>listinfo/firefox-dev</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote>
</body></html>