Skip to content

Commit

Permalink
[embedlite] Enable DNS prefetching
Browse files Browse the repository at this point in the history
  • Loading branch information
rainemak committed Jan 10, 2019
1 parent 3336d6a commit d3f701d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions embedding/embedlite/embedshared/EmbedLiteViewBaseChild.cpp
Expand Up @@ -21,6 +21,7 @@
#include "nsIFocusManager.h"
#include "nsFocusManager.h"
#include "nsIWebBrowserChrome.h"
#include "nsIWebBrowserSetup.h"
#include "nsRefreshDriver.h"
#include "nsIDOMWindowUtils.h"
#include "nsPIDOMWindow.h"
Expand Down Expand Up @@ -190,6 +191,12 @@ EmbedLiteViewBaseChild::InitGeckoWindow(const uint32_t& parentId, const bool& is
return;
}


nsCOMPtr<nsIWebBrowserSetup> webBrowserSetup = do_QueryInterface(baseWindow);
if (webBrowserSetup) {
webBrowserSetup->SetProperty(nsIWebBrowserSetup::SETUP_ALLOW_DNS_PREFETCH, true);
}

LayoutDeviceIntRect bounds;
mWindow->GetWidget()->GetBounds(bounds);
rv = baseWindow->InitWindow(0, mWidget, 0, 0, bounds.width, bounds.height);
Expand Down

0 comments on commit d3f701d

Please sign in to comment.