Skip to content

Move bridge creation to injectDeferredObject#401

Merged
dpa99c merged 1 commit intoapache:masterfrom
GEDYSIntraWare:bridge
Sep 24, 2019
Merged

Move bridge creation to injectDeferredObject#401
dpa99c merged 1 commit intoapache:masterfrom
GEDYSIntraWare:bridge

Conversation

@NiklasMerz
Copy link
Copy Markdown
Member

Platforms affected

iOS

What does this PR do?

This avoids failed script injections for pages which did not finish loading.

Version 3.0.0 created the iframe like that and the refactor for WKWebView changes this. Now the iframe won´t be created for pages which cannot finish loading and injected javascript will fail.

What testing has been done on this change?

Tested inject javascript on pages which cannot load.

Checklist

  • Reported an issue in the JIRA database
  • Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
  • Added automated test coverage as appropriate for this change.

Avoid failed script injections for pages which did not finish loading.
@NiklasMerz NiklasMerz changed the title Move bidge creation to injectDeferredObject Move bridge creation to injectDeferredObject Jan 16, 2019
@janpio janpio requested a review from dpa99c June 19, 2019 21:54
@NiklasMerz
Copy link
Copy Markdown
Member Author

Any chance to get this reviewed anytime soon? Looks like a regression to me.

@dpa99c
Copy link
Copy Markdown
Contributor

dpa99c commented Sep 24, 2019

Yep, simple change and no reason to create the bridge before injection on UIWebview variant (which is imminently going away soon anyway).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants