wiki.techinc.nl/includes/api
Brad Jorsch 3f1142045f Generalize ResourceLoader 'excludepage' functionality
There has long been a hack for previewing edits to user JS/CSS, where
OutputPage would pass an 'excludepage' parameter to
ResourceLoaderUserModule to tell it not to load one particular page and
would instead embed that page statically. That's nice, but there are
other places where we could use the same thing.

This patch generalizes it:
* DerivativeResourceLoaderContext may now contain a callback for mapping
  titles to replacement Content objects.
* ResourceLoaderWikiModule::getContent() uses the overrides, and
  requests embedding when they're used. All subclasses in Gerrit should
  pick it up automatically.
* OutputPage gains methods for callers to add to the override mapping,
  which it passes on to RL. It loses a bunch of the special casing it
  had for the 'user' and 'user.styles' modules.
* EditPage sets the overrides on OutputPage when doing the preview, as
  does ApiParse for prop=headhtml. TemplateSandbox does too in I83fa0856.
* OutputPage::userCanPreview() gets less specific to editing user CSS
  and JS, since RL now handles the embedding based on the actual
  modules' dependencies and EditPage only requests it on preview.

ApiParse also gets a new hook to support TemplateSandbox's API
integration (used in I83fa0856).

Bug: T112474
Change-Id: Ib9d2ce42931c1de8372e231314a1f672d7e2ac0e
2018-04-25 00:37:08 +00:00
..
i18n Localisation updates from https://translatewiki.net. 2018-04-24 21:55:15 +02:00
ApiAMCreateAccount.php
ApiAuthManagerHelper.php
ApiBase.php Merge "Improve test coverage for ApiBase.php" 2018-04-10 18:46:34 +00:00
ApiBlock.php Improve test coverage for ApiBlock.php to 100% 2018-03-26 18:17:32 +03:00
ApiChangeAuthenticationData.php
ApiCheckToken.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiClearHasMsg.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiClientLogin.php
ApiComparePages.php Fix called function case in a bunch of places 2018-01-22 09:10:09 -08:00
ApiContinuationManager.php
ApiCSPReport.php Use PHP's implode() with the suggested order of arguments 2018-02-22 20:24:00 +01:00
ApiDelete.php Improve test coverage for ApiDelete.php 2018-03-26 14:36:11 +03:00
ApiDisabled.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiEditPage.php Get ~100% test coverage for ApiEditPage.php and fix a couple of bugs 2018-03-28 15:33:24 +03:00
ApiEmailUser.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiErrorFormatter.php Fix type hint in ApiErrorFormatter::addMessagesFromStatus 2018-01-09 14:01:17 +01:00
ApiExpandTemplates.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiFeedContributions.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiFeedRecentChanges.php Drop the 'CategorizedRecentChanges' feature 2018-02-15 10:45:10 -08:00
ApiFeedWatchlist.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiFileRevert.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiFormatBase.php Convert OutputHandler functions to a class 2018-03-20 21:11:32 -07:00
ApiFormatFeedWrapper.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiFormatJson.php Add more checks to ApiStructureTest.php 2018-04-08 15:58:06 +03:00
ApiFormatNone.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiFormatPhp.php Add more checks to ApiStructureTest.php 2018-04-08 15:58:06 +03:00
ApiFormatRaw.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiFormatXml.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiHelp.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiHelpParamValueMessage.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiImageRotate.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiImport.php A few doc comment fixups 2017-12-04 11:11:52 +11:00
ApiLinkAccount.php
ApiLogin.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiLogout.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiMain.php Merge "Improve test coverage for ApiBase.php" 2018-04-10 18:46:34 +00:00
ApiManageTags.php
ApiMergeHistory.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiMessage.php
ApiModuleManager.php Use ::class to resolve class names in includes files 2018-01-27 20:34:29 +01:00
ApiMove.php Test ApiMove 2018-04-15 14:13:08 +03:00
ApiOpenSearch.php A few doc comment fixups 2017-12-04 11:11:52 +11:00
ApiOptions.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiPageSet.php Use ::class to resolve class names in includes files 2018-01-27 20:34:29 +01:00
ApiParamInfo.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiParse.php Generalize ResourceLoader 'excludepage' functionality 2018-04-25 00:37:08 +00:00
ApiPatrol.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiProtect.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiPurge.php Swap isset by null check in ApiSetNotificationTimestamp/ApiPurge 2018-04-05 12:39:24 +02:00
ApiQuery.php Use ::class to resolve class names in includes files 2018-01-27 20:34:29 +01:00
ApiQueryAllCategories.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryAllDeletedRevisions.php Drop archive.ar_text and ar_flags 2018-04-03 12:54:27 -04:00
ApiQueryAllImages.php Add actor table and code to start using it 2018-02-23 10:06:20 -08:00
ApiQueryAllLinks.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryAllMessages.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryAllPages.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryAllRevisions.php Add actor table and code to start using it 2018-02-23 10:06:20 -08:00
ApiQueryAllUsers.php Add actor table and code to start using it 2018-02-23 10:06:20 -08:00
ApiQueryAuthManagerInfo.php
ApiQueryBacklinks.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryBacklinksprop.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryBase.php Add actor table and code to start using it 2018-02-23 10:06:20 -08:00
ApiQueryBlocks.php Add actor table and code to start using it 2018-02-23 10:06:20 -08:00
ApiQueryCategories.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryCategoryInfo.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryCategoryMembers.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryContributors.php ApiQueryContributors: Use correct variable 2018-03-03 23:31:02 -05:00
ApiQueryDeletedRevisions.php Drop archive.ar_text and ar_flags 2018-04-03 12:54:27 -04:00
ApiQueryDeletedrevs.php Drop archive.ar_text and ar_flags 2018-04-03 12:54:27 -04:00
ApiQueryDisabled.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryDuplicateFiles.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryExternalLinks.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryExtLinksUsage.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryFilearchive.php Pass $key into CommentStore methods and use MediawikiServices 2018-02-05 15:34:12 +00:00
ApiQueryFileRepoInfo.php
ApiQueryGeneratorBase.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryImageInfo.php Update suppressWarning()/restoreWarning() calls 2018-02-10 08:50:12 +00:00
ApiQueryImages.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryInfo.php Add varianttitles parameter to API query prop=info 2018-04-09 22:03:19 +00:00
ApiQueryIWBacklinks.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryIWLinks.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryLangBacklinks.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryLangLinks.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryLinks.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryLogEvents.php Don't target log_user_text for registered users 2018-03-06 16:22:35 +00:00
ApiQueryMyStashedFiles.php
ApiQueryPagePropNames.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryPageProps.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryPagesWithProp.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryPrefixSearch.php
ApiQueryProtectedTitles.php Pass $key into CommentStore methods and use MediawikiServices 2018-02-05 15:34:12 +00:00
ApiQueryQueryPage.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryRandom.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryRecentChanges.php Replace rc_patrolled values with contants, part I 2018-04-11 22:35:31 +02:00
ApiQueryRevisions.php Add actor table and code to start using it 2018-02-23 10:06:20 -08:00
ApiQueryRevisionsBase.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQuerySearch.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQuerySiteinfo.php Drop deprecated EnableAPI and EnableWriteAPI settings 2018-04-18 00:30:34 +00:00
ApiQueryStashImageInfo.php
ApiQueryTags.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryTokens.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryUserContributions.php Replace rc_patrolled values with contants, part I 2018-04-11 22:35:31 +02:00
ApiQueryUserInfo.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiQueryUsers.php Pass $key into CommentStore methods and use MediawikiServices 2018-02-05 15:34:12 +00:00
ApiQueryWatchlist.php Replace rc_patrolled values with contants, part I 2018-04-11 22:35:31 +02:00
ApiQueryWatchlistRaw.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiRemoveAuthenticationData.php
ApiResetPassword.php
ApiResult.php
ApiRevisionDelete.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiRollback.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiRsd.php A few doc comment fixups 2017-12-04 11:11:52 +11:00
ApiSerializable.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiSetNotificationTimestamp.php Swap isset by null check in ApiSetNotificationTimestamp/ApiPurge 2018-04-05 12:39:24 +02:00
ApiSetPageLanguage.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiStashEdit.php Add actor table and code to start using it 2018-02-23 10:06:20 -08:00
ApiTag.php Fix inconsistent capitalization of different method calls 2017-12-27 12:35:13 +01:00
ApiTokens.php Use ::class to resolve class names in includes files 2018-01-27 20:34:29 +01:00
ApiUnblock.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiUndelete.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
ApiUpload.php Use ::class to resolve class names in includes files 2018-01-27 20:34:29 +01:00
ApiUsageException.php A few doc comment fixups 2017-12-04 11:11:52 +11:00
ApiUserrights.php API: Fix PHP Warning for "count(): Parameter must be an array" 2018-04-19 17:55:30 +00:00
ApiValidatePassword.php
ApiWatch.php Remove "Created on" from file header comments 2018-01-26 23:12:40 +00:00
SearchApi.php