Closed
Bug 684708
Opened 13 years ago
Closed 11 years ago
Allow setting forceAllowThirdPartyCookie on requests
Categories
(Add-on SDK Graveyard :: General, defect, P2)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
1.15
People
(Reporter: peregrino, Assigned: peregrino)
References
Details
Attachments
(1 file)
In the nsIHttpChannelInternal interface there's a flag called forceAllowThirdPartyCookie that was introduced as a fix for the Bug 437174, allowing you to force sending 3rd party cookies if the user had disabled that from the preferences. The reason behind adding such flag was that some addons need to be able to send those cookies (like a gmail/facebook scanner, etc.) and as they are installed and given permission by the user they are not untrusted parties. The only way to set that flag is on the XHR object after it had been opened, so there's no way to do it now from the main.js. A WIP towards adding this can be found here https://github.com/peregrinogris/addon-sdk/commit/28a3dc
Updated•13 years ago
|
Priority: -- → P2
Assignee | ||
Comment 1•13 years ago
|
||
Assignee: nobody → colmeiro
Assignee | ||
Updated•13 years ago
|
Attachment #560715 -
Attachment is patch: false
Attachment #560715 -
Attachment mime type: text/plain → text/html
Updated•12 years ago
|
Attachment #560715 -
Flags: review?(rFobic)
Comment 3•12 years ago
|
||
Hernan, based on the pull request I think we just want to always set forceAllowThirdPartyCookies, do you want to update your patch to do that, if not I'll take it.
Assignee | ||
Comment 4•12 years ago
|
||
Yes sure! You mean removing the option to set it false, and always keeping it true?
Comment 5•12 years ago
|
||
(In reply to Hernán Rodriguez Colmeiro (:peregrino) from comment #4) > Yes sure! You mean removing the option to set it false, and always keeping > it true? Yes.
Comment 6•12 years ago
|
||
Comment on attachment 560715 [details] Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/239 Removing old pull request since Mossop was going to look into this and submit a fix.
Attachment #560715 -
Flags: review?(rFobic)
Assignee | ||
Comment 7•11 years ago
|
||
Comment on attachment 560715 [details] Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/239 Updated the pull request with tests.
Attachment #560715 -
Flags: review?(dtownsend+bugmail)
Comment 8•11 years ago
|
||
Commit pushed to master at https://github.com/mozilla/addon-sdk https://github.com/mozilla/addon-sdk/commit/cd53dcabddd5a930b0b639325575e224a3c6b5e4 Merge pull request #239 from peregrinogris/3rdParty Bug 684708: Allow sending cookies through request when third party cookies are disabled. r=Mossop
Updated•11 years ago
|
Attachment #560715 -
Flags: review?(dtownsend+bugmail) → review+
Comment 9•11 years ago
|
||
Thanks Hernan!
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.15
Comment 10•11 years ago
|
||
Comment on attachment 560715 [details] Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/239 Maybe I should have run tests first...
Attachment #560715 -
Flags: review+ → review-
Comment 11•11 years ago
|
||
Tests failed, see https://tbpl.mozilla.org/php/getParsedLog.php?id=19505663&tree=Jetpack&full=1
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 12•11 years ago
|
||
Maybe I should've tried the full tests suite first too. Will take a look into that log.
The failure is: error: addon-sdk: An exception occurred. NS_NOINTERFACE: Component returned failure code: 0x80004002 (NS_NOINTERFACE) [nsISupports.QueryInterface] undefined 118 Traceback (most recent call last): File "resource://115aee94-fb05-4aaa-860e-48758e8496a3-at-jetpack/addon-sdk/lib/sdk/timers.js", line 31, in notify callback.apply(null, args); File "resource://115aee94-fb05-4aaa-860e-48758e8496a3-at-jetpack/addon-sdk/lib/sdk/deprecated/unit-test.js", line 286, in null timer.setTimeout(function() { onDone(self); }, 0); File "resource://115aee94-fb05-4aaa-860e-48758e8496a3-at-jetpack/addon-sdk/lib/sdk/deprecated/unit-test.js", line 456, in null options.onDone(self); File "resource://115aee94-fb05-4aaa-860e-48758e8496a3-at-jetpack/addon-sdk/lib/sdk/deprecated/unit-test.js", line 438, in runNextTest self.start({test: test, onDone: runNextTest}); File "resource://115aee94-fb05-4aaa-860e-48758e8496a3-at-jetpack/addon-sdk/lib/sdk/deprecated/unit-test.js", line 469, in start this.test.testFunction(this); File "resource://115aee94-fb05-4aaa-860e-48758e8496a3-at-jetpack/addon-sdk/tests/test-request.js", line 52, in null onComplete: function(response) { File "resource://115aee94-fb05-4aaa-860e-48758e8496a3-at-jetpack/addon-sdk/lib/sdk/request.js", line 129, in null runRequest('GET', this); File "resource://115aee94-fb05-4aaa-860e-48758e8496a3-at-jetpack/addon-sdk/lib/sdk/request.js", line 74, in runRequest xhr.forceAllowThirdPartyCookie(); File "resource://115aee94-fb05-4aaa-860e-48758e8496a3-at-jetpack/addon-sdk/lib/sdk/net/xhr.js", line 118, in forceAllowThirdPartyCookie this._req.channel.QueryInterface(Ci.nsIHttpChannelInternal).
Comment 14•11 years ago
|
||
Commit pushed to master at https://github.com/mozilla/addon-sdk https://github.com/mozilla/addon-sdk/commit/3631e02ad819df08653775b19d30537258522888 Merge pull request #768 from peregrinogris/3rdPartyTests Bug 684708: Allow sending cookies through request when third party cookies are disabled. r=Mossop
I'm going through the list of open bugs that github robot has commented in. Is this bug fixed, Dave?
Flags: needinfo?(dtownsend+bugmail)
Comment 16•11 years ago
|
||
Looks like
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Flags: needinfo?(dtownsend+bugmail)
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•