Skip to content

Commit

Permalink
Merge mozilla-central to autoland
Browse files Browse the repository at this point in the history
  • Loading branch information
IrisHsiao committed May 4, 2017
2 parents 06b764c + e71485e commit fa6e98e
Show file tree
Hide file tree
Showing 105 changed files with 1,848 additions and 823 deletions.
4 changes: 4 additions & 0 deletions browser/app/profile/firefox.js
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,10 @@ pref("plugin.defaultXpi.state", 2);
pref("plugin.state.flash", 2);
pref("plugin.state.java", 1);

#ifdef NIGHTLY_BUILD
pref("plugins.flashBlock.enabled", true);
#endif

#ifdef XP_WIN
pref("browser.preferences.instantApply", false);
#else
Expand Down
6 changes: 3 additions & 3 deletions browser/base/content/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1539,13 +1539,13 @@ var gBrowserInit = {
Cu.reportError("Could not end startup crash tracking: " + ex);
}

// Delay this a minute because there's no rush
setTimeout(() => {
// Delay this a minute into the idle time because there's no rush.
requestIdleCallback(() => {
this.gmpInstallManager = new GMPInstallManager();
// We don't really care about the results, if someone is interested they
// can check the log.
this.gmpInstallManager.simpleCheckAndInstall().then(null, () => {});
}, 1000 * 60);
}, {timeout: 1000 * 60});

// Report via telemetry whether we're able to play MP4/H.264/AAC video.
// We suspect that some Windows users have a broken or have not installed
Expand Down
3 changes: 2 additions & 1 deletion browser/base/content/test/general/browser.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ support-files =
browser_registerProtocolHandler_notification.html
browser_star_hsts.sjs
browser_tab_dragdrop2_frame1.xul
browser_tab_dragdrop_embed.html
browser_web_channel.html
browser_web_channel_iframe.html
bug592338.html
Expand Down Expand Up @@ -495,7 +496,7 @@ support-files =
[browser_tab_drag_drop_perwindow.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_tab_dragdrop.js]
skip-if = buildapp == 'mulet' || (e10s && (debug || os == 'linux')) # Bug 1312436
skip-if = buildapp == 'mulet' || (e10s && debug) # Bug 1312436
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
[browser_tab_dragdrop2.js]
# DO NOT ADD MORE TESTS HERE. USE A TOPICAL DIRECTORY INSTEAD.
Expand Down
5 changes: 2 additions & 3 deletions browser/base/content/test/general/browser_tab_dragdrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function loadURI(tab, url) {
// in the page which tells us the plugin hasn't been reinitialized.
function* cacheObjectValue(browser) {
yield ContentTask.spawn(browser, null, function*() {
let plugin = content.document.wrappedJSObject.body.firstChild;
let plugin = content.document.getElementById("p").wrappedJSObject;
info(`plugin is ${plugin}`);
let win = content.document.defaultView;
info(`win is ${win}`);
Expand Down Expand Up @@ -101,7 +101,6 @@ function checkObjectValue(browser) {
}

add_task(function*() {
let embed = '<embed type="application/x-test" allowscriptaccess="always" allowfullscreen="true" wmode="window" width="640" height="480"></embed>'
setTestPluginEnabledState(Ci.nsIPluginTag.STATE_ENABLED);

// create a few tabs
Expand All @@ -117,7 +116,7 @@ add_task(function*() {
yield loadURI(tabs[1], "data:text/html;charset=utf-8,<title>tab1</title><body>tab1<iframe>");
yield loadURI(tabs[2], "data:text/plain;charset=utf-8,tab2");
yield loadURI(tabs[3], "data:text/html;charset=utf-8,<title>tab3</title><body>tab3<iframe>");
yield loadURI(tabs[4], "data:text/html;charset=utf-8,<body onload='clicks=0' onclick='++clicks'>" + embed);
yield loadURI(tabs[4], "http://example.com/browser/browser/base/content/test/general/browser_tab_dragdrop_embed.html");
yield BrowserTestUtils.switchTab(gBrowser, tabs[3]);

swapTabsAndCloseOther(2, 3); // now: 0 1 2 4
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<body onload="clicks=0" onclick="++clicks">
<embed type="application/x-test" allowscriptaccess="always" allowfullscreen="true" wmode="window" width="640" height="480" id="p"></embed>
Loading

0 comments on commit fa6e98e

Please sign in to comment.