From 73659ee409ae4840c5019633a5c4000eececd7c0 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 31 May 2018 21:42:53 +0000 Subject: Update fxjs README TBR=dsinclair@chromium.org Change-Id: I6f2a4a4b39c38a1bcfcf817a5c2aa51414291ad9 Reviewed-on: https://pdfium-review.googlesource.com/33451 Reviewed-by: Tom Sepez Commit-Queue: Tom Sepez --- fxjs/README | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fxjs/README b/fxjs/README index a38e746d4e..85c5edf79c 100644 --- a/fxjs/README +++ b/fxjs/README @@ -33,3 +33,11 @@ Slot 1's contents are determined by these tags: A FXJSE_CLASS_DESCRIPTOR pointer means to expect an actual v8 function object, and not an aligned pointer. +Because PDFium uses V8 for various unrelated purposes, there may be up to +four v8::Contexts (JS Global Objects) associated with each document. One is +used by FXJS and holds objects as described by the js_api_reference.pdf +specification. The others are used by FXJSE. + +FXJS requires that it can find itself whatever the current context might +be through a v8::Context's slot -- even if one of the FXJSE contexts is +current. \ No newline at end of file -- cgit v1.2.3