Skip to content

Commit 349db55

Browse files
committed
Update Frame.md - LoadString and data uris
1 parent 2579b39 commit 349db55

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

api/Frame.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,15 @@ True if this object is currently attached to a valid frame.
218218
| url | string |
219219
| __Return__ | void |
220220

221+
NOTE: LoadString is problematic due to the multi-process model and the need
222+
to create a render process (which does not happen with LoadString). It is
223+
best to use instead LoadUrl with a data uri, e.g. `LoadUrl("data:text/html,some+html+code+here")`.
224+
Take also a look at a [custom resource handler](ResourceHandler.md).
225+
221226
Load the contents of |value| with the specified dummy |url|. |url|
222227
should have a standard scheme (for example, http scheme) or behaviors like
223-
link clicks and web security restrictions may not behave as expected. LoadString() can be called only after the Renderer process has been created.
228+
link clicks and web security restrictions may not behave as expected.
229+
LoadString() can be called only after the Renderer process has been created.
224230

225231

226232
### LoadUrl

0 commit comments

Comments
 (0)