Closed
Bug 984094
Opened 12 years ago
Closed 10 years ago
AJAX loaded JSON will be visible in sourcecode after using HTML5 history API
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: super8700-mozilla, Unassigned)
References
()
Details
(Keywords: html5)
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0 (Beta/Release)
Build ID: 20140212131424
Steps to reproduce:
I´m using AJAX in combination with HTML5 history api (pushState) in Firefox V27.0.1 / Windows 8.1.
So, this has the following effect: After you clicked on a link a script will be executed and the site will be loaded with AJAX and browser history will change correctly. But if you take a look into the sourcecode after the AJAX load, you will see the full JSON which was loaded with AJAX. This should not happen. It should appear the full HTML-file.
You can find a live example here: http://goo.gl/jO56hD
Navigate through the site with enabled JavaScript and click on rightclick -> show sourcecode after you navigated and you will see the JSON which was loaded from the AJAX.
This error occurs only with using HTML5 history.pushState and I think it´s a Firefox bug.
Actual results:
It appears the loaded JSON in the sourcecode instead of the sourcecode.
The DOM looks still fine, but the sourcecode doesn´t.
Expected results:
Nothing should change the sourcecode.
Related discussion thread: http://forums.mozillazine.org/viewtopic.php?f=25&t=2810531
This problem also appears to corrupt the session history. If you open the test case, click any link, then close the tab, and then re-open it using History > Recently Closed Tabs, instead of getting the page back, you just get the last-requested JSON object. Something definitely is broken here.
Comment 2•10 years ago
|
||
Misfiled. Please reopen if this is still reproducible in a current version of Firefox, and (ideally) provide a minimized testcase demonstrating the issue. (Previous goo.gl link is dead.)
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Component: WinQual Reports → Untriaged
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•