Catrope has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/98569


Change subject: Use visibility: hidden; to hide inspectors
......................................................................

Use visibility: hidden; to hide inspectors

Using display: none; on the inspectors WindowSet causes Firefox to
neglect to load CSS in the inspectors' iframes, which means the frame
never initializes and the inspector never opens.

Bug: 57568
Change-Id: Ia1a0ce78754fa1318a7d439abe1f0e2f86420e7a
---
M modules/ve/ui/ve.ui.Context.js
1 file changed, 6 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/69/98569/1

diff --git a/modules/ve/ui/ve.ui.Context.js b/modules/ve/ui/ve.ui.Context.js
index cb5d6cb..0ff9884 100644
--- a/modules/ve/ui/ve.ui.Context.js
+++ b/modules/ve/ui/ve.ui.Context.js
@@ -402,7 +402,9 @@
                // Show either inspector or menu
                if ( inspector ) {
                        this.$menu.hide();
-                       this.inspectors.$element.show();
+                       // Use visibility instead of .show()/.hide() so Firefox 
won't refuse to load the iframe
+                       // inside the inspector (bug 57568)
+                       this.inspectors.$element.css( 'visibility', '' );
                        if ( !repositionOnly ) {
                                inspector.$element.css( 'opacity', 0 );
                        }
@@ -413,7 +415,9 @@
                                inspector.$element.css( 'opacity', 1 );
                        }, this ), 200 );
                } else {
-                       this.inspectors.$element.hide();
+                       // Use visibility instead of .show()/.hide() so Firefox 
won't refuse to load the iframe
+                       // inside the inspector (bug 57568)
+                       this.inspectors.$element.css( 'visibility', 'hidden' );
                        this.embedded = (
                                focusedNode &&
                                focusedNode.$focusable.outerHeight() > 
this.$menu.outerHeight() * 2 &&

-- 
To view, visit https://gerrit.wikimedia.org/r/98569
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia1a0ce78754fa1318a7d439abe1f0e2f86420e7a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Catrope <roan.katt...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to