Giter Site home page Giter Site logo

Comments (1)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 8, 2024
Firefox on Linux has the same problem.  My tests on Mac and Linux were both 
with version 9.0.1.

With a patch (below) to remove popup.hide() in UploadFormPopup, I can get 
Firefox to send some data to the server, but it seems to be incorrectly 
encoded.  The local dev_appserver runs OOM trying to parse the data Firefox 
sends.

Not investigating any further for now.

diff --git 
a/src/com/google/walkaround/wave/client/attachment/UploadFormPopup.java 
b/src/com/google/walkaround/wave/client/attachment/UploadFormPopup.java
index 063ebcc..8564ecb 100644
--- a/src/com/google/walkaround/wave/client/attachment/UploadFormPopup.java
+++ b/src/com/google/walkaround/wave/client/attachment/UploadFormPopup.java
@@ -27,6 +27,7 @@ import com.google.gwt.uibinder.client.UiBinder;
 import com.google.gwt.uibinder.client.UiField;
 import com.google.gwt.uibinder.client.UiHandler;
 import com.google.gwt.user.client.Event;
+import com.google.gwt.user.client.ui.Button;
 import com.google.gwt.user.client.ui.FileUpload;
 import com.google.gwt.user.client.ui.FormPanel;
 import com.google.gwt.user.client.ui.SubmitButton;
@@ -93,6 +94,8 @@ public final class UploadFormPopup {
   FileUpload file;
   @UiField
   SubmitButton submit;
+  @UiField
+  Button cancel;

   private final IFrameElement iframe;
   private final HandlerReference onloadRegistration;
@@ -147,7 +150,7 @@ public final class UploadFormPopup {
   private void destroy() {
     onloadRegistration.unregister();
     popup.hide();
-    iframe.removeFromParent();
+    //iframe.removeFromParent();
     stage = Stage.END;
     log.log(Level.INFO, "end");
   }
@@ -230,12 +233,12 @@ public final class UploadFormPopup {
   @UiHandler("submit")
   void handleSubmit(ClickEvent e) {
     Preconditions.checkState(stage == Stage.HAVE_TOKEN);
-    // The browser's default action can not be relied upon to submit the form,
-    // because this handler is removing the form from the DOM, so a manual
-    // submit is required (before hiding the popup).
     e.stopPropagation();
     form.submit();
-    popup.hide();
+    //popup.hide();
+    submit.setEnabled(false);
+    file.setEnabled(false);
+    cancel.setEnabled(false);
     stage = Stage.UPLOADING_FILE;
     log.log(Level.INFO, "posting file");
     if (listener != null) {

Original comment by [email protected] on 15 Jan 2012 at 7:11

  • Changed title: Attachment upload does not work in Firefox

from walkaround.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.