Summary: | JSContext Inspector: Broken frontend, DOMAgent is used but does not exist | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> | ||||
Component: | Web Inspector | Assignee: | Joseph Pecoraro <joepeck> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | commit-queue, hi, inspector-bugzilla-changes, joepeck, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Nightly Build | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Joseph Pecoraro
2018-10-25 15:46:15 PDT
Created attachment 353120 [details]
[PATCH] Proposed Fix
Comment on attachment 353120 [details]
[PATCH] Proposed Fix
r=me
While I do think this is a valid solution, I think it would better to wrap the `ensureDocument` call in a similar if (or even introduce a `WI.DOMManager.supported()` like some other managers). I'd prefer to check for support at the construction point rather than right before the call.
(In reply to Devin Rousso from comment #3) > Comment on attachment 353120 [details] > [PATCH] Proposed Fix > > r=me > > While I do think this is a valid solution, I think it would better to wrap > the `ensureDocument` call in a similar if (or even introduce a > `WI.DOMManager.supported()` like some other managers). I'd prefer to check > for support at the construction point rather than right before the call. Yes. In the near future, agent's won't be available in Manager construction and things like this will only happen when targets are supported. So this is a simple solution for now. Comment on attachment 353120 [details] [PATCH] Proposed Fix Clearing flags on attachment: 353120 Committed r237435: <https://trac.webkit.org/changeset/237435> All reviewed patches have been landed. Closing bug. |