Closed Bug 854948 Opened 11 years ago Closed 11 years ago

GCLI context.environment.contentDocument points to doc from when GCLI first opened

Categories

(DevTools :: Inspector, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 23

People

(Reporter: miker, Assigned: jwalker)

References

Details

Attachments

(1 file)

Since recent GCLI changes context.environment.contentDocument always points to the content document from when GCLI was first opened.

It should obviously point to the current content document.
context.environment.contentDocument.location.href = the correct content document URI.
context.environment.contentDocument.body.innerHTML = HTML from the page when GCLI was first loaded.
Seems like the debugger gave me bad information. Seems like context.environment.contentDocument.location is null :o/
console.log(context.environment.contentDocument) gives HTMLDocument {"location":null}
Assignee: nobody → jwalker
Attached patch v1Splinter Review
Attachment #740005 - Flags: review?(mratcliffe)
Comment on attachment 740005 [details] [diff] [review]
v1

Review of attachment 740005 [details] [diff] [review]:
-----------------------------------------------------------------

That simple? Looks good to me, r+.
Attachment #740005 - Flags: review?(mratcliffe) → review+
Whiteboard: [land-in-fx-team]
Could you double check that this solves your appcache problem please?
Whiteboard: [land-in-fx-team]
(In reply to Joe Walker [:jwalker] from comment #6)
> Could you double check that this solves your appcache problem please?

I already had, it works just fine.
Whiteboard: [land-in-fx-team]
https://hg.mozilla.org/integration/fx-team/rev/9a35bbea86c7
Status: NEW → ASSIGNED
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/9a35bbea86c7
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 23
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: