summaryrefslogtreecommitdiff
path: root/ext/fg/js/popup.js
Commit message (Collapse)AuthorAge
* Add option to use the unsecure frame URL (#618)toasted-nutbread2020-06-21
|
* API refactor (#532)toasted-nutbread2020-05-24
| | | | | | | | | | | | | * Convert api.js into a class instance * Use new api.* functions * Fix missing binds * Group functions with progress callbacks together * Change style * Fix API override not working
* Dynamic loader load style (#521)toasted-nutbread2020-05-19
| | | | | | | | | * Remove unnecessary load of /fg/css/client.css * Replace dynamicLoader.loadStyles with dynamicLoader.loadStyle * Replace Popup._injectStylesheet with dynamicLoader.loadStyle * Remove unused global
* Use both shadowRoot and openOrClosedShadowRoot (#534)toasted-nutbread2020-05-10
|
* Load frame content using contentDocument.location.href instead of src ↵toasted-nutbread2020-05-10
| | | | attribute (#529)
* Popup refactor (#518)toasted-nutbread2020-05-08
| | | | | | | | | | | | | | | | | | | | | | | | | * Add default * Convert function to non-static * Remove static for private functions * Replace .call * Move functions with side effects into a synchronous prepare function * Rename variables with "container" to "frame" in _initializeFrame * Rename variables with "container" to "frame" * Rename getContainer to getFrame * Rename getContainerRect to getFrameRect * Organize and simplify * Fix incorrect change of "popup" => "this" * Move initial _updateVisibility into prepare()
* Popup proxy host refactor (#516)toasted-nutbread2020-05-08
| | | | | | | | | | | | | | | | | | | | | | | * Rename PopupProxyHost to PopupFactory * Update FrontendApiReceiver to support non-async handlers * Make some functions non-async * Make setCustomCss non-async * Make setContentScale non-async * Remove static * Rename variables * Pass frameId into PopupFactory's constructor * Change FrontendApiReceiver source from popup-proxy-host to popup-factor * Rename _invokeHostApi to _invoke * Rename PopupProxy.getHostUrl to getUrl
* Popup init update (#497)toasted-nutbread2020-05-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add API function to send a message to a specific frameId in a tab * Update _windowMessageHandlers to support additional info per handler * Remove message token * Add new authorization check * Set up new initialization handler * Update initialization * Remove message token * Replace 'prepare' with 'configure' * Create new prepare function * Change configure guard * Log errors in onMessage * Improve popup initialize function * Clear secret/token in _resetFrame * Remove backend message token * Clear src and srcdoc attributes before loading * Don't treat about:blank unloads as load events
* Validate document nodes before use (#493)toasted-nutbread2020-05-02
| | | | | | | | | | | | | * Validate document.body before use in loadScripts This also fixes an issue where reject wasn't being passed to loadScriptSentinel. * Validate document nodes before use in _getSiteColor * Validate document.body before use in _getViewport * Validate document.body before use in setContentScale * Validate document.body before use in docImposterCreate
* Remove and unload the popup frame if an unexpected load occurs (#490)toasted-nutbread2020-05-02
| | | | | | | | | * Remove and unload the popup frame if an unexpected load occurs * Remove unused fields * Only update _injectPromiseComplete if the promise is the most recent one * Remove redundant this._injectPromise !== null check
* Don't parent the popup frame to elements which cause unload (#488)toasted-nutbread2020-05-02
|
* Update Popup and DisplayFloat optionsContext from Frontend (#464)siikamiika2020-04-26
| | | | | | | | | | | | | | | | | | | | | | | | | * set optionsContext from Frontend * update Popup+Display options on Frontend change * remove popup setOptions * only update DisplayFloat options from Frontend * fix optionsContext usage * fix preview frame arguments * keep Frontend URL up to date * cache url * fix preview frame * trigger modifyingProfileChange in correct places * remove async from function not using await * refactor optionsContext in Frontend
* use getFullscreenElement to check fullscreensiikamiika2020-04-18
|
* Add isExtensionUrl utility function to yomichan objecttoasted-nutbread2020-04-11
|
* Update license author field to broader to explicitly reflect thatAlex Yatskov2020-04-10
| | | | | Yomichan is an ongoing community project. It really does take a village, and everyone who contributes code owns a part of it :)
* move broadcastRootPopupInformation to Frontendsiikamiika2020-04-05
|
* use getTemporaryListenerResult in other placessiikamiika2020-04-05
|
* refactorsiikamiika2020-04-05
|
* fix and simplifysiikamiika2020-04-05
|
* simplify popup preparesiikamiika2020-04-05
|
* show iframe popups in root framesiikamiika2020-04-05
|
* apply all options on profile changesiikamiika2020-03-21
|
* Update global declarationstoasted-nutbread2020-03-10
|
* Use .bind instead of () => {}toasted-nutbread2020-02-26
|
* Use a token to ensure that messages are coming from Yomichantoasted-nutbread2020-02-17
|
* Check origin on window messagestoasted-nutbread2020-02-16
|
* Fix error handling on style injectiontoasted-nutbread2020-02-16
|
* Delay CSS injection until a popup is createdtoasted-nutbread2020-02-16
|
* Create more generic function for injecting stylesheetstoasted-nutbread2020-02-16
|
* Change parameter nametoasted-nutbread2020-02-16
|
* Allow apiInjectStylesheet to inject a URLtoasted-nutbread2020-02-16
|
* Set URL before adding to the documenttoasted-nutbread2020-02-16
|
* Fix missing argumenttoasted-nutbread2020-02-16
|
* Update how popups are createdtoasted-nutbread2020-02-16
|
* Tweak how fullscreen changes are observedtoasted-nutbread2020-02-16
|
* Undo "Obscure the iframe's URL from the host page"toasted-nutbread2020-02-16
| | | | | | There are some additional issues which cause the frame to be reset to about:blank on certain occasions which must be fixed before this can be used.
* Simplify process to wait for iframe prepare completiontoasted-nutbread2020-02-16
|
* Obscure the iframe's URL from the host pagetoasted-nutbread2020-02-15
|
* Merge pull request #357 from siikamiika/simplify-display-preparesiikamiika2020-02-14
|\ | | | | Simplify display prepare
| * use sendMessage to notify about initializationsiikamiika2020-02-14
| |
| * remove isInjected checks from Popupsiikamiika2020-02-13
| |
| * notify popup about initializationsiikamiika2020-02-13
| |
* | Define more globalstoasted-nutbread2020-02-11
|/
* Fix viewport issues when popupScaleRelativeToVisualViewport is disabledtoasted-nutbread2020-01-22
|
* Update full-width popup to stay on screentoasted-nutbread2020-01-22
|
* Allow viewport to be used for constraining popup positiontoasted-nutbread2020-01-22
|
* Fix popup size changing when zoomingtoasted-nutbread2020-01-22
|
* Scale popup based on current page zoom factortoasted-nutbread2020-01-22
|
* Remove _isInitializedtoasted-nutbread2020-01-22
|
* Add _isInjectedAndLoaded propertytoasted-nutbread2020-01-22
|