forked from ariya/phantomjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addresses [Issue #761](http://code.google.com/p/phantomjs/issues/detail?id=761). This is a squash of 5 commits. 1. Complete reimplementation of the CookieJar and the Cookie API - Part 1. The save/load mechanism is inspired by the Qt Demo "browser". More info: http://doc.qt.nokia.com/4.7-snapshot/demos-browser.html 2. Making the CookieJar a singleton. We need to have multiple NetworkAccessManager to monitor the network activity of the page, but we also need to maintain 1 CookieJar: in this way we now have a shared bucket of Cookies. 3. Exposing the new Cookies API to the JS space. * Updated the completions. * Ensured backward compatibility of the API. * It's now possible to "phantom.cookieEnabled = false" to disable cookies completely. * New methods: addCookie, deleteCookie, clearCookies 4. Provided some internal Doc for the new Cookies API 5. Ensuring the "page.deleteCookie(name)" method works only if a cookie name is given.
- Loading branch information
Showing
10 changed files
with
575 additions
and
137 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.