Closed Bug 1412115 Opened 7 years ago Closed 7 years ago

window object is replaced after content script has started loading

Categories

(Firefox :: Untriaged, defect)

57 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1408996

People

(Reporter: manish.jethani, Unassigned)

References

Details

Attachments

(1 file)

Attached file example.xpi (deleted) —
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36

Steps to reproduce:

 1.  Load the attached extension
 2.  Open a new tab, open the JavaScript console, and navigate to https://www.facebook.com/thebestposts
 3.  Open another new tab, open the JavaScript console, and navigate to https://manishjethani.com/


Actual results:

On the first page, in the console it prints "window.foo: Object {}" at first but starts printing "window.foo: undefined" on the first tick (after one second) and then forever.

On the second page it always prints "window.foo: Object {}"


Expected results:

It should always print "window.foo: Object {}"
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: