Closed Bug 1365840 Opened 8 years ago Closed 8 years ago

location has a toJSON member and its value is undefined

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1333045

People

(Reporter: phistuck, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36 Steps to reproduce: I typed in the console - > 'toJSON' in document.location true > Object.getOwnPropertyDescriptor(document.location, 'toJSON') Object { value: undefined, writable: false, enumerable: true, configurable: false } Actual results: document.location has a toJSON member and its value is undefined. Expected results: Looks like document.location should not have a toJSON method/member. https://html.spec.whatwg.org/multipage/browsers.html#the-location-interface
Component: Untriaged → DOM
Product: Firefox → Core
Summary: location has a toJSON member but its value is undefined → location has a toJSON member and its value is undefined
Chrome does not have such a member. This was reproduced using Firefox 53.0.2.
The issue is no longer on Firefox nightly 55. Looks it's a dup. of bug 1333045.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.