If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

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

RESOLVED FIXED in Firefox 23

Status

()

Firefox
Developer Tools: Inspector
RESOLVED FIXED
5 years ago
4 years ago

People

(Reporter: miker, Assigned: jwalker)

Tracking

Trunk
Firefox 23
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

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
Blocks: 831720
Created attachment 740005 [details] [diff] [review]
v1
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
Last Resolved: 5 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 23
You need to log in before you can comment on or make changes to this bug.