Skip to content

fix: asynchronous URL loading in BW Proxy - #23776

Merged
codebytere merged 1 commit into
masterfrom
fix-ur-load
May 27, 2020
Merged

codebytere merged 1 commit into
masterfrom
fix-ur-load

Conversation

@codebytere

@codebytere codebytere commented May 26, 2020 •

Copy link
Copy Markdown
Member

Description of Change

Fixes an issue where this error:

window-setup.ts:132 LocationProxy: failed to parse string  TypeError: Failed to construct 'URL': Invalid URL
    at LocationProxy.getGuestURL (window-setup.ts:130)
    at LocationProxy.get [as href] (window-setup.ts:74)
    at Object.get href [as href] (window-setup.ts:94)
    at Object.<anonymous> (/private/var/folders/w4/6ckkx75165l174lkz07vgx_m0000gn/T/tmp-68137Olpd1KcWdwQ5/renderer.js:2)
    at Object.<anonymous> (/private/var/folders/w4/6ckkx75165l174lkz07vgx_m0000gn/T/tmp-68137Olpd1KcWdwQ5/renderer.js:4)
    at Module._compile (internal/modules/cjs/loader.js:967)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1004)
    at Module.load (internal/modules/cjs/loader.js:815)
    at Module._load (internal/modules/cjs/loader.js:727)
    at Module._load (electron/js2c/asar.js:738)

was appearing repeatedly in console because we were not properly waiting for win.loadURL() to complete in guest webcontents.

Tested with https://gist.github.com/d61bdf43af7962cc11420f666fe06820.

This fix can also be verified with this existing test because it will no longer throw the above error as seen in CI logs.

Checklist

Release Notes

Notes: Fixed an issue where window.location properties would throw an error for windows opened with window.open.

@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label May 26, 2020
Comment thread lib/browser/guest-window-manager.js Resolved
@codebytere
codebytere force-pushed the fix-ur-load branch 2 times, most recently from 0794747 to 5b52b79 Compare May 27, 2020 00:31
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label May 27, 2020
@codebytere
codebytere merged commit f785045 into master May 27, 2020
@release-clerk

release-clerk Bot commented May 27, 2020

Copy link
Copy Markdown

Release Notes Persisted

Fixed an issue where window.location properties would throw an error for windows opened with window.open.

@codebytere
codebytere deleted the fix-ur-load branch May 27, 2020 20:50
@trop

trop Bot commented May 27, 2020

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "8-x-y" cleanly;
you will need to perform this backport manually.

@trop

trop Bot commented May 27, 2020

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "10-x-y", please check out #23804

@trop

trop Bot commented May 27, 2020

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "9-x-y", please check out #23805

@trop trop Bot removed the target/9-x-y label May 27, 2020
@trop

trop Bot commented Jun 3, 2020

Copy link
Copy Markdown
Contributor

@codebytere has manually backported this PR to "8-x-y", please check out #23947

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants