Closed
Bug 1095018
Opened 11 years ago
Closed 11 years ago
Forward marionette's cookie interactions to the parent for compatibility with e10s
Categories
(Remote Protocol :: Marionette, defect)
Remote Protocol
Marionette
Tracking
(e10s+)
RESOLVED
FIXED
mozilla36
| Tracking | Status | |
|---|---|---|
| e10s | + | --- |
People
(Reporter: chmanchester, Assigned: chmanchester)
References
Details
Attachments
(2 files, 2 obsolete files)
test_cookies.py fails with e10s turned on. According to :mconley in #e10s, our best bet will be to forward all our interactions with the cookie manager to the parent.
Updated•11 years ago
|
tracking-e10s:
--- → +
| Assignee | ||
Comment 1•11 years ago
|
||
| Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8518959 -
Flags: review?(ato)
| Assignee | ||
Comment 3•11 years ago
|
||
/r/207 - Bug 1095018 - Forward marionette's cookie interactions to the parent process for compatibility with e10s.
Pull down this commit:
hg pull review -r aec5ba1434c06daecbb2b5b20b0fef167ffbc9f3
| Assignee | ||
Updated•11 years ago
|
Attachment #8518455 -
Attachment is obsolete: true
| Assignee | ||
Comment 4•11 years ago
|
||
/r/207 - Bug 1095018 - Forward marionette's cookie interactions to the parent process for compatibility with e10s.
Pull down this commit:
hg pull review -r aec5ba1434c06daecbb2b5b20b0fef167ffbc9f3
Comment 5•11 years ago
|
||
https://reviewboard.mozilla.org/r/205/#review167
Are the failures in e10s-enabled try expected? https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=d893ec5de843
::: testing/marionette/marionette-listener.js
(Diff revision 1)
> - let currentPath = location.pathname;
> + let result = sendSyncMessage("Marionette:getVisibleCookies", {value: [currentPath,
Break line
::: testing/marionette/marionette-listener.js
(Diff revision 1)
> -
> - let cookieManager;
> - try {
> + let cookies = getVisibleCookies(curFrame.location);
> + if (typeof cookies == "undefined") {
> + sendError("Error retrieving cookies", 13, null, msg.json.command_id);
> - // Retrieving the cookie manager fails with e10s enabled.
> - cookieManager = Cc['@mozilla.org/cookiemanager;1'].
> - getService(Ci.nsICookieManager);
> - } catch (ex) {
> - sendError("Error retrieving cookie manager: " + ex, 13, null, msg.json.command_id);
> return;
Same as above.
::: testing/marionette/marionette-listener.js
(Diff revision 1)
> - let cookieManager;
> - try {
> - // Retrieving the cookie manager fails with e10s enabled.
> - cookieManager = Cc['@mozilla.org/cookiemanager;1'].
> - getService(Ci.nsICookieManager);
> + let cookies = getVisibleCookies(curFrame.location);
> + if (typeof cookies == "undefined") {
> + sendError("Error retrieving cookies", 13, null, msg.json.command_id);
> + return;
> + }
Same as above.
::: testing/marionette/marionette-server.js
(Diff revision 1)
> + Services.cookies.add(cookieToAdd.domain, cookieToAdd.path, cookieToAdd.name,
This previously used the cookieManager, like `Marionette:getVisibleCookies` and `Marionette:deleteCookie` does now. Is `Services.cookies.add` correct?
::: testing/marionette/marionette-listener.js
(Diff revision 1)
> var cookies = getVisibleCookies(curFrame.location);
> if (typeof cookies == "undefined") {
> - sendError("Error retrieving cookie manager", 13, null, msg.json.command_id);
> + sendError("Error retrieving cookies", 13, null, msg.json.command_id);
> return;
> }
This will always return an empty array now. It returned undefined when getVisibleCookies had a try...catch for importing the cookie manager.
I read your patch as if the cookie manager will always be present? If that holds true we can remove this type check altogether.
| Assignee | ||
Comment 6•11 years ago
|
||
https://reviewboard.mozilla.org/r/205/#review181
They are. Bug 1092223 tracks progress.
> This previously used the cookieManager, like `Marionette:getVisibleCookies` and `Marionette:deleteCookie` does now. Is `Services.cookies.add` correct?
Services.cookies is a reference to a lazy getter for nsICookieManager2.
> This will always return an empty array now. It returned undefined when getVisibleCookies had a try...catch for importing the cookie manager.
>
> I read your patch as if the cookie manager will always be present? If that holds true we can remove this type check altogether.
Right, I need to update this. I'm expecting the cookie manager will always be present in the parent.
| Assignee | ||
Comment 7•11 years ago
|
||
/r/207 - Bug 1095018 - Forward marionette's cookie interactions to the parent process for compatibility with e10s.;r=ato
/r/403 - Fixes based on review feedback.
Pull down these commits:
hg pull review -r 0e6fd0b99d318c8fc83a1900b12fc83d3d326300
| Assignee | ||
Comment 8•11 years ago
|
||
/r/207 - Bug 1095018 - Forward marionette's cookie interactions to the parent process for compatibility with e10s.;r=ato
/r/403 - Fixes based on review feedback.
Pull down these commits:
hg pull review -r 0e6fd0b99d318c8fc83a1900b12fc83d3d326300
Updated•11 years ago
|
Attachment #8518959 -
Flags: review?(ato) → review+
| Assignee | ||
Comment 10•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
| Assignee | ||
Comment 12•10 years ago
|
||
Attachment #8518959 -
Attachment is obsolete: true
Attachment #8618564 -
Flags: review+
Attachment #8618565 -
Flags: review+
| Assignee | ||
Comment 13•10 years ago
|
||
| Assignee | ||
Comment 14•10 years ago
|
||
Updated•3 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•