Closed
Bug 1260876
Opened 8 years ago
Closed 8 years ago
Remove switch process code for signed packages
Categories
(Core :: Networking, defect)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla48
Tracking | Status | |
---|---|---|
firefox48 | --- | fixed |
People
(Reporter: tanvi, Assigned: hchang)
References
Details
(Whiteboard: [necko-active])
Attachments
(1 file, 1 obsolete file)
58.43 KB,
patch
|
hchang
:
review+
|
Details | Diff | Splinter Review |
Per Henry and Jonas, the code added in bug 1186290 is no longer needed: https://hg.mozilla.org/mozilla-central/rev/ca240e275047 With the patches in bug 1105556, netwerk/test/mochitests/test_signed_web_packaged_app.html is failing because TabParent::ShouldSwitchProcess depends on loadInfo->loadingPrincipal. loadInfo->loadingPrincipal doesn't exist for TYPE_DOCUMENT loads with Bug 1105556. Since this test and code is no longer needed, we need to remove it in order to land Bug 1105556. https://treeherder.mozilla.org/#/jobs?repo=try&revision=f445d1751d5b&selectedJob=18732667
I do want to note that we should keep the code which enables switching child processes on navigation. The logic for when we'll switch will likely change, but being able to switch is something that I think will be quite useful once e10s is more mature.
Assignee | ||
Comment 2•8 years ago
|
||
(In reply to Jonas Sicking (:sicking) from comment #1) > I do want to note that we should keep the code which enables switching child > processes on navigation. The logic for when we'll switch will likely change, > but being able to switch is something that I think will be quite useful once > e10s is more mature. The support of process switch is in nsFrameLoader::SwitchProcessAndLoadURI which will not be removed in this patch definitely :)
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → hchang
Updated•8 years ago
|
Whiteboard: [necko-active]
Reporter | ||
Comment 3•8 years ago
|
||
I believe this is also causing the patches in Bug 1105556 to fail this origin attribute test: netwerk/test/mochitests/test_origin_attributes_conversion.html We end up without a loadingPrincipal here - http://mxr.mozilla.org/mozilla-central/source/dom/ipc/TabParent.cpp#516 - and the test times out. https://treeherder.mozilla.org/#/jobs?repo=try&revision=e45786f407ef&selectedJob=19014318
Assignee | ||
Comment 4•8 years ago
|
||
Assignee | ||
Comment 5•8 years ago
|
||
Comment on attachment 8738947 [details] [diff] [review] 0001-Bug-1260876-Remove-process-switch-code-for-signed-pa.patch Hi Valentin, Could you help review the patch to remove the process switch part and test cases for signed package? (since it's no longer needed.) I didn't remove all stuff about signing but only code which involved process switch. Thanks!
Attachment #8738947 -
Flags: review?(valentin.gosu)
Comment 6•8 years ago
|
||
Comment on attachment 8738947 [details] [diff] [review] 0001-Bug-1260876-Remove-process-switch-code-for-signed-pa.patch Review of attachment 8738947 [details] [diff] [review]: ----------------------------------------------------------------- Looks good. Thanks!
Attachment #8738947 -
Flags: review?(valentin.gosu) → review+
Reporter | ||
Comment 7•8 years ago
|
||
Thanks Henry for your patch! Can you push it to try?
Assignee | ||
Comment 8•8 years ago
|
||
(In reply to Tanvi Vyas - behind on needinfos [:tanvi] from comment #7) > Thanks Henry for your patch! Can you push it to try? I actually did it last night but it seems some warnings caused build error on certain platform :( I'll update the patch and land it as soon as possible. Thanks!
Assignee | ||
Comment 9•8 years ago
|
||
Attachment #8738947 -
Attachment is obsolete: true
Attachment #8739366 -
Flags: review+
Assignee | ||
Comment 10•8 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=8d4023e2c617 Waiting for try result.
Reporter | ||
Comment 11•8 years ago
|
||
(In reply to Henry Chang [:henry] from comment #10) > https://treeherder.mozilla.org/#/jobs?repo=try&revision=8d4023e2c617 > > Waiting for try result. Looks like you are having a problem with netwerk/test/mochitests/test_origin_attributes_conversion.html. That called SwitchProcess before you removed this code. I was also having a problem with this test with my patches to bug 1105556.
Comment 12•8 years ago
|
||
I think we can remove that part too, right?
Assignee | ||
Comment 13•8 years ago
|
||
(In reply to Valentin Gosu [:valentin] from comment #12) > I think we can remove that part too, right? If it's just a origin attribute conversion, I feel like it should still work cuz it's supposed to have nothing to do with process switch. I will have a detailed look today on my desktop today. Thanks!
Assignee | ||
Comment 14•8 years ago
|
||
(In reply to Henry Chang [:henry] from comment #13) > (In reply to Valentin Gosu [:valentin] from comment #12) > > I think we can remove that part too, right? > > If it's just a origin attribute conversion, I feel like it should still work > cuz it's supposed to have nothing to do with process switch. I will have a > detailed look today on my desktop today. Thanks! After reading the test case, it is indeed needed to be removed :p Sorry for my misunderstanding in the previous comment.
Assignee | ||
Comment 15•8 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=335c3860ba82 One more try!
Assignee | ||
Comment 17•8 years ago
|
||
Try looks good so pushed it to inbound!
Comment 18•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/465581fb7e66
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox48:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
You need to log in
before you can comment on or make changes to this bug.
Description
•