-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #391 - trim wysiwyg:// from URL field if it's there. #392
Conversation
fa5f4ea
to
498fa4f
Compare
To optimize this test, it might be interesting to add |
When do we receive ``wysiwyg:// Then after having answers to these questions we can decide. But that seems to be the call for an issue by itself ;) |
See https://bugzilla.mozilla.org/show_bug.cgi?id=1098037 and a bunch of other bugs.
The browser, if a user is on a site like wired.com.
Type "google.com". They'll be forced to type "http://google.com". More keystrokes with special characters on mobile keyboards is not fun.
No idea. :) |
Possibly fixed with I think the simplest thing to do is not do strict url validation. Either way we decide (probably in another issue, maybe #306), removing |
I would prefer to not force anyone to put in a "valid" address given that you can put Google.com into your address bar and it works. If you can strip out anything before the http, I think that's a better way to handle it. Is the issue that it's messy or hard to match multiple issues from the same domain? |
On the other hand it indeed seems to require
|
I think these are all good thoughts, but orthogonal to the issue this PR addresses--which is to work around a Gecko bug. Let's continue the discussion in #404. |
Yes. Just need to see if @magsout is r+ or not. Thanks for opening the issue. |
r+ |
Fixes #391 - trim wysiwyg:// from URL field if it's there.
Simple if matches regex, remove what was matched fix.
r? @magsout