Open
Bug 1379834
Opened 7 years ago
Updated 9 months ago
Window context bug in target="_blank" and window.open()
Categories
(DevTools :: Responsive Design Mode, defect, P3)
DevTools
Responsive Design Mode
Tracking
(firefox57 fix-optional)
NEW
Tracking | Status | |
---|---|---|
firefox57 | --- | fix-optional |
People
(Reporter: cristiangiagante, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
1.09 KB,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0
Build ID: 20170628075643
Steps to reproduce:
ONLINE FILE EXAMPLE: http://muwlauncher.com/firefoxBug.html
STEPS TO REPRODUCE THE BUG:
1-PRESS THE SUBMIT BUTTON IN DESKTOP MODE AND ENABLE POPUP WINDOWS IF IT'S NEEDED, WHEN THE
NEW WINDOW WILL BE OPEN YOU CAN SEE THE POST VARS SENDED myData WITH VALUE important_data.
2-NOW OPEN DEVTOOLS AND SELECT RESPONSIVE DESIGN MODE (CTRL+SHIFT+M) AND PRESS THE
SUBMIT BUTTON, NOW YOU CAN SEE THAT THE POST VARIABLES DONT WAS SENDED (THE FORM METHOD ACTION POST WAS IGNORED), THE REQUEST WAS SENDED IN GET MODE.
3-NOW TRY TO RUN THIS IN CONSOLE IN DESKTOP MODE (NO RESPONSIVE DESIGN MODE)
var firefoxBug = window.open("","testBug")
(enabled popup window if it's needed when firefox ask to it), a new windows is created,
back to your original window and run in console: firefoxBug (you can see the window object)
4-NOW TRY THE 3 STEP IN MOBILE MODE, NULL WILL BE RETURNED ALWAYS.
Actual results:
You lost the window context info, lost action method info from forms, and data variables, always "null" returned trying to use window.open() (with popup blocker disabled)
THIS BUG AFFECT DEKSTOP FIREFOX AND MOBILE FIREFOX IN REAL DEVICES
Expected results:
The mobile mode and real mobile devices must respect the normal behavior on desktop, the action method must be the original post not changed to get, and javascript window.open() must return a window object to control a new window generated.
Updated•7 years ago
|
Component: Untriaged → DOM
Product: Firefox → Core
Comment 1•7 years ago
|
||
I can reproduce this on current Nightly. window.open always returns null in Responsive Design Mode.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Has someone checked this on a real mobile device? (Comment 0 says "MOBILE FIREFOX IN REAL DEVICES", but I am not sure if that was assumed because it happened in Responsive Design Mode on desktop.)
It's entirely possible that Responsive Design Mode is the issue here, assuming it only happens in there.
Reporter | ||
Comment 3•7 years ago
|
||
Firefox IOS version has this bug (tested on iphone 6S plus)
Firefox for Android dont has this bug (tested on samsung s7)
Reporter | ||
Comment 4•7 years ago
|
||
A few hours ago the responsive design editor changed on firefox desktop (hotfix?) to a black style and the issue is not being replied here.
But the issue on browser stack in firefox for ios is still happen, someone knows if the hotfix affect firefox for ios too?.
(In reply to Cristian Adrian Giagante from comment #4)
> A few hours ago the responsive design editor changed on firefox desktop
> (hotfix?) to a black style and the issue is not being replied here.
> But the issue on browser stack in firefox for ios is still happen, someone
> knows if the hotfix affect firefox for ios too?.
If the RDM changed to a black appearance, it likely means you are seeing the old RDM because e10s is disabled for some reason.
Check about about:support's "Multiprocess Windows" entry to see why that might have happened.
Reporter | ||
Comment 6•7 years ago
|
||
I see that the environment is changing all time, Multiprocess Windows is being enable and disable but the new RDM is still bugged.
If someone need help to test can mail me or answer here. Greetings and thanks community
(In reply to Cristian Adrian Giagante from comment #4)
> But the issue on browser stack in firefox for ios is still happen
What test case are you using to check Firefox for iOS? The steps in comment 0 are talking about RDM on desktop.
Comment 8•7 years ago
|
||
(In reply to Cristian Adrian Giagante from comment #3)
> Firefox IOS version has this bug (tested on iphone 6S plus)
> Firefox for Android dont has this bug (tested on samsung s7)
Firefox for iOS doesn't use Gecko; if you see this behavior there, that warrants a new bug in that product.
Reporter | ||
Comment 9•7 years ago
|
||
(In reply to J. Ryan Stinnett [:jryans] (use ni?) from comment #7)
> (In reply to Cristian Adrian Giagante from comment #4)
> > But the issue on browser stack in firefox for ios is still happen
>
> What test case are you using to check Firefox for iOS? The steps in comment
> 0 are talking about RDM on desktop.
I'm testing on browserstack in real device. Using my example on http://muwlauncher.com/firefoxBug when you load the site, and click on the submit button you dont get the post vars in the response. Same issue than in desktop when RDM is being used.
Reporter | ||
Comment 10•7 years ago
|
||
(In reply to Richard Newman [:rnewman] from comment #8)
> (In reply to Cristian Adrian Giagante from comment #3)
> > Firefox IOS version has this bug (tested on iphone 6S plus)
> > Firefox for Android dont has this bug (tested on samsung s7)
>
> Firefox for iOS doesn't use Gecko; if you see this behavior there, that
> warrants a new bug in that product.
i thinks is a little weird that the same issue is present on the real device iphone on firefox ios, could be possible than the RMA issue is related with firefox ios issue? is exactly the same.
Comment 11•7 years ago
|
||
(In reply to Cristian Adrian Giagante from comment #10)
> i thinks is a little weird that the same issue is present on the real device
> iphone on firefox ios, could be possible than the RMA issue is related with
> firefox ios issue? is exactly the same.
There is essentially no shared code between Firefox on desktop and Firefox for iOS. The latter uses Apple's WKWebView.
It's possible that there are two bugs with similar root causes -- most likely that somewhere we're mis-handling a handoff to a new tab -- but it's vanishingly unlikely that there is a single code bug that is causing both the behavior in RDM and in Firefox for iOS.
(In reply to J. Ryan Stinnett [:jryans] (use ni?) from comment #7)
> What test case are you using to check Firefox for iOS? The steps in comment
> 0 are talking about RDM on desktop.
I can also reproduce this issue manually in Firefox for iOS on a real device.
Comment 12•7 years ago
|
||
I filed Bug 1380202 for iOS. We can scope this down to just RDM on desktop.
No longer blocks: 1380202
Component: DOM → Developer Tools: Responsive Design Mode
Product: Core → Firefox
Version: 54 Branch → Trunk
status-firefox57:
--- → fix-optional
Priority: -- → P3
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•2 years ago
|
Severity: normal → S3
Updated•9 months ago
|
Attachment #9386600 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•