diff options
author | Nate Fischer <ntfschr@google.com> | 2017-08-21 12:03:58 -0700 |
---|---|---|
committer | Nate Fischer <ntfschr@google.com> | 2017-08-23 17:49:46 +0000 |
commit | 02e281a13d873be0baccaecbba94f462a2ea1ff7 (patch) | |
tree | 10d22195ad0a81e62cd933afadf4b39830225ce1 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 07168bf44b97f3d9d6b80b615d983f0eba84254b (diff) |
WebView: clarify docs for addJavascriptInterface
Docs change only, no change in logic.
We do not support calling #addJavascriptInterface until after JavaScript
is enabled via WebSettings#setJavaScriptEnabled. Calling these methods
in the wrong order is undefined behavior (and we've seen that it's buggy
under certain conditions, e.g. if the DOM includes an <img> element).
This clarifies the point in the docs and code example.
Bug: 64899039
Test: make -j40 docs (everything looks good)
Change-Id: I8ef9eec7f038037e6b898286e4dad8a57ecad472
(cherry picked from commit aaef6827ca26dee945ab0545671515ea8b4dbc23)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions