Symantec Interview Question
AssociatesCountry: India
Interview Type: In-Person
thanks for info. Can you please tell me, what sandboxing means?? :-P
would be glad if you explain your answer. thanks :-)
check wiki for sandboxing. All scripts on a page are run by the browser. The browser only allows certain operations with limited privileges, memory , cpu slice etc. If the browser determines that the script on a page is performing an illegal operation it is killed. If its taking too much memory or cpu you often get a prompt. Imagine how a program runs on an OS, if it misbehaves it is killed. Same thing here.
As far as communication in each tab is concerned, each tab is a different process with a separate port.
TLS (which obsoletes its predecessor SSL) protocol is used to provide security for the traffic flowing on internet.
TLS (Transport layer security) protocol works between the application layer and transport layer. So Since google chrome can be thought of as an application that uses TCP/IP stack for communiation over internet, so it uses TLS to encrypt data at the sending end and to decrypt data at receiver end.
Protection between different tabs can work because as soon as a new tab is opened a new child process forks and since each tab is represented by separate process, so they don't interfere with the operation and data of each other. Each process opens up a different socket (bound to different port) and hence data flows to correct tabs based on its destination port.
Each tab is a process. The transport layer takes care of it.
- Noobie September 18, 2012Chrome uses sandboxing for each tab. Each tab sort of runs on a VM with limited resources given by chrome.