File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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+
221226Load the contents of |value| with the specified dummy |url|. |url|
222227should 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
You can’t perform that action at this time.
0 commit comments