mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
merge fx-team to mozilla-central a=merge
This commit is contained in:
commit
392df82c41
@ -209,7 +209,6 @@ loop.store = loop.store || {};
|
||||
|
||||
/**
|
||||
* Executed when the user switches accounts.
|
||||
*
|
||||
*/
|
||||
_onRoomsRefresh: function() {
|
||||
this.dispatchAction(new sharedActions.UpdateRoomList({
|
||||
@ -340,7 +339,7 @@ loop.store = loop.store || {};
|
||||
emailRoomUrl: function(actionData) {
|
||||
var from = actionData.from;
|
||||
loop.shared.utils.composeCallUrlEmail(actionData.roomUrl, null,
|
||||
actionData.roomDescription, from);
|
||||
actionData.roomDescription);
|
||||
|
||||
var bucket = this._constants.SHARING_ROOM_URL["EMAIL_FROM_" + (from || "").toUpperCase()];
|
||||
if (typeof bucket === "undefined") {
|
||||
@ -386,10 +385,8 @@ loop.store = loop.store || {};
|
||||
|
||||
/**
|
||||
* Open the share panel to add a Social share provider.
|
||||
*
|
||||
* @param {sharedActions.AddSocialShareProvider} actionData The action data.
|
||||
*/
|
||||
addSocialShareProvider: function(actionData) {
|
||||
addSocialShareProvider: function() {
|
||||
loop.request("AddSocialShareProvider");
|
||||
},
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
var loop = loop || {};
|
||||
loop.shared = loop.shared || {};
|
||||
loop.shared.views = loop.shared.views || {};
|
||||
loop.shared.views.LinkifiedTextView = (function(mozL10n) {
|
||||
loop.shared.views.LinkifiedTextView = (function() {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
@ -113,4 +113,4 @@ loop.shared.views.LinkifiedTextView = (function(mozL10n) {
|
||||
|
||||
return LinkifiedTextView;
|
||||
|
||||
})(navigator.mozL10n || document.mozL10n);
|
||||
})();
|
||||
|
@ -5,7 +5,7 @@
|
||||
var loop = loop || {};
|
||||
loop.shared = loop.shared || {};
|
||||
loop.shared.views = loop.shared.views || {};
|
||||
loop.shared.views.LinkifiedTextView = (function(mozL10n) {
|
||||
loop.shared.views.LinkifiedTextView = (function() {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
@ -113,4 +113,4 @@ loop.shared.views.LinkifiedTextView = (function(mozL10n) {
|
||||
|
||||
return LinkifiedTextView;
|
||||
|
||||
})(navigator.mozL10n || document.mozL10n);
|
||||
})();
|
||||
|
@ -694,7 +694,7 @@ loop.OTSdkDriver = (function() {
|
||||
}
|
||||
}.bind(this),
|
||||
|
||||
close: function(e) {
|
||||
close: function() {
|
||||
// XXX We probably want to dispatch and handle this somehow.
|
||||
console.log("Subscribed data channel closed!");
|
||||
}
|
||||
@ -713,10 +713,8 @@ loop.OTSdkDriver = (function() {
|
||||
* that the remote client is setup for data
|
||||
* channels. Getting the data channel for the subscriber is handled
|
||||
* separately when the subscription completes.
|
||||
*
|
||||
* @param {OT.SignalEvent} event Details of the signal received.
|
||||
*/
|
||||
_onReadyForDataChannel: function(event) {
|
||||
_onReadyForDataChannel: function() {
|
||||
// If we don't want data channels, just ignore the message. We haven't
|
||||
// send the other side a message, so it won't display anything.
|
||||
if (!this._useDataChannels) {
|
||||
@ -734,7 +732,7 @@ loop.OTSdkDriver = (function() {
|
||||
this._publisherChannel = channel;
|
||||
|
||||
channel.on({
|
||||
close: function(e) {
|
||||
close: function() {
|
||||
// XXX We probably want to dispatch and handle this somehow.
|
||||
console.log("Published data channel closed!");
|
||||
}
|
||||
@ -991,12 +989,10 @@ loop.OTSdkDriver = (function() {
|
||||
* which to copy the stream when attaching it to visible video element
|
||||
* that the views control directly.
|
||||
*
|
||||
* @param event {OT.VideoEnabledChangedEvent} from the SDK
|
||||
*
|
||||
* @see https://tokbox.com/opentok/libraries/client/js/reference/VideoEnabledChangedEvent.html
|
||||
* @private
|
||||
*/
|
||||
_onVideoEnabled: function(event) {
|
||||
_onVideoEnabled: function() {
|
||||
var sdkSubscriberVideo = this._mockSubscribeEl.querySelector("video");
|
||||
if (!sdkSubscriberVideo) {
|
||||
console.error("sdkSubscriberVideo unexpectedly falsy!");
|
||||
@ -1011,12 +1007,10 @@ loop.OTSdkDriver = (function() {
|
||||
* Handle the SDK disabling of remote video by dispatching the
|
||||
* appropriate event.
|
||||
*
|
||||
* @param event {OT.VideoEnabledChangedEvent) from the SDK
|
||||
*
|
||||
* @see https://tokbox.com/opentok/libraries/client/js/reference/VideoEnabledChangedEvent.html
|
||||
* @private
|
||||
*/
|
||||
_onVideoDisabled: function(event) {
|
||||
_onVideoDisabled: function() {
|
||||
this.dispatcher.dispatch(new sharedActions.RemoteVideoStatus({
|
||||
videoEnabled: false
|
||||
}));
|
||||
|
@ -8,8 +8,6 @@ loop.store = loop.store || {};
|
||||
loop.store.TextChatStore = (function() {
|
||||
"use strict";
|
||||
|
||||
var sharedActions = loop.shared.actions;
|
||||
|
||||
var CHAT_MESSAGE_TYPES = loop.store.CHAT_MESSAGE_TYPES = {
|
||||
RECEIVED: "recv",
|
||||
SENT: "sent",
|
||||
|
@ -397,9 +397,8 @@ var inChrome = typeof Components != "undefined" && "utils" in Components;
|
||||
* @param {String} callUrl The call URL.
|
||||
* @param {String} [recipient] The recipient email address (optional).
|
||||
* @param {String} [contextDescription] The context description (optional).
|
||||
* @param {String} [from] The area from which this function is called.
|
||||
*/
|
||||
function composeCallUrlEmail(callUrl, recipient, contextDescription, from) {
|
||||
function composeCallUrlEmail(callUrl, recipient, contextDescription) {
|
||||
if (!isDesktop()) {
|
||||
console.warn("composeCallUrlEmail isn't available for Loop standalone.");
|
||||
return;
|
||||
|
@ -12,7 +12,6 @@ loop.store = loop.store || {};
|
||||
loop.store.StandaloneAppStore = (function() {
|
||||
"use strict";
|
||||
|
||||
var sharedActions = loop.shared.actions;
|
||||
var sharedUtils = loop.shared.utils;
|
||||
|
||||
var CALL_REGEXP = /\/c\/([\w\-]+)$/;
|
||||
|
@ -11,10 +11,7 @@ loop.webapp = (function(_, OT, mozL10n) {
|
||||
|
||||
var sharedActions = loop.shared.actions;
|
||||
var sharedMixins = loop.shared.mixins;
|
||||
var sharedModels = loop.shared.models;
|
||||
var sharedViews = loop.shared.views;
|
||||
var sharedUtils = loop.shared.utils;
|
||||
var WEBSOCKET_REASONS = loop.shared.utils.WEBSOCKET_REASONS;
|
||||
|
||||
/**
|
||||
* Homepage view.
|
||||
@ -175,11 +172,10 @@ loop.webapp = (function(_, OT, mozL10n) {
|
||||
* App initialization.
|
||||
*/
|
||||
function init() {
|
||||
var standaloneMozLoop = new loop.StandaloneMozLoop({
|
||||
loop.StandaloneMozLoop({
|
||||
baseServerUrl: loop.config.serverUrl
|
||||
});
|
||||
|
||||
// New flux items.
|
||||
var dispatcher = new loop.Dispatcher();
|
||||
var sdkDriver = new loop.OTSdkDriver({
|
||||
// For the standalone, always request data channels. If they aren't
|
||||
|
@ -11,10 +11,7 @@ loop.webapp = (function(_, OT, mozL10n) {
|
||||
|
||||
var sharedActions = loop.shared.actions;
|
||||
var sharedMixins = loop.shared.mixins;
|
||||
var sharedModels = loop.shared.models;
|
||||
var sharedViews = loop.shared.views;
|
||||
var sharedUtils = loop.shared.utils;
|
||||
var WEBSOCKET_REASONS = loop.shared.utils.WEBSOCKET_REASONS;
|
||||
|
||||
/**
|
||||
* Homepage view.
|
||||
@ -175,11 +172,10 @@ loop.webapp = (function(_, OT, mozL10n) {
|
||||
* App initialization.
|
||||
*/
|
||||
function init() {
|
||||
var standaloneMozLoop = new loop.StandaloneMozLoop({
|
||||
loop.StandaloneMozLoop({
|
||||
baseServerUrl: loop.config.serverUrl
|
||||
});
|
||||
|
||||
// New flux items.
|
||||
var dispatcher = new loop.Dispatcher();
|
||||
var sdkDriver = new loop.OTSdkDriver({
|
||||
// For the standalone, always request data channels. If they aren't
|
||||
|
@ -23,7 +23,7 @@ describe("loop.feedbackViews", function() {
|
||||
|
||||
describe("FeedbackView", function() {
|
||||
var openURLStub, getLoopPrefStub, feedbackReceivedStub;
|
||||
var fakeURL = "fake.form", mozLoop, view;
|
||||
var fakeURL = "fake.form", view;
|
||||
|
||||
function mountTestComponent(props) {
|
||||
props = _.extend({
|
||||
|
@ -493,7 +493,7 @@ describe("loop.store.RoomStore", function() {
|
||||
|
||||
sinon.assert.calledOnce(sharedUtils.composeCallUrlEmail);
|
||||
sinon.assert.calledWith(sharedUtils.composeCallUrlEmail,
|
||||
"http://invalid", null, undefined, "conversation");
|
||||
"http://invalid", null, undefined);
|
||||
});
|
||||
|
||||
it("should call composeUrlEmail differently with context", function() {
|
||||
@ -509,7 +509,7 @@ describe("loop.store.RoomStore", function() {
|
||||
|
||||
sinon.assert.calledOnce(sharedUtils.composeCallUrlEmail);
|
||||
sinon.assert.calledWithExactly(sharedUtils.composeCallUrlEmail,
|
||||
url, null, description, "conversation");
|
||||
url, null, description);
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -6,7 +6,7 @@ describe("loop.crypto", function() {
|
||||
"use strict";
|
||||
|
||||
var expect = chai.expect;
|
||||
var sandbox, oldCrypto;
|
||||
var sandbox;
|
||||
|
||||
beforeEach(function() {
|
||||
sandbox = sinon.sandbox.create();
|
||||
|
@ -118,7 +118,6 @@ describe("loop.shared.views.LinkifiedTextView", function() {
|
||||
|
||||
it("should cause sendReferrer and suppressTarget props to be ignored",
|
||||
function() {
|
||||
var fakeUrl = "http://example.com";
|
||||
var linkClickHandler = function() {};
|
||||
|
||||
var markup = renderToMarkup("http://example.com", {
|
||||
|
@ -144,7 +144,7 @@ describe("loop.shared.mixins", function() {
|
||||
});
|
||||
|
||||
describe("loop.shared.mixins.DocumentVisibilityMixin", function() {
|
||||
var comp, TestComp, onDocumentVisibleStub, onDocumentHiddenStub;
|
||||
var TestComp, onDocumentVisibleStub, onDocumentHiddenStub;
|
||||
|
||||
beforeEach(function() {
|
||||
onDocumentVisibleStub = sandbox.stub();
|
||||
@ -175,7 +175,7 @@ describe("loop.shared.mixins", function() {
|
||||
function() {
|
||||
setupFakeVisibilityEventDispatcher({ target: { hidden: false } });
|
||||
|
||||
comp = TestUtils.renderIntoDocument(React.createElement(TestComp));
|
||||
TestUtils.renderIntoDocument(React.createElement(TestComp));
|
||||
|
||||
// Twice, because it's also called when the component was mounted.
|
||||
sinon.assert.calledTwice(onDocumentVisibleStub);
|
||||
@ -185,7 +185,7 @@ describe("loop.shared.mixins", function() {
|
||||
function() {
|
||||
setupFakeVisibilityEventDispatcher({ target: { hidden: true } });
|
||||
|
||||
comp = TestUtils.renderIntoDocument(React.createElement(TestComp));
|
||||
TestUtils.renderIntoDocument(React.createElement(TestComp));
|
||||
|
||||
sinon.assert.calledOnce(onDocumentHiddenStub);
|
||||
});
|
||||
@ -221,7 +221,7 @@ describe("loop.shared.mixins", function() {
|
||||
});
|
||||
|
||||
describe("loop.shared.mixins.AudioMixin", function() {
|
||||
var view, fakeAudio, getAudioBlobStub, TestComp;
|
||||
var TestComp, getAudioBlobStub, fakeAudio;
|
||||
|
||||
beforeEach(function() {
|
||||
getAudioBlobStub = sinon.stub().returns(
|
||||
@ -256,7 +256,7 @@ describe("loop.shared.mixins", function() {
|
||||
});
|
||||
|
||||
it("should not play a failure sound when doNotDisturb true", function() {
|
||||
view = TestUtils.renderIntoDocument(React.createElement(TestComp));
|
||||
TestUtils.renderIntoDocument(React.createElement(TestComp));
|
||||
sinon.assert.notCalled(getAudioBlobStub);
|
||||
sinon.assert.notCalled(fakeAudio.play);
|
||||
});
|
||||
@ -265,7 +265,7 @@ describe("loop.shared.mixins", function() {
|
||||
LoopMochaUtils.stubLoopRequest({
|
||||
GetDoNotDisturb: function() { return false; }
|
||||
});
|
||||
view = TestUtils.renderIntoDocument(React.createElement(TestComp));
|
||||
TestUtils.renderIntoDocument(React.createElement(TestComp));
|
||||
sinon.assert.calledOnce(getAudioBlobStub);
|
||||
sinon.assert.calledWithExactly(getAudioBlobStub, "failure");
|
||||
sinon.assert.calledOnce(fakeAudio.play);
|
||||
@ -274,7 +274,7 @@ describe("loop.shared.mixins", function() {
|
||||
});
|
||||
|
||||
describe("loop.shared.mixins.RoomsAudioMixin", function() {
|
||||
var view, fakeAudioMixin, comp;
|
||||
var comp;
|
||||
|
||||
function createTestComponent(initialState) {
|
||||
var TestComp = React.createClass({
|
||||
|
@ -19,15 +19,13 @@ describe("loop.shared.models", function() {
|
||||
});
|
||||
|
||||
describe("NotificationCollection", function() {
|
||||
var collection, notifData, testNotif;
|
||||
var collection;
|
||||
|
||||
beforeEach(function() {
|
||||
collection = new sharedModels.NotificationCollection();
|
||||
sandbox.stub(l10n, "get", function(x, y) {
|
||||
return "translated:" + x + (y ? ":" + y : "");
|
||||
});
|
||||
notifData = { level: "error", message: "plop" };
|
||||
testNotif = new sharedModels.NotificationModel(notifData);
|
||||
});
|
||||
|
||||
describe("#warn", function() {
|
||||
|
@ -751,8 +751,7 @@ describe("loop.OTSdkDriver", function() {
|
||||
});
|
||||
|
||||
describe("Events: general media", function() {
|
||||
var fakeConnection, fakeStream, fakeSubscriberObject,
|
||||
fakeSdkContainerWithVideo, videoElement;
|
||||
var fakeConnection, fakeStream, fakeSubscriberObject, videoElement;
|
||||
|
||||
beforeEach(function() {
|
||||
fakeConnection = "fakeConnection";
|
||||
@ -770,10 +769,6 @@ describe("loop.OTSdkDriver", function() {
|
||||
stream: fakeStream
|
||||
}, Backbone.Events);
|
||||
|
||||
fakeSdkContainerWithVideo = {
|
||||
querySelector: sinon.stub().returns(videoElement)
|
||||
};
|
||||
|
||||
// use a real video element so that these tests correctly reflect
|
||||
// test behavior when run in firefox or chrome
|
||||
videoElement = document.createElement("video");
|
||||
@ -1826,18 +1821,12 @@ describe("loop.OTSdkDriver", function() {
|
||||
});
|
||||
|
||||
describe("Events: screenshare:", function() {
|
||||
var videoElement;
|
||||
|
||||
beforeEach(function() {
|
||||
driver.connectSession(sessionData);
|
||||
|
||||
driver.startScreenShare({
|
||||
videoSource: "window"
|
||||
});
|
||||
|
||||
// use a real video element so that these tests correctly reflect
|
||||
// code behavior when run in whatever browser
|
||||
videoElement = document.createElement("video");
|
||||
});
|
||||
|
||||
describe("accessAllowed", function() {
|
||||
|
@ -6,7 +6,6 @@ describe("loop.store.StandaloneAppStore", function() {
|
||||
|
||||
var expect = chai.expect;
|
||||
var sharedActions = loop.shared.actions;
|
||||
var sharedUtils = loop.shared.utils;
|
||||
var sandbox, dispatcher;
|
||||
|
||||
beforeEach(function() {
|
||||
|
@ -5,7 +5,6 @@
|
||||
describe("loop.store.StandaloneMetricsStore", function() {
|
||||
"use strict";
|
||||
|
||||
var expect = chai.expect;
|
||||
var sandbox, dispatcher, store, fakeActiveRoomStore;
|
||||
|
||||
var sharedActions = loop.shared.actions;
|
||||
|
@ -73,7 +73,7 @@ describe("loop.webapp", function() {
|
||||
});
|
||||
|
||||
describe("WebappRootView", function() {
|
||||
var sdk, conversationModel, client, props, standaloneAppStore;
|
||||
var sdk, standaloneAppStore;
|
||||
var activeRoomStore;
|
||||
|
||||
function mountTestComponent() {
|
||||
@ -160,7 +160,7 @@ describe("loop.webapp", function() {
|
||||
});
|
||||
|
||||
it("should render when not using Firefox", function() {
|
||||
var comp = TestUtils.renderIntoDocument(
|
||||
TestUtils.renderIntoDocument(
|
||||
React.createElement(loop.webapp.PromoteFirefoxView, {
|
||||
isFirefox: false
|
||||
}));
|
||||
|
@ -121,7 +121,7 @@ add_test(function test_reconnect_no_registration() {
|
||||
add_test(function test_ping_websocket() {
|
||||
let pingReceived = false,
|
||||
socketClosed = false;
|
||||
mockWebSocket.defaultMsgHandler = (msg) => {
|
||||
mockWebSocket.defaultMsgHandler = () => {
|
||||
pingReceived = true;
|
||||
// Do not send a ping response.
|
||||
};
|
||||
@ -133,7 +133,7 @@ add_test(function test_ping_websocket() {
|
||||
MozLoopPushHandler.initialize({ mockWebSocket: mockWebSocket });
|
||||
MozLoopPushHandler.register(
|
||||
"test-chan",
|
||||
function(err, url) {
|
||||
function(err) {
|
||||
Assert.equal(err, null, "err should be null to indicate success");
|
||||
waitForCondition(() => pingReceived).then(() => {
|
||||
waitForCondition(() => socketClosed).then(() => {
|
||||
|
@ -57,7 +57,7 @@ add_test(function test_register_success() {
|
||||
});
|
||||
MozLoopService.promiseRegisteredWithServers().then(() => {
|
||||
run_next_test();
|
||||
}, err => {
|
||||
}, () => {
|
||||
do_throw("shouldn't error on a successful request");
|
||||
});
|
||||
});
|
||||
|
@ -35,7 +35,7 @@ add_test(function test_retry_after_failed_push_reg() {
|
||||
yield deferredRegistrations.get(LOOP_SESSION_TYPE.GUEST).then(() => {
|
||||
Assert.ok(true, "The retry of registration succeeded");
|
||||
},
|
||||
(error) => {
|
||||
() => {
|
||||
Assert.ok(false, "The retry of registration should have succeeded");
|
||||
});
|
||||
|
||||
|
@ -23,8 +23,6 @@ const LOOP_INITIAL_DELAY_PREF = "loop.initialDelay";
|
||||
*/
|
||||
|
||||
add_task(function* test_initialize_with_no_guest_rooms_and_no_auth_token() {
|
||||
// Set time to be 2 seconds in the past.
|
||||
var nowSeconds = Date.now() / 1000;
|
||||
Services.prefs.setBoolPref(LOOP_CREATED_ROOM_PREF, false);
|
||||
Services.prefs.clearUserPref(LOOP_FXA_TOKEN_PREF);
|
||||
|
||||
@ -73,7 +71,7 @@ add_task(function* test_initialize_with_invalid_fxa_token() {
|
||||
yield MozLoopService.initialize().then(() => {
|
||||
Assert.ok(false, "Initializing with an invalid token should reject the promise");
|
||||
},
|
||||
(error) => {
|
||||
() => {
|
||||
Assert.equal(MozLoopServiceInternal.pushHandler.registrationPushURL, kEndPointUrl, "Push URL should match");
|
||||
Assert.equal(Services.prefs.getCharPref(LOOP_FXA_TOKEN_PREF), "",
|
||||
"FXA pref should be cleared if token was invalid");
|
||||
|
@ -29,7 +29,7 @@ add_test(function test_registration_returns_hawk_session_token() {
|
||||
" Hawk-Session-Token header contents in loop.hawk-session-token pref");
|
||||
|
||||
run_next_test();
|
||||
}, err => {
|
||||
}, () => {
|
||||
do_throw("shouldn't error on a successful request");
|
||||
});
|
||||
});
|
||||
|
@ -28,7 +28,7 @@ add_test(function test_registration_uses_hawk_session_token() {
|
||||
|
||||
MozLoopService.promiseRegisteredWithServers().then(() => {
|
||||
run_next_test();
|
||||
}, err => {
|
||||
}, () => {
|
||||
do_throw("shouldn't error on a succesful request");
|
||||
});
|
||||
});
|
||||
|
@ -15,6 +15,7 @@ support-files =
|
||||
code_blackboxing_one.js
|
||||
code_blackboxing_three.js
|
||||
code_blackboxing_two.js
|
||||
code_blackboxing_unblackbox.min.js
|
||||
code_breakpoints-break-on-last-line-of-script-on-reload.js
|
||||
code_breakpoints-other-tabs.js
|
||||
code_bug-896139.js
|
||||
@ -51,6 +52,7 @@ support-files =
|
||||
doc_auto-pretty-print-02.html
|
||||
doc_binary_search.html
|
||||
doc_blackboxing.html
|
||||
doc_blackboxing_unblackbox.html
|
||||
doc_breakpoints-break-on-last-line-of-script-on-reload.html
|
||||
doc_breakpoints-other-tabs.html
|
||||
doc_breakpoints-reload.html
|
||||
@ -144,6 +146,7 @@ skip-if = e10s || true # bug 1113935
|
||||
[browser_dbg_blackboxing-04.js]
|
||||
[browser_dbg_blackboxing-05.js]
|
||||
[browser_dbg_blackboxing-06.js]
|
||||
[browser_dbg_blackboxing-07.js]
|
||||
[browser_dbg_breadcrumbs-access.js]
|
||||
[browser_dbg_break-in-anon.js]
|
||||
[browser_dbg_break-on-next.js]
|
||||
|
@ -0,0 +1,49 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
/**
|
||||
* Test that if we unblackbox a source which has been automatically blackboxed
|
||||
* and then refresh, it is still unblackboxed.
|
||||
*/
|
||||
|
||||
const TAB_URL = EXAMPLE_URL + "doc_blackboxing_unblackbox.html";
|
||||
|
||||
var gTab, gPanel, gDebugger;
|
||||
|
||||
function test() {
|
||||
initDebugger(TAB_URL).then(([aTab,, aPanel]) => {
|
||||
gTab = aTab;
|
||||
gPanel = aPanel;
|
||||
gDebugger = gPanel.panelWin;
|
||||
|
||||
waitForSourceShown(gPanel, ".min.js")
|
||||
.then(testBlackBoxSource)
|
||||
.then(testBlackBoxReload)
|
||||
.then(() => closeDebuggerAndFinish(gPanel))
|
||||
.then(null, aError => {
|
||||
ok(false, "Got an error: " + aError.message + "\n" + aError.stack);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function testBlackBoxSource() {
|
||||
const bbButton = getBlackBoxButton(gPanel);
|
||||
ok(bbButton.checked, "Should be black boxed by default");
|
||||
|
||||
return toggleBlackBoxing(gPanel).then(aSource => {
|
||||
ok(!aSource.isBlackBoxed, "The source should no longer be blackboxed.");
|
||||
});
|
||||
}
|
||||
|
||||
function testBlackBoxReload() {
|
||||
return reloadActiveTab(gPanel, gDebugger.EVENTS.SOURCE_SHOWN).then(() => {
|
||||
const selectedSource = getSelectedSourceElement(gPanel);
|
||||
ok(!selectedSource.isBlackBoxed, "The source should not be blackboxed.");
|
||||
});
|
||||
}
|
||||
|
||||
registerCleanupFunction(function() {
|
||||
gTab = null;
|
||||
gPanel = null;
|
||||
gDebugger = null;
|
||||
});
|
1
devtools/client/debugger/test/mochitest/code_blackboxing_unblackbox.min.js
vendored
Normal file
1
devtools/client/debugger/test/mochitest/code_blackboxing_unblackbox.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
function blackboxme(){one()};function one(){};
|
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Debugger test page</title>
|
||||
<script type="text/javascript" src="code_blackboxing_unblackbox.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -312,6 +312,7 @@ devtools.jar:
|
||||
skin/images/vview-lock@2x.png (themes/images/vview-lock@2x.png)
|
||||
skin/images/vview-open-inspector.png (themes/images/vview-open-inspector.png)
|
||||
skin/images/vview-open-inspector@2x.png (themes/images/vview-open-inspector@2x.png)
|
||||
skin/images/sort-arrows.svg (themes/images/sort-arrows.svg)
|
||||
skin/images/cubic-bezier-swatch.png (themes/images/cubic-bezier-swatch.png)
|
||||
skin/images/cubic-bezier-swatch@2x.png (themes/images/cubic-bezier-swatch@2x.png)
|
||||
skin/images/undock@2x.png (themes/images/undock@2x.png)
|
||||
|
@ -1006,6 +1006,7 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, {
|
||||
if (header != target) {
|
||||
header.removeAttribute("sorted");
|
||||
header.removeAttribute("tooltiptext");
|
||||
header.parentNode.removeAttribute("active");
|
||||
}
|
||||
}
|
||||
|
||||
@ -1018,6 +1019,8 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, {
|
||||
target.setAttribute("sorted", direction = "ascending");
|
||||
target.setAttribute("tooltiptext", L10N.getStr("networkMenu.sortedAsc"));
|
||||
}
|
||||
// Used to style the next column.
|
||||
target.parentNode.setAttribute("active", "true");
|
||||
}
|
||||
|
||||
// Sort by whatever was requested.
|
||||
@ -1676,14 +1679,14 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, {
|
||||
break;
|
||||
}
|
||||
case "status": {
|
||||
let node = $(".requests-menu-status", target);
|
||||
let node = $(".requests-menu-status-icon", target);
|
||||
node.setAttribute("code", aValue.cached ? "cached" : aValue.status);
|
||||
let codeNode = $(".requests-menu-status-code", target);
|
||||
codeNode.setAttribute("value", aValue.status);
|
||||
break;
|
||||
}
|
||||
case "statusText": {
|
||||
let node = $(".requests-menu-status-and-method", target);
|
||||
let node = $(".requests-menu-status", target);
|
||||
node.setAttribute("tooltiptext", aValue);
|
||||
break;
|
||||
}
|
||||
@ -1850,7 +1853,7 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, {
|
||||
* The current waterfall scale.
|
||||
*/
|
||||
_showWaterfallDivisionLabels: function(aScale) {
|
||||
let container = $("#requests-menu-waterfall-button");
|
||||
let container = $("#requests-menu-waterfall-label-wrapper");
|
||||
let availableWidth = this._waterfallWidth - REQUESTS_WATERFALL_SAFE_BOUNDS;
|
||||
|
||||
// Nuke all existing labels.
|
||||
@ -1910,6 +1913,8 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, {
|
||||
fragment.appendChild(node);
|
||||
}
|
||||
container.appendChild(fragment);
|
||||
|
||||
container.className = 'requests-menu-waterfall-visible';
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -101,18 +101,24 @@
|
||||
class="devtools-toolbar"
|
||||
align="center">
|
||||
<hbox id="toolbar-labels" flex="1">
|
||||
<hbox id="requests-menu-status-and-method-header-box"
|
||||
class="requests-menu-header requests-menu-status-and-method"
|
||||
<hbox id="requests-menu-status-header-box"
|
||||
class="requests-menu-header requests-menu-status"
|
||||
align="center">
|
||||
<button id="requests-menu-status-button"
|
||||
class="requests-menu-header-button requests-menu-status"
|
||||
data-key="status"
|
||||
label="&netmonitorUI.toolbar.status2;">
|
||||
label="&netmonitorUI.toolbar.status2;"
|
||||
flex="1">
|
||||
</button>
|
||||
</hbox>
|
||||
<hbox id="requests-menu-method-header-box"
|
||||
class="requests-menu-header requests-menu-method"
|
||||
align="center">
|
||||
<button id="requests-menu-method-button"
|
||||
class="requests-menu-header-button requests-menu-method"
|
||||
data-key="method"
|
||||
label="&netmonitorUI.toolbar.method;"
|
||||
crop="end"
|
||||
flex="1">
|
||||
</button>
|
||||
</hbox>
|
||||
@ -123,6 +129,7 @@
|
||||
class="requests-menu-header-button requests-menu-file"
|
||||
data-key="file"
|
||||
label="&netmonitorUI.toolbar.file;"
|
||||
crop="end"
|
||||
flex="1">
|
||||
</button>
|
||||
</hbox>
|
||||
@ -133,6 +140,7 @@
|
||||
class="requests-menu-header-button requests-menu-security-and-domain"
|
||||
data-key="domain"
|
||||
label="&netmonitorUI.toolbar.domain;"
|
||||
crop="end"
|
||||
flex="1">
|
||||
</button>
|
||||
</hbox>
|
||||
@ -143,6 +151,7 @@
|
||||
class="requests-menu-header-button requests-menu-type"
|
||||
data-key="type"
|
||||
label="&netmonitorUI.toolbar.type;"
|
||||
crop="end"
|
||||
flex="1">
|
||||
</button>
|
||||
</hbox>
|
||||
@ -153,6 +162,7 @@
|
||||
class="requests-menu-header-button requests-menu-transferred"
|
||||
data-key="transferred"
|
||||
label="&netmonitorUI.toolbar.transferred;"
|
||||
crop="end"
|
||||
flex="1">
|
||||
</button>
|
||||
</hbox>
|
||||
@ -163,6 +173,7 @@
|
||||
class="requests-menu-header-button requests-menu-size"
|
||||
data-key="size"
|
||||
label="&netmonitorUI.toolbar.size;"
|
||||
crop="end"
|
||||
flex="1">
|
||||
</button>
|
||||
</hbox>
|
||||
@ -175,9 +186,12 @@
|
||||
data-key="waterfall"
|
||||
pack="start"
|
||||
flex="1">
|
||||
<label id="requests-menu-waterfall-label"
|
||||
class="plain requests-menu-waterfall"
|
||||
value="&netmonitorUI.toolbar.waterfall;"/>
|
||||
<image id="requests-menu-waterfall-image"/>
|
||||
<box id="requests-menu-waterfall-label-wrapper">
|
||||
<label id="requests-menu-waterfall-label"
|
||||
class="plain requests-menu-waterfall"
|
||||
value="&netmonitorUI.toolbar.waterfall;"/>
|
||||
</box>
|
||||
</button>
|
||||
</hbox>
|
||||
</hbox>
|
||||
@ -209,11 +223,14 @@
|
||||
|
||||
<vbox id="requests-menu-contents" flex="1" context="network-request-popup">
|
||||
<hbox id="requests-menu-item-template" hidden="true">
|
||||
<hbox class="requests-menu-subitem requests-menu-status-and-method"
|
||||
<hbox class="requests-menu-subitem requests-menu-status"
|
||||
align="center">
|
||||
<box class="requests-menu-status"/>
|
||||
<box class="requests-menu-status-icon"/>
|
||||
<label class="plain requests-menu-status-code"
|
||||
crop="end"/>
|
||||
</hbox>
|
||||
<hbox class="requests-menu-subitem requests-menu-method-box"
|
||||
align="center">
|
||||
<label class="plain requests-menu-method"
|
||||
crop="end"
|
||||
flex="1"/>
|
||||
@ -380,7 +397,7 @@
|
||||
<label class="plain tabpanel-summary-label"
|
||||
value="&netmonitorUI.summary.status;"/>
|
||||
<box id="headers-summary-status-circle"
|
||||
class="requests-menu-status"/>
|
||||
class="requests-menu-status-icon"/>
|
||||
<label id="headers-summary-status-value"
|
||||
class="plain tabpanel-summary-value devtools-monospace"
|
||||
crop="end"
|
||||
|
@ -324,9 +324,9 @@ function verifyRequestItemTarget(aRequestItem, aMethod, aUrl, aData = {}) {
|
||||
domainTooltip, "The tooltip domain is correct.");
|
||||
|
||||
if (status !== undefined) {
|
||||
let value = target.querySelector(".requests-menu-status").getAttribute("code");
|
||||
let value = target.querySelector(".requests-menu-status-icon").getAttribute("code");
|
||||
let codeValue = target.querySelector(".requests-menu-status-code").getAttribute("value");
|
||||
let tooltip = target.querySelector(".requests-menu-status-and-method").getAttribute("tooltiptext");
|
||||
let tooltip = target.querySelector(".requests-menu-status").getAttribute("tooltiptext");
|
||||
info("Displayed status: " + value);
|
||||
info("Displayed code: " + codeValue);
|
||||
info("Tooltip status: " + tooltip);
|
||||
|
9
devtools/client/themes/images/sort-arrows.svg
Normal file
9
devtools/client/themes/images/sort-arrows.svg
Normal file
@ -0,0 +1,9 @@
|
||||
<!-- 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/. -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="11">
|
||||
<g fill="#edf0f1" fill-opacity="0.8">
|
||||
<polygon points="3,5 5.5,8 8,5"/>
|
||||
<polygon points="14,7 16.5,4 19,7"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 409 B |
@ -44,77 +44,92 @@
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.requests-menu-header:first-child,
|
||||
.requests-menu-subitem:first-child {
|
||||
-moz-padding-start: 6px;
|
||||
}
|
||||
|
||||
.requests-menu-subitem {
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
.requests-menu-header:not(:last-child),
|
||||
.requests-menu-subitem:not(:last-child) {
|
||||
-moz-border-end: 1px solid var(--table-splitter-color);
|
||||
}
|
||||
|
||||
.requests-menu-header-button {
|
||||
-moz-appearance: none;
|
||||
background: none;
|
||||
background-color: transparent;
|
||||
border-image: linear-gradient(transparent 15%, var(--theme-splitter-color) 15%, var(--theme-splitter-color) 85%, transparent 85%) 1 1;
|
||||
border-style: solid;
|
||||
border-width: 0;
|
||||
border-inline-start-width: 1px;
|
||||
min-width: 1px;
|
||||
min-height: 24px;
|
||||
margin: 0;
|
||||
border: none;
|
||||
padding: 0;
|
||||
padding-bottom: 2px;
|
||||
padding-inline-start: 13px;
|
||||
padding-top: 2px;
|
||||
text-align: center;
|
||||
color: inherit;
|
||||
font-weight: inherit !important;
|
||||
transition: background-color 0.1s ease-in-out;
|
||||
}
|
||||
|
||||
.requests-menu-header:first-child .requests-menu-header-button {
|
||||
border-width: 0;
|
||||
}
|
||||
|
||||
.requests-menu-header-button:hover {
|
||||
background: rgba(0,0,0,0.10);
|
||||
background-color: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.requests-menu-header-button:hover:active {
|
||||
background: rgba(0,0,0,0.25);
|
||||
.requests-menu-header-button > .button-box > .button-icon,
|
||||
#requests-menu-waterfall-image {
|
||||
display: -moz-box;
|
||||
height: 4px;
|
||||
margin-inline-end: 6px;
|
||||
-moz-box-ordinal-group: 2;
|
||||
width: 7px;
|
||||
}
|
||||
|
||||
.requests-menu-header-button:not(:active)[sorted] {
|
||||
background: rgba(0,0,0,0.15);
|
||||
.requests-menu-header-button[sorted] > .button-box > .button-icon,
|
||||
.requests-menu-header-button[sorted] #requests-menu-waterfall-image {
|
||||
list-style-image: url('chrome://devtools/skin/images/sort-arrows.svg');
|
||||
}
|
||||
|
||||
.requests-menu-header-button:not(:active)[sorted=ascending] {
|
||||
background-image: radial-gradient(farthest-side at center top, hsla(200,100%,70%,.7), hsla(200,100%,70%,0.3));
|
||||
background-size: 100% 1px;
|
||||
background-repeat: no-repeat;
|
||||
.requests-menu-header-button[sorted=ascending] > .button-box > .button-icon,
|
||||
.requests-menu-header-button[sorted=ascending] #requests-menu-waterfall-image {
|
||||
-moz-image-region: rect(4px, 19px, 7px, 14px);
|
||||
}
|
||||
|
||||
.requests-menu-header-button:not(:active)[sorted=descending] {
|
||||
background-image: radial-gradient(farthest-side at center bottom, hsla(200,100%,70%,.7), hsla(200,100%,70%,0.3));
|
||||
background-size: 100% 1px;
|
||||
background-repeat: no-repeat;
|
||||
background-position: bottom;
|
||||
.requests-menu-header-button[sorted=descending] > .button-box > .button-icon,
|
||||
.requests-menu-header-button[sorted=descending] #requests-menu-waterfall-image {
|
||||
-moz-image-region: rect(5px, 8px, 8px, 3px);
|
||||
}
|
||||
|
||||
.requests-menu-header-button > .button-box > .button-text,
|
||||
#requests-menu-waterfall-label-wrapper {
|
||||
-moz-box-flex: 1;
|
||||
}
|
||||
|
||||
.requests-menu-header-button[sorted],
|
||||
.requests-menu-header-button[sorted]:hover {
|
||||
background-color: var(--theme-selection-background);
|
||||
color: var(--theme-selection-color);
|
||||
}
|
||||
|
||||
.requests-menu-header-button[sorted],
|
||||
.requests-menu-header[active] + .requests-menu-header .requests-menu-header-button {
|
||||
border-image: linear-gradient(var(--theme-splitter-color), var(--theme-splitter-color)) 1 1;
|
||||
}
|
||||
|
||||
/* Network requests table: specific column dimensions */
|
||||
|
||||
.requests-menu-status-and-method {
|
||||
width: 12em;
|
||||
}
|
||||
|
||||
.requests-menu-status {
|
||||
width: 20px;
|
||||
height: 10px;
|
||||
max-width: 4em;
|
||||
width: 4vw;
|
||||
}
|
||||
|
||||
.requests-menu-method-box,
|
||||
.requests-menu-method {
|
||||
max-width: 6em;
|
||||
text-align: center;
|
||||
font-weight: 600;
|
||||
width: 10vw;
|
||||
}
|
||||
|
||||
.requests-menu-icon-and-file {
|
||||
width: 20vw;
|
||||
min-width: 4em;
|
||||
width: 22vw;
|
||||
}
|
||||
|
||||
.requests-menu-icon {
|
||||
@ -129,13 +144,8 @@
|
||||
outline: 1px solid var(--table-splitter-color);
|
||||
}
|
||||
|
||||
.requests-menu-file {
|
||||
text-align: start;
|
||||
}
|
||||
|
||||
.requests-menu-security-and-domain {
|
||||
width: 14vw;
|
||||
min-width: 10em;
|
||||
}
|
||||
|
||||
.requests-security-state-icon {
|
||||
@ -165,25 +175,29 @@
|
||||
list-style-image: url(chrome://devtools/skin/images/security-state-local.svg);
|
||||
}
|
||||
|
||||
.requests-menu-type {
|
||||
text-align: center;
|
||||
width: 4em;
|
||||
}
|
||||
|
||||
.requests-menu-type,
|
||||
.requests-menu-transferred,
|
||||
.requests-menu-size {
|
||||
max-width: 8em;
|
||||
text-align: center;
|
||||
width: 8em;
|
||||
width: 8vw;
|
||||
}
|
||||
|
||||
.requests-menu-transferred {
|
||||
text-align: center;
|
||||
width: 8em;
|
||||
width: 8vw;
|
||||
}
|
||||
|
||||
/* Network requests table: status codes */
|
||||
|
||||
box.requests-menu-status {
|
||||
.requests-menu-status-code {
|
||||
-moz-margin-start: 3px !important;
|
||||
width: 3em;
|
||||
-moz-margin-end: -3em !important;
|
||||
}
|
||||
|
||||
.requests-menu-status-icon {
|
||||
background: #fff;
|
||||
height: 10px;
|
||||
width: 10px;
|
||||
-moz-margin-start: 5px;
|
||||
-moz-margin-end: 5px;
|
||||
@ -191,32 +205,25 @@ box.requests-menu-status {
|
||||
transition: box-shadow 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
label.requests-menu-status-code {
|
||||
-moz-margin-start: 3px !important;
|
||||
width: 3em;
|
||||
-moz-margin-end: -3em !important;
|
||||
.requests-menu-status-icon:not([code]) {
|
||||
background-color: var(--theme-content-color2);
|
||||
}
|
||||
|
||||
box.requests-menu-status:not([code]) {
|
||||
background-color: var(--theme-highlight-red);
|
||||
border-radius: 0; /* squares */
|
||||
}
|
||||
|
||||
box.requests-menu-status[code="cached"] {
|
||||
.requests-menu-status-icon[code="cached"] {
|
||||
border: 2px solid var(--theme-content-color2);
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
box.requests-menu-status[code^="1"] {
|
||||
.requests-menu-status-icon[code^="1"] {
|
||||
background-color: var(---theme-highlight-blue);
|
||||
}
|
||||
|
||||
box.requests-menu-status[code^="2"] {
|
||||
.requests-menu-status-icon[code^="2"] {
|
||||
background-color: var(--theme-highlight-green);
|
||||
}
|
||||
|
||||
/* 3xx are triangles */
|
||||
box.requests-menu-status[code^="3"] {
|
||||
.requests-menu-status-icon[code^="3"] {
|
||||
background-color: transparent;
|
||||
width: 0;
|
||||
height: 0;
|
||||
@ -227,12 +234,12 @@ box.requests-menu-status[code^="3"] {
|
||||
}
|
||||
|
||||
/* 4xx and 5xx are squares - error codes */
|
||||
box.requests-menu-status[code^="4"] {
|
||||
background-color: var(--theme-highlight-red);
|
||||
.requests-menu-status-icon[code^="4"] {
|
||||
background-color: var(--theme-highlight-red);
|
||||
border-radius: 0; /* squares */
|
||||
}
|
||||
|
||||
box.requests-menu-status[code^="5"] {
|
||||
.requests-menu-status-icon[code^="5"] {
|
||||
background-color: var(--theme-highlight-pink);
|
||||
border-radius: 0;
|
||||
transform: rotate(45deg);
|
||||
@ -240,22 +247,31 @@ box.requests-menu-status[code^="5"] {
|
||||
|
||||
/* Network requests table: waterfall header */
|
||||
|
||||
#requests-menu-waterfall-label {
|
||||
-moz-padding-start: 8px;
|
||||
-moz-padding-end: 8px;
|
||||
.requests-menu-waterfall {
|
||||
padding-inline-start: 0;
|
||||
}
|
||||
|
||||
#requests-menu-waterfall-label:not(.requests-menu-waterfall-visible) {
|
||||
padding-inline-start: 13px;
|
||||
}
|
||||
|
||||
.requests-menu-timings-division {
|
||||
width: 100px;
|
||||
padding-top: 2px;
|
||||
-moz-padding-start: 4px;
|
||||
padding-inline-start: 4px;
|
||||
font-size: 75%;
|
||||
pointer-events: none;
|
||||
box-sizing: border-box;
|
||||
text-align: start;
|
||||
}
|
||||
|
||||
.requests-menu-timings-division:first-child {
|
||||
width: 98px; /* Substract 2px for borders */
|
||||
}
|
||||
|
||||
.requests-menu-timings-division:not(:first-child) {
|
||||
-moz-border-start: 1px dotted;
|
||||
-moz-margin-start: -100px !important; /* Don't affect layout. */
|
||||
border-inline-start: 1px dashed;
|
||||
margin-inline-start: -100px !important; /* Don't affect layout. */
|
||||
}
|
||||
|
||||
.requests-menu-timings-division:-moz-locale-dir(ltr) {
|
||||
@ -266,31 +282,16 @@ box.requests-menu-status[code^="5"] {
|
||||
transform-origin: right center;
|
||||
}
|
||||
|
||||
.theme-dark .requests-menu-timings-division[division-scale=millisecond] {
|
||||
-moz-border-start-color: var(--theme-selection-color) !important;
|
||||
.theme-dark .requests-menu-timings-division {
|
||||
border-inline-start-color: #5a6169 !important;
|
||||
}
|
||||
|
||||
.theme-light .requests-menu-timings-division[division-scale=millisecond] {
|
||||
-moz-border-start-color: var(--theme-body-color-alt) !important;
|
||||
.theme-light .requests-menu-timings-division {
|
||||
border-inline-start-color: #585959 !important;
|
||||
}
|
||||
|
||||
.theme-dark .requests-menu-timings-division[division-scale=second] {
|
||||
-moz-border-start-color: var(--theme-selection-color) !important;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.theme-light .requests-menu-timings-division[division-scale=second] {
|
||||
-moz-border-start-color: var(--theme-body-color-alt) !important;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.theme-dark .requests-menu-timings-division[division-scale=minute] {
|
||||
-moz-border-start-color: var(--theme-selection-color) !important;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.theme-light .requests-menu-timings-division[division-scale=minute] {
|
||||
-moz-border-start-color: var(--theme-body-color-alt) !important;
|
||||
.requests-menu-timings-division[division-scale=second],
|
||||
.requests-menu-timings-division[division-scale=minute] {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@ -784,7 +785,8 @@ box.requests-menu-status[code^="5"] {
|
||||
}
|
||||
|
||||
.requests-menu-header-button {
|
||||
min-height: 20px;
|
||||
min-height: 22px;
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
#details-pane {
|
||||
@ -792,8 +794,18 @@ box.requests-menu-status[code^="5"] {
|
||||
/* To prevent all the margin hacks to hide the sidebar. */
|
||||
}
|
||||
|
||||
.requests-menu-status-and-method {
|
||||
width: 16vw;
|
||||
.requests-menu-status {
|
||||
width: 4vw;
|
||||
}
|
||||
|
||||
#requests-menu-status-button {
|
||||
min-width: 26px;
|
||||
}
|
||||
|
||||
.requests-menu-method,
|
||||
.requests-menu-method-box {
|
||||
max-width: none;
|
||||
width: 14vw;
|
||||
}
|
||||
|
||||
.requests-menu-icon-and-file {
|
||||
@ -801,19 +813,16 @@ box.requests-menu-status[code^="5"] {
|
||||
}
|
||||
|
||||
.requests-menu-security-and-domain {
|
||||
width: 30vw;
|
||||
width: 28vw;
|
||||
}
|
||||
|
||||
.requests-menu-type {
|
||||
width: 8vw;
|
||||
.requests-menu-type,
|
||||
.requests-menu-transferred {
|
||||
width: 12vw;
|
||||
}
|
||||
|
||||
.requests-menu-size {
|
||||
width: 16vw;
|
||||
border-width: 0 !important;
|
||||
box-shadow: none !important;
|
||||
/* The "Timeline" header is not visible anymore, and thus the
|
||||
right border and box-shadow of "Size" column should be hidden. */
|
||||
}
|
||||
}
|
||||
|
||||
@ -851,18 +860,6 @@ box.requests-menu-status[code^="5"] {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.requests-menu-status-and-method {
|
||||
width: 9em;
|
||||
}
|
||||
|
||||
.requests-menu-security-and-domain {
|
||||
width: 16vw;
|
||||
}
|
||||
|
||||
.requests-menu-size {
|
||||
width: 6em;
|
||||
}
|
||||
|
||||
/* Responsive sidebar */
|
||||
@media (max-width: 700px) {
|
||||
.requests-menu-header-button {
|
||||
|
@ -34,6 +34,7 @@ function TabSources(threadActor, allowSourceFn=() => true) {
|
||||
|
||||
this.blackBoxedSources = new Set();
|
||||
this.prettyPrintedSources = new Map();
|
||||
this.neverAutoBlackBoxSources = new Set();
|
||||
|
||||
// generated Debugger.Source -> promise of SourceMapConsumer
|
||||
this._sourceMaps = new Map();
|
||||
@ -169,8 +170,12 @@ TabSources.prototype = {
|
||||
this._thread.threadLifetimePool.addActor(actor);
|
||||
sourceActorStore.setReusableActorId(source, originalUrl, actor.actorID);
|
||||
|
||||
if (this._autoBlackBox && this._isMinifiedURL(actor.url)) {
|
||||
if (this._autoBlackBox &&
|
||||
!this.neverAutoBlackBoxSources.has(actor.url) &&
|
||||
this._isMinifiedURL(actor.url)) {
|
||||
|
||||
this.blackBox(actor.url);
|
||||
this.neverAutoBlackBoxSources.add(actor.url);
|
||||
}
|
||||
|
||||
if (source) {
|
||||
|
@ -224,7 +224,7 @@
|
||||
<!ENTITY pref_tap_to_load_images_title2 "Show images">
|
||||
<!ENTITY pref_tap_to_load_images_enabled "Always">
|
||||
<!ENTITY pref_tap_to_load_images_data "Only over Wi-Fi">
|
||||
<!ENTITY pref_tap_to_load_images_disabled "Never">
|
||||
<!ENTITY pref_tap_to_load_images_disabled2 "Blocked">
|
||||
|
||||
<!ENTITY pref_tracking_protection_title "Tracking protection">
|
||||
<!ENTITY pref_tracking_protection_summary3 "Enabled in Private Browsing">
|
||||
|
@ -5,7 +5,6 @@
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
DIRS += ['locales']
|
||||
SPHINX_TREES['fennec'] = 'docs'
|
||||
|
||||
include('android-services.mozbuild')
|
||||
|
||||
|
BIN
mobile/android/base/resources/drawable-hdpi/menu_panel_bg.9.png
Normal file
BIN
mobile/android/base/resources/drawable-hdpi/menu_panel_bg.9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 544 B |
BIN
mobile/android/base/resources/drawable-xhdpi/menu_panel_bg.9.png
Normal file
BIN
mobile/android/base/resources/drawable-xhdpi/menu_panel_bg.9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 661 B |
@ -41,6 +41,7 @@
|
||||
<item name="android:actionModeCutDrawable">@drawable/ab_cut</item>
|
||||
<item name="android:actionModePasteDrawable">@drawable/ab_paste</item>
|
||||
<item name="android:listViewStyle">@style/Widget.ListView</item>
|
||||
<item name="android:panelBackground">@drawable/menu_panel_bg</item>
|
||||
<item name="android:spinnerDropDownItemStyle">@style/Widget.DropDownItem.Spinner</item>
|
||||
<item name="android:spinnerItemStyle">@style/Widget.TextView.SpinnerItem</item>
|
||||
<item name="menuItemSwitcherLayoutStyle">@style/Widget.MenuItemSwitcherLayout</item>
|
||||
|
@ -17,6 +17,7 @@
|
||||
<item name="android:actionModeSelectAllDrawable">@drawable/ab_select_all</item>
|
||||
<item name="android:actionModeStyle">@style/GeckoActionBar</item>
|
||||
<item name="android:listViewStyle">@style/Widget.ListView</item>
|
||||
<item name="android:panelBackground">@drawable/menu_panel_bg</item>
|
||||
<item name="android:spinnerDropDownItemStyle">@style/Widget.DropDownItem.Spinner</item>
|
||||
<item name="android:spinnerItemStyle">@style/Widget.TextView.SpinnerItem</item>
|
||||
<item name="menuItemSwitcherLayoutStyle">@style/Widget.MenuItemSwitcherLayout</item>
|
||||
|
@ -42,6 +42,7 @@
|
||||
<style name="GeckoAppBase" parent="Gecko">
|
||||
<item name="android:actionButtonStyle">@style/GeckoActionBar.Button</item>
|
||||
<item name="android:listViewStyle">@style/Widget.ListView</item>
|
||||
<item name="android:panelBackground">@drawable/menu_panel_bg</item>
|
||||
<item name="android:spinnerDropDownItemStyle">@style/Widget.DropDownItem.Spinner</item>
|
||||
<item name="android:spinnerItemStyle">@style/Widget.TextView.SpinnerItem</item>
|
||||
<item name="menuItemSwitcherLayoutStyle">@style/Widget.MenuItemSwitcherLayout</item>
|
||||
|
@ -170,11 +170,11 @@
|
||||
<string-array name="pref_browser_image_blocking_entries">
|
||||
<item>@string/pref_tap_to_load_images_enabled</item>
|
||||
<item>@string/pref_tap_to_load_images_data</item>
|
||||
<item>@string/pref_tap_to_load_images_disabled</item>
|
||||
<item>@string/pref_tap_to_load_images_disabled2</item>
|
||||
</string-array>
|
||||
<string-array name="pref_browser_image_blocking_values">
|
||||
<item>1</item> <!-- Always -->
|
||||
<item>2</item> <!-- Wifi-only -->
|
||||
<item>0</item> <!-- Never -->
|
||||
<item>0</item> <!-- Blocked -->
|
||||
</string-array>
|
||||
</resources>
|
||||
|
@ -12,6 +12,13 @@
|
||||
<style name="GeckoBase" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<item name="windowNoTitle">true</item>
|
||||
<item name="android:windowContentOverlay">@null</item>
|
||||
|
||||
<!-- Gingerbread "More" menu background color; AppCompat sets this to
|
||||
transparent by default: http://stackoverflow.com/a/31777488.
|
||||
This color is set anecdotally to make all text colors, which change
|
||||
by device, visible. Standard colors are #8D8D8D & #C8C8C8 (disabled)
|
||||
and #000000 has also been seen. -->
|
||||
<item name="android:panelBackground">@color/text_and_tabs_tray_grey</item>
|
||||
</style>
|
||||
|
||||
<style name="GeckoDialogBase" parent="@android:style/Theme.Dialog">
|
||||
|
@ -212,7 +212,7 @@
|
||||
<string name="pref_tap_to_load_images_title2">&pref_tap_to_load_images_title2;</string>
|
||||
<string name="pref_tap_to_load_images_enabled">&pref_tap_to_load_images_enabled;</string>
|
||||
<string name="pref_tap_to_load_images_data">&pref_tap_to_load_images_data;</string>
|
||||
<string name="pref_tap_to_load_images_disabled">&pref_tap_to_load_images_disabled;</string>
|
||||
<string name="pref_tap_to_load_images_disabled2">&pref_tap_to_load_images_disabled2;</string>
|
||||
|
||||
<string name="pref_tracking_protection_title">&pref_tracking_protection_title;</string>
|
||||
<string name="pref_tracking_protection_summary">&pref_tracking_protection_summary3;</string>
|
||||
|
177
mobile/android/docs/Makefile
Normal file
177
mobile/android/docs/Makefile
Normal file
@ -0,0 +1,177 @@
|
||||
# Makefile for Sphinx documentation
|
||||
#
|
||||
|
||||
# You can set these variables from the command line.
|
||||
SPHINXOPTS =
|
||||
SPHINXBUILD = sphinx-build
|
||||
PAPER =
|
||||
BUILDDIR = _build
|
||||
|
||||
# User-friendly check for sphinx-build
|
||||
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
|
||||
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
|
||||
endif
|
||||
|
||||
# Internal variables.
|
||||
PAPEROPT_a4 = -D latex_paper_size=a4
|
||||
PAPEROPT_letter = -D latex_paper_size=letter
|
||||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
||||
# the i18n builder cannot share the environment and doctrees with the others
|
||||
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
|
||||
|
||||
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
|
||||
|
||||
help:
|
||||
@echo "Please use \`make <target>' where <target> is one of"
|
||||
@echo " html to make standalone HTML files"
|
||||
@echo " dirhtml to make HTML files named index.html in directories"
|
||||
@echo " singlehtml to make a single large HTML file"
|
||||
@echo " pickle to make pickle files"
|
||||
@echo " json to make JSON files"
|
||||
@echo " htmlhelp to make HTML files and a HTML help project"
|
||||
@echo " qthelp to make HTML files and a qthelp project"
|
||||
@echo " devhelp to make HTML files and a Devhelp project"
|
||||
@echo " epub to make an epub"
|
||||
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
|
||||
@echo " latexpdf to make LaTeX files and run them through pdflatex"
|
||||
@echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
|
||||
@echo " text to make text files"
|
||||
@echo " man to make manual pages"
|
||||
@echo " texinfo to make Texinfo files"
|
||||
@echo " info to make Texinfo files and run them through makeinfo"
|
||||
@echo " gettext to make PO message catalogs"
|
||||
@echo " changes to make an overview of all changed/added/deprecated items"
|
||||
@echo " xml to make Docutils-native XML files"
|
||||
@echo " pseudoxml to make pseudoxml-XML files for display purposes"
|
||||
@echo " linkcheck to check all external links for integrity"
|
||||
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
|
||||
|
||||
clean:
|
||||
rm -rf $(BUILDDIR)/*
|
||||
|
||||
html:
|
||||
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
||||
@echo
|
||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
||||
|
||||
dirhtml:
|
||||
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
|
||||
@echo
|
||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
|
||||
|
||||
singlehtml:
|
||||
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
|
||||
@echo
|
||||
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
|
||||
|
||||
pickle:
|
||||
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
|
||||
@echo
|
||||
@echo "Build finished; now you can process the pickle files."
|
||||
|
||||
json:
|
||||
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
|
||||
@echo
|
||||
@echo "Build finished; now you can process the JSON files."
|
||||
|
||||
htmlhelp:
|
||||
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
|
||||
@echo
|
||||
@echo "Build finished; now you can run HTML Help Workshop with the" \
|
||||
".hhp project file in $(BUILDDIR)/htmlhelp."
|
||||
|
||||
qthelp:
|
||||
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
|
||||
@echo
|
||||
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
|
||||
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
|
||||
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/FirefoxforAndroid.qhcp"
|
||||
@echo "To view the help file:"
|
||||
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/FirefoxforAndroid.qhc"
|
||||
|
||||
devhelp:
|
||||
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
|
||||
@echo
|
||||
@echo "Build finished."
|
||||
@echo "To view the help file:"
|
||||
@echo "# mkdir -p $$HOME/.local/share/devhelp/FirefoxforAndroid"
|
||||
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/FirefoxforAndroid"
|
||||
@echo "# devhelp"
|
||||
|
||||
epub:
|
||||
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
|
||||
@echo
|
||||
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
|
||||
|
||||
latex:
|
||||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
||||
@echo
|
||||
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
|
||||
@echo "Run \`make' in that directory to run these through (pdf)latex" \
|
||||
"(use \`make latexpdf' here to do that automatically)."
|
||||
|
||||
latexpdf:
|
||||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
||||
@echo "Running LaTeX files through pdflatex..."
|
||||
$(MAKE) -C $(BUILDDIR)/latex all-pdf
|
||||
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
||||
|
||||
latexpdfja:
|
||||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
||||
@echo "Running LaTeX files through platex and dvipdfmx..."
|
||||
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
|
||||
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
||||
|
||||
text:
|
||||
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
|
||||
@echo
|
||||
@echo "Build finished. The text files are in $(BUILDDIR)/text."
|
||||
|
||||
man:
|
||||
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
|
||||
@echo
|
||||
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
|
||||
|
||||
texinfo:
|
||||
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
||||
@echo
|
||||
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
|
||||
@echo "Run \`make' in that directory to run these through makeinfo" \
|
||||
"(use \`make info' here to do that automatically)."
|
||||
|
||||
info:
|
||||
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
|
||||
@echo "Running Texinfo files through makeinfo..."
|
||||
make -C $(BUILDDIR)/texinfo info
|
||||
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
|
||||
|
||||
gettext:
|
||||
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
|
||||
@echo
|
||||
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
|
||||
|
||||
changes:
|
||||
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
|
||||
@echo
|
||||
@echo "The overview file is in $(BUILDDIR)/changes."
|
||||
|
||||
linkcheck:
|
||||
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
|
||||
@echo
|
||||
@echo "Link check complete; look for any errors in the above output " \
|
||||
"or in $(BUILDDIR)/linkcheck/output.txt."
|
||||
|
||||
doctest:
|
||||
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
|
||||
@echo "Testing of doctests in the sources finished, look at the " \
|
||||
"results in $(BUILDDIR)/doctest/output.txt."
|
||||
|
||||
xml:
|
||||
$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
|
||||
@echo
|
||||
@echo "Build finished. The XML files are in $(BUILDDIR)/xml."
|
||||
|
||||
pseudoxml:
|
||||
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
|
||||
@echo
|
||||
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
|
258
mobile/android/docs/conf.py
Normal file
258
mobile/android/docs/conf.py
Normal file
@ -0,0 +1,258 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Firefox for Android documentation build configuration file, created by
|
||||
# sphinx-quickstart on Fri Dec 4 22:51:57 2015.
|
||||
#
|
||||
# This file is execfile()d with the current directory set to its
|
||||
# containing dir.
|
||||
#
|
||||
# Note that not all possible configuration values are present in this
|
||||
# autogenerated file.
|
||||
#
|
||||
# All configuration values have a default; values that are commented out
|
||||
# serve to show the default.
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||
#sys.path.insert(0, os.path.abspath('.'))
|
||||
|
||||
# -- General configuration ------------------------------------------------
|
||||
|
||||
# If your documentation needs a minimal Sphinx version, state it here.
|
||||
#needs_sphinx = '1.0'
|
||||
|
||||
# Add any Sphinx extension module names here, as strings. They can be
|
||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
||||
# ones.
|
||||
extensions = []
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
|
||||
# The suffix of source filenames.
|
||||
source_suffix = '.rst'
|
||||
|
||||
# The encoding of source files.
|
||||
#source_encoding = 'utf-8-sig'
|
||||
|
||||
# The master toctree document.
|
||||
master_doc = 'index'
|
||||
|
||||
# General information about the project.
|
||||
project = u'Firefox for Android'
|
||||
copyright = u'2015, mobile team'
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = '1.0'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = '1.0'
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
#language = None
|
||||
|
||||
# There are two options for replacing |today|: either, you set today to some
|
||||
# non-false value, then it is used:
|
||||
#today = ''
|
||||
# Else, today_fmt is used as the format for a strftime call.
|
||||
#today_fmt = '%B %d, %Y'
|
||||
|
||||
# List of patterns, relative to source directory, that match files and
|
||||
# directories to ignore when looking for source files.
|
||||
exclude_patterns = ['_build']
|
||||
|
||||
# The reST default role (used for this markup: `text`) to use for all
|
||||
# documents.
|
||||
#default_role = None
|
||||
|
||||
# If true, '()' will be appended to :func: etc. cross-reference text.
|
||||
#add_function_parentheses = True
|
||||
|
||||
# If true, the current module name will be prepended to all description
|
||||
# unit titles (such as .. function::).
|
||||
#add_module_names = True
|
||||
|
||||
# If true, sectionauthor and moduleauthor directives will be shown in the
|
||||
# output. They are ignored by default.
|
||||
#show_authors = False
|
||||
|
||||
# The name of the Pygments (syntax highlighting) style to use.
|
||||
pygments_style = 'sphinx'
|
||||
|
||||
# A list of ignored prefixes for module index sorting.
|
||||
#modindex_common_prefix = []
|
||||
|
||||
# If true, keep warnings as "system message" paragraphs in the built documents.
|
||||
#keep_warnings = False
|
||||
|
||||
|
||||
# -- Options for HTML output ----------------------------------------------
|
||||
|
||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
# a list of builtin themes.
|
||||
html_theme = 'default'
|
||||
|
||||
# Theme options are theme-specific and customize the look and feel of a theme
|
||||
# further. For a list of options available for each theme, see the
|
||||
# documentation.
|
||||
#html_theme_options = {}
|
||||
|
||||
# Add any paths that contain custom themes here, relative to this directory.
|
||||
#html_theme_path = []
|
||||
|
||||
# The name for this set of Sphinx documents. If None, it defaults to
|
||||
# "<project> v<release> documentation".
|
||||
#html_title = None
|
||||
|
||||
# A shorter title for the navigation bar. Default is the same as html_title.
|
||||
#html_short_title = None
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top
|
||||
# of the sidebar.
|
||||
#html_logo = None
|
||||
|
||||
# The name of an image file (within the static path) to use as favicon of the
|
||||
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
||||
# pixels large.
|
||||
#html_favicon = None
|
||||
|
||||
# Add any paths that contain custom static files (such as style sheets) here,
|
||||
# relative to this directory. They are copied after the builtin static files,
|
||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||
html_static_path = ['_static']
|
||||
|
||||
# Add any extra paths that contain custom files (such as robots.txt or
|
||||
# .htaccess) here, relative to this directory. These files are copied
|
||||
# directly to the root of the documentation.
|
||||
#html_extra_path = []
|
||||
|
||||
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
||||
# using the given strftime format.
|
||||
#html_last_updated_fmt = '%b %d, %Y'
|
||||
|
||||
# If true, SmartyPants will be used to convert quotes and dashes to
|
||||
# typographically correct entities.
|
||||
#html_use_smartypants = True
|
||||
|
||||
# Custom sidebar templates, maps document names to template names.
|
||||
#html_sidebars = {}
|
||||
|
||||
# Additional templates that should be rendered to pages, maps page names to
|
||||
# template names.
|
||||
#html_additional_pages = {}
|
||||
|
||||
# If false, no module index is generated.
|
||||
#html_domain_indices = True
|
||||
|
||||
# If false, no index is generated.
|
||||
#html_use_index = True
|
||||
|
||||
# If true, the index is split into individual pages for each letter.
|
||||
#html_split_index = False
|
||||
|
||||
# If true, links to the reST sources are added to the pages.
|
||||
#html_show_sourcelink = True
|
||||
|
||||
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
||||
#html_show_sphinx = True
|
||||
|
||||
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
|
||||
#html_show_copyright = True
|
||||
|
||||
# If true, an OpenSearch description file will be output, and all pages will
|
||||
# contain a <link> tag referring to it. The value of this option must be the
|
||||
# base URL from which the finished HTML is served.
|
||||
#html_use_opensearch = ''
|
||||
|
||||
# This is the file name suffix for HTML files (e.g. ".xhtml").
|
||||
#html_file_suffix = None
|
||||
|
||||
# Output file base name for HTML help builder.
|
||||
htmlhelp_basename = 'FirefoxforAndroiddoc'
|
||||
|
||||
|
||||
# -- Options for LaTeX output ---------------------------------------------
|
||||
|
||||
latex_elements = {
|
||||
# The paper size ('letterpaper' or 'a4paper').
|
||||
#'papersize': 'letterpaper',
|
||||
|
||||
# The font size ('10pt', '11pt' or '12pt').
|
||||
#'pointsize': '10pt',
|
||||
|
||||
# Additional stuff for the LaTeX preamble.
|
||||
#'preamble': '',
|
||||
}
|
||||
|
||||
# Grouping the document tree into LaTeX files. List of tuples
|
||||
# (source start file, target name, title,
|
||||
# author, documentclass [howto, manual, or own class]).
|
||||
latex_documents = [
|
||||
('index', 'FirefoxforAndroid.tex', u'Firefox for Android Documentation',
|
||||
u'mobile team', 'manual'),
|
||||
]
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top of
|
||||
# the title page.
|
||||
#latex_logo = None
|
||||
|
||||
# For "manual" documents, if this is true, then toplevel headings are parts,
|
||||
# not chapters.
|
||||
#latex_use_parts = False
|
||||
|
||||
# If true, show page references after internal links.
|
||||
#latex_show_pagerefs = False
|
||||
|
||||
# If true, show URL addresses after external links.
|
||||
#latex_show_urls = False
|
||||
|
||||
# Documents to append as an appendix to all manuals.
|
||||
#latex_appendices = []
|
||||
|
||||
# If false, no module index is generated.
|
||||
#latex_domain_indices = True
|
||||
|
||||
|
||||
# -- Options for manual page output ---------------------------------------
|
||||
|
||||
# One entry per manual page. List of tuples
|
||||
# (source start file, name, description, authors, manual section).
|
||||
man_pages = [
|
||||
('index', 'firefoxforandroid', u'Firefox for Android Documentation',
|
||||
[u'mobile team'], 1)
|
||||
]
|
||||
|
||||
# If true, show URL addresses after external links.
|
||||
#man_show_urls = False
|
||||
|
||||
|
||||
# -- Options for Texinfo output -------------------------------------------
|
||||
|
||||
# Grouping the document tree into Texinfo files. List of tuples
|
||||
# (source start file, target name, title, author,
|
||||
# dir menu entry, description, category)
|
||||
texinfo_documents = [
|
||||
('index', 'FirefoxforAndroid', u'Firefox for Android Documentation',
|
||||
u'mobile team', 'FirefoxforAndroid', 'One line description of project.',
|
||||
'Miscellaneous'),
|
||||
]
|
||||
|
||||
# Documents to append as an appendix to all manuals.
|
||||
#texinfo_appendices = []
|
||||
|
||||
# If false, no module index is generated.
|
||||
#texinfo_domain_indices = True
|
||||
|
||||
# How to display URL addresses: 'footnote', 'no', or 'inline'.
|
||||
#texinfo_show_urls = 'footnote'
|
||||
|
||||
# If true, do not generate a @detailmenu in the "Top" node's menu.
|
||||
#texinfo_no_detailmenu = False
|
25
mobile/android/docs/index.rst
Normal file
25
mobile/android/docs/index.rst
Normal file
@ -0,0 +1,25 @@
|
||||
.. Firefox for Android documentation master file, created by
|
||||
sphinx-quickstart on Fri Dec 4 22:51:57 2015.
|
||||
You can adapt this file completely to your liking, but it should at least
|
||||
contain the root `toctree` directive.
|
||||
|
||||
Welcome to Firefox for Android's documentation!
|
||||
===============================================
|
||||
|
||||
Contents:
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
localeswitching
|
||||
uitelemetry
|
||||
adjust
|
||||
gradle
|
||||
|
||||
Indices and tables
|
||||
==================
|
||||
|
||||
* :ref:`genindex`
|
||||
* :ref:`modindex`
|
||||
* :ref:`search`
|
||||
|
242
mobile/android/docs/make.bat
Normal file
242
mobile/android/docs/make.bat
Normal file
@ -0,0 +1,242 @@
|
||||
@ECHO OFF
|
||||
|
||||
REM Command file for Sphinx documentation
|
||||
|
||||
if "%SPHINXBUILD%" == "" (
|
||||
set SPHINXBUILD=sphinx-build
|
||||
)
|
||||
set BUILDDIR=_build
|
||||
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
|
||||
set I18NSPHINXOPTS=%SPHINXOPTS% .
|
||||
if NOT "%PAPER%" == "" (
|
||||
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
|
||||
set I18NSPHINXOPTS=-D latex_paper_size=%PAPER% %I18NSPHINXOPTS%
|
||||
)
|
||||
|
||||
if "%1" == "" goto help
|
||||
|
||||
if "%1" == "help" (
|
||||
:help
|
||||
echo.Please use `make ^<target^>` where ^<target^> is one of
|
||||
echo. html to make standalone HTML files
|
||||
echo. dirhtml to make HTML files named index.html in directories
|
||||
echo. singlehtml to make a single large HTML file
|
||||
echo. pickle to make pickle files
|
||||
echo. json to make JSON files
|
||||
echo. htmlhelp to make HTML files and a HTML help project
|
||||
echo. qthelp to make HTML files and a qthelp project
|
||||
echo. devhelp to make HTML files and a Devhelp project
|
||||
echo. epub to make an epub
|
||||
echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
|
||||
echo. text to make text files
|
||||
echo. man to make manual pages
|
||||
echo. texinfo to make Texinfo files
|
||||
echo. gettext to make PO message catalogs
|
||||
echo. changes to make an overview over all changed/added/deprecated items
|
||||
echo. xml to make Docutils-native XML files
|
||||
echo. pseudoxml to make pseudoxml-XML files for display purposes
|
||||
echo. linkcheck to check all external links for integrity
|
||||
echo. doctest to run all doctests embedded in the documentation if enabled
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "clean" (
|
||||
for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
|
||||
del /q /s %BUILDDIR%\*
|
||||
goto end
|
||||
)
|
||||
|
||||
|
||||
%SPHINXBUILD% 2> nul
|
||||
if errorlevel 9009 (
|
||||
echo.
|
||||
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
|
||||
echo.installed, then set the SPHINXBUILD environment variable to point
|
||||
echo.to the full path of the 'sphinx-build' executable. Alternatively you
|
||||
echo.may add the Sphinx directory to PATH.
|
||||
echo.
|
||||
echo.If you don't have Sphinx installed, grab it from
|
||||
echo.http://sphinx-doc.org/
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
if "%1" == "html" (
|
||||
%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The HTML pages are in %BUILDDIR%/html.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "dirhtml" (
|
||||
%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "singlehtml" (
|
||||
%SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "pickle" (
|
||||
%SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished; now you can process the pickle files.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "json" (
|
||||
%SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished; now you can process the JSON files.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "htmlhelp" (
|
||||
%SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished; now you can run HTML Help Workshop with the ^
|
||||
.hhp project file in %BUILDDIR%/htmlhelp.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "qthelp" (
|
||||
%SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished; now you can run "qcollectiongenerator" with the ^
|
||||
.qhcp project file in %BUILDDIR%/qthelp, like this:
|
||||
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\FirefoxforAndroid.qhcp
|
||||
echo.To view the help file:
|
||||
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\FirefoxforAndroid.ghc
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "devhelp" (
|
||||
%SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "epub" (
|
||||
%SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The epub file is in %BUILDDIR%/epub.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "latex" (
|
||||
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "latexpdf" (
|
||||
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
|
||||
cd %BUILDDIR%/latex
|
||||
make all-pdf
|
||||
cd %BUILDDIR%/..
|
||||
echo.
|
||||
echo.Build finished; the PDF files are in %BUILDDIR%/latex.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "latexpdfja" (
|
||||
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
|
||||
cd %BUILDDIR%/latex
|
||||
make all-pdf-ja
|
||||
cd %BUILDDIR%/..
|
||||
echo.
|
||||
echo.Build finished; the PDF files are in %BUILDDIR%/latex.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "text" (
|
||||
%SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The text files are in %BUILDDIR%/text.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "man" (
|
||||
%SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The manual pages are in %BUILDDIR%/man.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "texinfo" (
|
||||
%SPHINXBUILD% -b texinfo %ALLSPHINXOPTS% %BUILDDIR%/texinfo
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The Texinfo files are in %BUILDDIR%/texinfo.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "gettext" (
|
||||
%SPHINXBUILD% -b gettext %I18NSPHINXOPTS% %BUILDDIR%/locale
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The message catalogs are in %BUILDDIR%/locale.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "changes" (
|
||||
%SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.The overview file is in %BUILDDIR%/changes.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "linkcheck" (
|
||||
%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Link check complete; look for any errors in the above output ^
|
||||
or in %BUILDDIR%/linkcheck/output.txt.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "doctest" (
|
||||
%SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Testing of doctests in the sources finished, look at the ^
|
||||
results in %BUILDDIR%/doctest/output.txt.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "xml" (
|
||||
%SPHINXBUILD% -b xml %ALLSPHINXOPTS% %BUILDDIR%/xml
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The XML files are in %BUILDDIR%/xml.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "pseudoxml" (
|
||||
%SPHINXBUILD% -b pseudoxml %ALLSPHINXOPTS% %BUILDDIR%/pseudoxml
|
||||
if errorlevel 1 exit /b 1
|
||||
echo.
|
||||
echo.Build finished. The pseudo-XML files are in %BUILDDIR%/pseudoxml.
|
||||
goto end
|
||||
)
|
||||
|
||||
:end
|
@ -32,3 +32,5 @@ DIRS += ['../../xulrunner/tools/redit']
|
||||
TEST_DIRS += [
|
||||
'tests',
|
||||
]
|
||||
|
||||
SPHINX_TREES['fennec'] = 'docs'
|
||||
|
Loading…
Reference in New Issue
Block a user