content scripts는 엄밀히 말하면 isolated worlds라는 별개의 환경에서 작동하기는 하지만, 어쨌든 일단은 익스텐션이 아니라 웹 페이지를 배경으로 작동하는 녀석이다.
- 따라서 content scripts가 익스텐션(popup, background등을 포함)과 communicate하기 위해서는 message passing과 같이 특별한 방법이 필요하다.
- 실제 사용 예시: content script에서 긁어온 웹 페이지의 데이터를 popup에 활용해서 출력해야 하는 상황.
- message는 any valid JSON object(null, boolean, number, string, array, or object)를 포함할 수 있다.