mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
18efcca64b
- Bug 1134800 - Properly cache file matching patterns; r=glandium (0c65935e9) - Bug 1136177 - Amount by mouse wheel scrolling is wrong. r=jimm (6cd8824a3) - Bug 1055369 - Assertion failure: !handle || !handle->IsDoomed(). r=honzab (696f6d801) - Bug 1132728 - Don't draw focus rings on b2g. r=fabrice,bz (0bf2719a2) - Bug 1133201 - part 1 - treat null links in BrowserUtils.linkHasNoReferrer as specifying rel="noreferrer"; r=Gijs,mconley (97031e93c) - Bug 906190 - Persist 'disable protection' option for Mixed Content Blocker in child tabs - tabbrowser part. r=gavin (7467fee83) - Bug 947895 - [e10s] Null check browser.docShell in context-menu Open in new tab. r=gavin (5236b883e) - Bug 1038604 - Rename disableMCB to allowMixedContent. r=dao (2df2b924b) - Bug 1151349 - Make lldb ns(Int)Region summary handle the numRects==0 case. r=jrmuizel (19be5e2c0) - Bug 1146585 - Add a test for Cache.delete; r=bkelly (db28bcc13) - Bug 899222 - Make about:home work via message passing (r=felipe) Bug 900865: Make about:home call nsISearchEngine.getSubmission for all searches. r=gavin (15f8ae2f8) - Bug 910523 - about:home now takes into account async startup of SessionRestore;r=felipe (ceaa0687c) - Bug 927132 - Fix about:home in e10s (r=mdeboer) (53c586ee2) - Bug 897062 - Handle special clicks in e10s. r=felipe,smaug (7ec4573c8) - Bug 899348 - Implement about:tabcrashed page. r=jaws (547bb3e7c) - Bug 899348 - Dispatch an event when an out-of-process browser crashes and display an error page when that occurs (missing parts) (88c87ce75) - Bug 897066 - In e10s builds, some pages should be loaded in the chrome process (r=gavin) (4cc0f8ed5) - Bug 1038811 - Push Notifications - WebIDL changes. r=nsm. sr=jst (2ed030bf3) - Bug 1038811 - Push Notifications - ServiceWorker changes, push event implementation. r=nsm (6313c8c10) - reinstantiate file as of 2015-02-05 (7f12724c8) - Bug 1038811 - Push Notifications - Tests. r=nsm (cbac31308) - Bug 1038811 - Push Notifications - Allow MOZ_DISABLE_NONLOCAL_CONNECTIONS for push subsuite. r=ahalberstadt/jgriffin (859e182ce) - Bug 1038811 - Push Notifications - Push implementation changes. r=nsm (161a739f4) - Bug 898170 - Avoid swapping docshells in e10s mode (r=felipe) (55e96d59a) - Bug 862078 - Use an about:config preference to control multiprocess browsing, part 2 (r=felipe) [missing bits] (9fac04b17) - Bug 666809 - Support SecurityUI in e10s mode. r=felipe f=gavin [missing bits] (0e7aa1368) - Bug 691610 - e10s support for useDefaultIcon. r=felipe sr=smaug (cbf7e5341) - Bug 897066 - Underline tab titles if the tab is remote (r=gavin) [+ followup fix] (2eda1d81e) - Bug 899348 - Make reload of the about:tabcrashed work as expected. r=jaws (72843ef8f) - Bug 1133846 - Add missing arguments to logging call in ActivateTimeoutTick. r=mcmanus (a784a7ce8) - Bug 1135682 - Do not update the all MediaStreamGraph if it's not dirty, r=padenot (49eeeeef5) - Bug 1135255 - Fix mozdevice tempfile handling on Windows. r=gbrown (53a2353bd) - Bug 1134735 - Don't use tee->InitAsync in nsHttpChannel::InstallCacheListener when using cache2, r=michal (3fa833982) - Bug 1132081 - Speed up ConvertHostARGBRow() in the PNG encoder. r=jmuizelaar (6b7890586) - pointer style before patch (3336fab8f) - Bug 1135100 - Don't update GC thing pointers that haven't changed after marking r=terrence (0df3ea820)
83 lines
3.0 KiB
JavaScript
83 lines
3.0 KiB
JavaScript
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
"use strict";
|
|
|
|
let Cc = Components.classes;
|
|
let Ci = Components.interfaces;
|
|
let Cu = Components.utils;
|
|
|
|
this.EXPORTED_SYMBOLS = [ "ContentClick" ];
|
|
|
|
Cu.import("resource:///modules/PlacesUIUtils.jsm");
|
|
Cu.import("resource://gre/modules/PrivateBrowsingUtils.jsm");
|
|
Cu.import("resource://gre/modules/Services.jsm");
|
|
|
|
let ContentClick = {
|
|
init: function() {
|
|
let mm = Cc["@mozilla.org/globalmessagemanager;1"].getService(Ci.nsIMessageListenerManager);
|
|
mm.addMessageListener("Content:Click", this);
|
|
},
|
|
|
|
receiveMessage: function (message) {
|
|
switch (message.name) {
|
|
case "Content:Click":
|
|
this.contentAreaClick(message.json, message.target)
|
|
break;
|
|
}
|
|
},
|
|
|
|
contentAreaClick: function (json, browser) {
|
|
// This is heavily based on contentAreaClick from browser.js (Bug 903016)
|
|
// The json is set up in a way to look like an Event.
|
|
let window = browser.ownerDocument.defaultView;
|
|
|
|
if (!json.href) {
|
|
// Might be middle mouse navigation.
|
|
if (Services.prefs.getBoolPref("middlemouse.contentLoadURL") &&
|
|
!Services.prefs.getBoolPref("general.autoScroll")) {
|
|
window.middleMousePaste(json);
|
|
}
|
|
return;
|
|
}
|
|
|
|
if (json.bookmark) {
|
|
// This is the Opera convention for a special link that, when clicked,
|
|
// allows to add a sidebar panel. The link's title attribute contains
|
|
// the title that should be used for the sidebar panel.
|
|
PlacesUIUtils.showBookmarkDialog({ action: "add"
|
|
, type: "bookmark"
|
|
, uri: Services.io.newURI(json.href, null, null)
|
|
, title: json.title
|
|
, loadBookmarkInSidebar: true
|
|
, hiddenRows: [ "description"
|
|
, "location"
|
|
, "keyword" ]
|
|
}, window);
|
|
return;
|
|
}
|
|
|
|
// Note: We don't need the sidebar code here.
|
|
|
|
// This part is based on handleLinkClick.
|
|
var where = window.whereToOpenLink(json);
|
|
if (where == "current")
|
|
return false;
|
|
|
|
// Todo(903022): code for where == save
|
|
|
|
window.openLinkIn(json.href, where, { referrerURI: browser.documentURI,
|
|
charset: browser.characterSet });
|
|
|
|
// Mark the page as a user followed link. This is done so that history can
|
|
// distinguish automatic embed visits from user activated ones. For example
|
|
// pages loaded in frames are embed visits and lost with the session, while
|
|
// visits across frames should be preserved.
|
|
try {
|
|
if (!PrivateBrowsingUtils.isWindowPrivate(window))
|
|
PlacesUIUtils.markPageAsFollowedLink(href);
|
|
} catch (ex) { /* Skip invalid URIs. */ }
|
|
}
|
|
};
|