Possible IE Mode bug - window.open with pdf target causes Edge to adjust zoom

%3CLINGO-SUB%20id%3D%22lingo-sub-1597664%22%20slang%3D%22en-US%22%3EPossible%20IE%20Mode%20bug%20-%20window.open%20with%20pdf%20target%20causes%20Edge%20to%20adjust%20zoom%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1597664%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20recently%20deployed%20Edge%20to%20our%20organization%2C%20and%20while%20most%20things%20are%20working%20great%2C%20we%20noticed%20some%20strange%20behavior%20that%20got%20introduced%20in%20v84%20when%20Edge%20gained%20the%20ability%20to%20remember%20a%20user's%20zoom%20preference%20on%20IE%20Mode%20sites.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EWe%20have%20several%20web%20apps%20we%20run%20in%20IE%20Mode%20that%20use%20an%20onclick%20window.open%20to%20display%20a%20PDF%20in%20a%20new%20popup%20window.%20Here%20is%20an%20example%20that%20would%20(hopefully)%20allow%20you%20to%20duplicate%20the%20issue%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3E%26lt%3B%3C%2FSPAN%3E%3CSPAN%3Einput%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Etype%3C%2FSPAN%3E%3CSPAN%3E%3D%3C%2FSPAN%3E%3CSPAN%3E%22button%22%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Eonclick%3C%2FSPAN%3E%3CSPAN%3E%3D%3C%2FSPAN%3E%3CSPAN%3E%22%3C%2FSPAN%3E%3CSPAN%3Ewindow%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Eopen%3C%2FSPAN%3E%3CSPAN%3E('test.pdf'%2C%26nbsp%3B'_blank'%2C%20'resizable')%3B%3C%2FSPAN%3E%3CSPAN%3E%22%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Evalue%3C%2FSPAN%3E%3CSPAN%3E%3D%3C%2FSPAN%3E%3CSPAN%3E%22click%26nbsp%3Bme%22%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%2F%26gt%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EWhen%20the%20user%20clicks%20the%20button%2C%20the%20zoom%20level%20is%20automatically%20adjusted.%20If%20the%20parent%20site%20was%20on%20the%20same%20subdomain%20as%20the%20new%20popup%2C%20Edge%20saves%20the%20new%20zoom%20setting%20as%20their%20preference.%20So%20the%20next%20time%20they%20load%20the%20parent%20site%2C%20it%20is%20zoomed%20out%20relative%20to%20their%20preference.%20It%20seems%20like%20the%20amount%20the%20zoom%20is%20adjusted%20depends%20on%20the%20user's%20display%20scaling.%20At%20100%25%20display%20scaling%2C%20you%20may%20have%20to%20adjust%20the%20zoom%20to%20a%20value%20higher%20than%20100%25%20to%20notice%20the%20change.%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EI%20have%20gone%20through%20all%20of%20the%20document%20display%20options%20in%20Adobe%20Reader%20to%20try%20and%20keep%20this%20from%20happening%2C%20but%20even%20if%20I%20match%20the%20desired%20zoom%20level%20in%20Reader%20or%20specify%20Actual%20size%2C%20Edge%20zooms%20out%20when%20the%20window%20loads.%20We%20use%20Reader%202017%20normally%2C%20but%20I%20tried%20with%20the%20latest%20Reader%20DC%20and%20got%20the%20same%20result.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EInterestingly%2C%20if%20I%20create%20a%20test%20page%20with%20the%20window.open%20method%20above%20and%20call%20another%20web%20page%20rather%20than%20a%20PDF%2C%20it%20opens%20fine%20without%20zooming%20out.%20So%20I%20believe%20this%20is%20specifically%20related%20to%20Edge's%20handling%20of%20the%20Reader%20plugin%20through%20IE%20Mode%20and%20not%20window.open%20itself.%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EAnyone%20else%20noticing%20this%20issue%2C%20or%20any%20insight%20from%20someone%20who%20works%20on%20IE%20Mode%3F%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EThanks%2C%3C%2FDIV%3E%3CDIV%3EAndrew%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1624122%22%20slang%3D%22en-US%22%3ERe%3A%20Possible%20IE%20Mode%20bug%20-%20window.open%20with%20pdf%20target%20causes%20Edge%20to%20adjust%20zoom%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1624122%22%20slang%3D%22en-US%22%3E%3CP%3EHere%20is%20a%20log%20showing%20the%20zoom%20changing%20without%20user%20interaction.%20The%20redacted%20URLs%20are%20both%20the%20same%2C%20but%20it%20seems%20like%20Edge%20is%20correctly%20reading%20the%20100%25%20zoom%20preference%2C%20then%20pulling%2080%25%20out%20of%20nowhere.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESystem%20used%20has%203%20displays.%202%20at%201440p%20w%2F%20100%25%20scaling%20and%201%201080p%20at%20125%25%20scaling.%20The%20zoom%20changes%20on%20the%201080p%20display.%20I%20believe%20it%20is%20possible%20to%20duplicate%20on%20any%20display%20scaling%20other%20than%20100%25.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%5B17692%3A17376%3A0831%2F153523.492%3AVERBOSE1%3Adual_engine_tab_helper_win.cc(250)%5D%20CheckInternetExplorerNavigationEntry%20URL%20matches%20IE11%20or%20NEUTRAL%20rule%20on%20sitelist%3A%20%5BREDACTED%5D%3CBR%20%2F%3E%5B17692%3A17376%3A0831%2F153523.492%3AVERBOSE1%3Ainternet_explorer_tab_host_win.cc(661)%5D%20SetZoom%20zoom_percent%20%3D%20100%3CBR%20%2F%3E%5B17692%3A17376%3A0831%2F153523.493%3AVERBOSE1%3Ainternet_explorer_tab_host_win.cc(1076)%5D%20OnDocumentModeSet%20document_mode%20%3D%20110000%3CBR%20%2F%3E%5B17692%3A17376%3A0831%2F153523.493%3AVERBOSE1%3Ainternet_explorer_tab_host_win.cc(1261)%5D%20OnHasBeforeUnloadChanged%20has_before_unload%20%3D%200%3CBR%20%2F%3E%5B17692%3A17376%3A0831%2F153523.513%3AVERBOSE1%3Ainternet_explorer_focus_watcher_win.cc(39)%5D%20IE%20focused%3A0000000000111006%20IE%20window%3A00000000006B165E%3CBR%20%2F%3E%5B17692%3A17376%3A0831%2F153523.523%3AVERBOSE1%3Ainternet_explorer_tab_host_win.cc(483)%5D%20OnLoadingActivityChanged%20is_loading%20%3D%201%3CBR%20%2F%3E%5B17692%3A17376%3A0831%2F153523.523%3AVERBOSE1%3Ainternet_explorer_tab_host_win.cc(453)%5D%20OnFinishedSetFocus%20old%20focusing_ie_timer_%20running%20%3D%201%20browser_window%20%3D%2000000000006B165E%20focus%20%3D%200000000000111006%3CBR%20%2F%3E%5B17692%3A17376%3A0831%2F153523.541%3AVERBOSE1%3Ainternet_explorer_tab_host_win.cc(511)%5D%20RequestHostWindowFocus%20is_focused%20%3D%201%3CBR%20%2F%3E%5B928%3A4832%3A0831%2F153523.617%3AVERBOSE1%3Anetwork_delegate.cc(32)%5D%20NetworkDelegate%3A%3ANotifyBeforeURLRequest%3A%20%3CA%20href%3D%22https%3A%2F%2Fbusiness.bing.com%2Fapi%2Fv3%2Fbookmarks%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fbusiness.bing.com%2Fapi%2Fv3%2Fbookmarks%3C%2FA%3E%3CBR%20%2F%3E%5B928%3A4832%3A0831%2F153523.824%3AVERBOSE1%3Anetwork_delegate.cc(32)%5D%20NetworkDelegate%3A%3ANotifyBeforeURLRequest%3A%20%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fme%2Fpeople%3F%24top%3D1500%26amp%3B%24select%3Did%2CdisplayName%2CjobTitle%26amp%3B%24filter%3DpersonType%2Fclass%2520eq%2520%2527Person%2527%2520and%2520personType%2Fsubclass%2520eq%2520%2527OrganizationUser%2527%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fme%2Fpeople%3F%24top%3D1500%26amp%3B%24select%3Did%2CdisplayName%2CjobTitle%26amp%3B%24filter%3DpersonType%2Fclass%2520eq%2520%2527Person%2527%2520and%2520personType%2Fsubclass%2520eq%2520%2527OrganizationUser%2527%3C%2FA%3E%3CBR%20%2F%3E%5B17692%3A17376%3A0831%2F153524.493%3AVERBOSE1%3Ainternet_explorer_tab_host_win.cc(1261)%5D%20OnHasBeforeUnloadChanged%20has_before_unload%20%3D%201%3CBR%20%2F%3E%5B17692%3A17376%3A0831%2F153524.499%3AVERBOSE1%3Ainternet_explorer_tab_host_win.cc(1063)%5D%20OnZoomChanged%20zoom_percent%20%3D%20100%3CBR%20%2F%3E%5B17692%3A17376%3A0831%2F153524.553%3AVERBOSE1%3Ainternet_explorer_tab_host_win.cc(383)%5D%20InternetExplorerDidNavigate%20pending_nav_entry_id_%20%3D%200%3CBR%20%2F%3E%5B17692%3A17376%3A0831%2F153524.557%3AVERBOSE1%3Adual_engine_tab_helper_win.cc(250)%5D%20CheckInternetExplorerNavigationEntry%20URL%20matches%20IE11%20or%20NEUTRAL%20rule%20on%20sitelist%3A%20%5BREDACTED%5D%3CBR%20%2F%3E%5B17692%3A17376%3A0831%2F153524.558%3AVERBOSE1%3Ainternet_explorer_tab_host_win.cc(661)%5D%20SetZoom%20zoom_percent%20%3D%2080%3CBR%20%2F%3E%5B17692%3A17376%3A0831%2F153524.571%3AVERBOSE1%3Ainternet_explorer_tab_host_win.cc(1076)%5D%20OnDocumentModeSet%20document_mode%20%3D%200%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1625970%22%20slang%3D%22en-US%22%3ERe%3A%20Possible%20IE%20Mode%20bug%20-%20window.open%20with%20pdf%20target%20causes%20Edge%20to%20adjust%20zoom%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1625970%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F458117%22%20target%3D%22_blank%22%3E%40AndrewSAIF%3C%2FA%3E%26nbsp%3BHi!%26nbsp%3B%20Thanks%20for%20the%20detailed%20information!%26nbsp%3B%26nbsp%3B%3CSPAN%3EI've%20passed%20this%20on%20to%20our%20IE%20Mode%20team%20and%20will%20let%20you%20know%20if%20they%20have%20any%20updates%20or%20insights.%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3E-Kelly%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

Hi all,

 

We recently deployed Edge to our organization, and while most things are working great, we noticed some strange behavior that got introduced in v84 when Edge gained the ability to remember a user's zoom preference on IE Mode sites. 

We have several web apps we run in IE Mode that use an onclick window.open to display a PDF in a new popup window. Here is an example that would (hopefully) allow you to duplicate the issue:

 

<input type="button" onclick="window.open('test.pdf', '_blank', 'resizable');" value="click me" />
 
When the user clicks the button, the zoom level is automatically adjusted. If the parent site was on the same subdomain as the new popup, Edge saves the new zoom setting as their preference. So the next time they load the parent site, it is zoomed out relative to their preference. It seems like the amount the zoom is adjusted depends on the user's display scaling. At 100% display scaling, you may have to adjust the zoom to a value higher than 100% to notice the change. 
 
I have gone through all of the document display options in Adobe Reader to try and keep this from happening, but even if I match the desired zoom level in Reader or specify Actual size, Edge zooms out when the window loads. We use Reader 2017 normally, but I tried with the latest Reader DC and got the same result. 

Interestingly, if I create a test page with the window.open method above and call another web page rather than a PDF, it opens fine without zooming out. So I believe this is specifically related to Edge's handling of the Reader plugin through IE Mode and not window.open itself. 
 
Anyone else noticing this issue, or any insight from someone who works on IE Mode? 
 
Thanks,
Andrew
 
2 Replies
Highlighted

Here is a log showing the zoom changing without user interaction. The redacted URLs are both the same, but it seems like Edge is correctly reading the 100% zoom preference, then pulling 80% out of nowhere.

 

System used has 3 displays. 2 at 1440p w/ 100% scaling and 1 1080p at 125% scaling. The zoom changes on the 1080p display. I believe it is possible to duplicate on any display scaling other than 100%. 

 

[17692:17376:0831/153523.492:VERBOSE1:dual_engine_tab_helper_win.cc(250)] CheckInternetExplorerNavigationEntry URL matches IE11 or NEUTRAL rule on sitelist: [REDACTED]
[17692:17376:0831/153523.492:VERBOSE1:internet_explorer_tab_host_win.cc(661)] SetZoom zoom_percent = 100
[17692:17376:0831/153523.493:VERBOSE1:internet_explorer_tab_host_win.cc(1076)] OnDocumentModeSet document_mode = 110000
[17692:17376:0831/153523.493:VERBOSE1:internet_explorer_tab_host_win.cc(1261)] OnHasBeforeUnloadChanged has_before_unload = 0
[17692:17376:0831/153523.513:VERBOSE1:internet_explorer_focus_watcher_win.cc(39)] IE focused:0000000000111006 IE window:00000000006B165E
[17692:17376:0831/153523.523:VERBOSE1:internet_explorer_tab_host_win.cc(483)] OnLoadingActivityChanged is_loading = 1
[17692:17376:0831/153523.523:VERBOSE1:internet_explorer_tab_host_win.cc(453)] OnFinishedSetFocus old focusing_ie_timer_ running = 1 browser_window = 00000000006B165E focus = 0000000000111006
[17692:17376:0831/153523.541:VERBOSE1:internet_explorer_tab_host_win.cc(511)] RequestHostWindowFocus is_focused = 1
[928:4832:0831/153523.617:VERBOSE1:network_delegate.cc(32)] NetworkDelegate::NotifyBeforeURLRequest: https://business.bing.com/api/v3/bookmarks
[928:4832:0831/153523.824:VERBOSE1:network_delegate.cc(32)] NetworkDelegate::NotifyBeforeURLRequest: https://graph.microsoft.com/v1.0/me/people?$top=1500&$select=id,displayName,jobTitle&$filter=personT...
[17692:17376:0831/153524.493:VERBOSE1:internet_explorer_tab_host_win.cc(1261)] OnHasBeforeUnloadChanged has_before_unload = 1
[17692:17376:0831/153524.499:VERBOSE1:internet_explorer_tab_host_win.cc(1063)] OnZoomChanged zoom_percent = 100
[17692:17376:0831/153524.553:VERBOSE1:internet_explorer_tab_host_win.cc(383)] InternetExplorerDidNavigate pending_nav_entry_id_ = 0
[17692:17376:0831/153524.557:VERBOSE1:dual_engine_tab_helper_win.cc(250)] CheckInternetExplorerNavigationEntry URL matches IE11 or NEUTRAL rule on sitelist: [REDACTED]
[17692:17376:0831/153524.558:VERBOSE1:internet_explorer_tab_host_win.cc(661)] SetZoom zoom_percent = 80
[17692:17376:0831/153524.571:VERBOSE1:internet_explorer_tab_host_win.cc(1076)] OnDocumentModeSet document_mode = 0

Highlighted

@AndrewSAIF Hi!  Thanks for the detailed information!  I've passed this on to our IE Mode team and will let you know if they have any updates or insights.  

 

-Kelly