Closed
Bug 1363311
Opened 7 years ago
Closed 7 years ago
[e10s] SetCookie in a multipart content doesn't do anything
Categories
(Core :: Networking: Cookies, defect)
Core
Networking: Cookies
Tracking
()
RESOLVED
FIXED
mozilla55
People
(Reporter: dragana, Assigned: ehsan.akhgari)
References
Details
(Whiteboard: [necko-active])
Attachments
(2 files)
11.33 KB,
text/plain
|
Details | |
10.45 KB,
patch
|
jdm
:
review+
gchang
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
This is assertion only in debug build in child process at line: https://hg.mozilla.org/mozilla-central/annotate/tip/netwerk/streamconv/converters/nsMultiMixedConv.cpp#l1032 (thisis in nsMultiMixedConv::ProcessHeader()) I tried to do a simple search in bugzilla and it fails every time. It tries to set cookie that is not implemented in child process: CookieServiceChild::SetCookieStringFromHttp https://dxr.mozilla.org/mozilla-central/source/netwerk/cookie/CookieServiceChild.cpp#227
Comment 1•7 years ago
|
||
Do you have a page you can repro with by hand?
Assignee: nobody → honzab.moz
Flags: needinfo?(dd.mozilla)
Whiteboard: [necko-active]
Reporter | ||
Comment 2•7 years ago
|
||
This is happening only for a debug build. Go to https://bugzilla.mozilla.org/query.cgi?format=specific and enter anything in search field and press enter.
Flags: needinfo?(dd.mozilla)
Comment 3•7 years ago
|
||
OK, this is a cookie service bug. Not a regression, this is there since e10s. CookieServiceChild::SetCookieStringFromHttp [1] is not implemented on the child. Amy, could you take a look? If you are busy, bounce back. [1] https://dxr.mozilla.org/mozilla-central/rev/e66dedabe582ba7b394aee4f89ed70fe389b3c46/netwerk/cookie/CookieServiceChild.cpp#208
Assignee: honzab.moz → nobody
Component: Networking: HTTP → Networking: Cookies
Summary: Debug assertion in nsMultiMixedConv.cpp → [e10s] SetCookie in a multipart content doesn't do anything
Version: 55 Branch → unspecified
Updated•7 years ago
|
Flags: needinfo?(amchung)
Comment 4•7 years ago
|
||
Hi Honza, I will test this bug and try to find the root-cause first. If this bug is urgent, it is my view that this bug have to find someone else to fix it. otherwise, I would take a look at this bug.
Flags: needinfo?(amchung)
Comment 5•7 years ago
|
||
CookieServiceChild::SetCookieStringFromHttp was removed by bug 1339129 to avoid child process to access the HTTP-only cookies. Shall we also avoid setting cookie in this case here in [1]? [1] https://searchfox.org/mozilla-central/rev/24c443a440104dabd9447608bd41b8766e8fc2f5/netwerk/streamconv/converters/nsMultiMixedConv.cpp#1027
Flags: needinfo?(honzab.moz)
Flags: needinfo?(ehsan)
Assignee | ||
Comment 6•7 years ago
|
||
This way the next person to look at the bug doesn't need to spend the time to reproduce it. :-)
Assignee | ||
Comment 7•7 years ago
|
||
OK, as far as I can tell, in bug 1339129 we have broken the handling of multipart/mixed responses with an embedded Set-Cookie header inside them in e10s mode. :-( Josh, if we revert parts of those changes to allow the child process to only set HTTP-only cookies like it used to before, how big of a wrench would that throw into our plans for bug 1331680? :-/
status-firefox54:
--- → affected
status-firefox55:
--- → affected
tracking-firefox54:
--- → ?
tracking-firefox55:
--- → ?
Flags: needinfo?(ehsan) → needinfo?(josh)
Assignee | ||
Comment 9•7 years ago
|
||
Bug 1331680 only depends on not having access to HTTP-only cookies in the child process. Bug 1339129 lumped that in together with removing support for CookieServiceChild::SetCookieStringFromHttp() from the content process but I don't think that part is necessary at all, we can just bring back that part and it wouldn't interfere with bug 1331680.
Assignee: nobody → ehsan
Assignee | ||
Updated•7 years ago
|
Flags: needinfo?(josh)
Flags: needinfo?(honzab.moz)
Assignee | ||
Comment 10•7 years ago
|
||
Another discovery, we never seemed to have handled the HTTP-only case here correctly, even before bug 1339129!
Assignee | ||
Comment 11•7 years ago
|
||
Attachment #8869669 -
Flags: review?(josh)
Updated•7 years ago
|
Attachment #8869669 -
Flags: review?(josh) → review+
Comment 12•7 years ago
|
||
Pushed by eakhgari@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/630cc9a74b64 Honor Set-Cookie headers in multipart/mixed response boundary headers in e10s mode; r=jdm
Assignee | ||
Comment 13•7 years ago
|
||
Comment on attachment 8869669 [details] [diff] [review] Honor Set-Cookie headers in multipart/mixed response boundary headers in e10s mode Approval Request Comment [Feature/Bug causing the regression]: Bug 1339129 [User impact if declined]: Set-Cookie headers in multipart/mixed response boundary headers aren't honored in e10s mode. [Is this code covered by automated tests?]: The patch has a test. [Has the fix been verified in Nightly?]: No, the patch just landed. [Needs manual test from QE? If yes, steps to reproduce]: No. [List of other uplifts needed for the feature/fix]: None. [Is the change risky?]: Not that much. We're piping the boolean flag that we should have passed to the parent process to the right place. [Why is the change risky/not risky?]: I just answered the question. [String changes made/needed]: None.
Attachment #8869669 -
Flags: approval-mozilla-beta?
Comment 14•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/630cc9a74b64
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Comment 15•7 years ago
|
||
Comment on attachment 8869669 [details] [diff] [review] Honor Set-Cookie headers in multipart/mixed response boundary headers in e10s mode Fix a cookie issue in e10s mode. Beta54+. Should be in 54 beta 11.
Attachment #8869669 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 16•7 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-beta/rev/a9c5f2fbb7fb
Comment 17•7 years ago
|
||
(In reply to :Ehsan Akhgari (needinfo please, extremely long backlog) from comment #13) > [Is this code covered by automated tests?]: The patch has a test. > [Has the fix been verified in Nightly?]: No, the patch just landed. > [Needs manual test from QE? If yes, steps to reproduce]: No. Setting qe-verify- based on Ehsan's assessment on manual testing needs and the fact that this fix has automated coverage.
Flags: qe-verify-
You need to log in
before you can comment on or make changes to this bug.
Description
•